Update the specified content item.
1 min
PATCH
http://localhost:53035/api/episerver/v2.0/contentmanagement/{contentGuid}
Path Parameters
- contentGuidstring<uuid>requiredDescriptionFormatuuid
Query Parameters
- x-epi-validation-modestringAllowedcompleteminimal
Body Parameters
- bodypatchContentrequiredDescription
- namestringDescription
- languagelanguageDescription
- displayNamestringDescription
- namestringrequiredDescription
- routeSegmentstringDescription
- startPublishstring<date-time>DescriptionFormatdate-time
- stopPublishstring<date-time>DescriptionFormatdate-time
- statusstring<Rejected | CheckedIn | CheckedOut | Published | DelayedPublish | AwaitingApproval>DescriptionAllowedRejectedCheckedInCheckedOutPublishedDelayedPublishAwaitingApproval
Responses
204
400
403
404
curl
curl --request PATCH \
--url http://localhost:53035/api/episerver/v2.0/contentmanagement/{contentGuid} \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"language": {
"name": ""
}
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"language": {
"name": ""
}
});
var requestOptions = {
method: 'PATCH',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("http://localhost:53035/api/episerver/v2.0/contentmanagement/{contentGuid}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("http://localhost:53035/api/episerver/v2.0/contentmanagement/{contentGuid}")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Patch.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump({
"language": {
"name": ""
}
})
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "http://localhost:53035/api/episerver/v2.0/contentmanagement/{contentGuid}"
payload = json.dumps({
"language": {
"name": ""
}
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("PATCH", url, headers=headers, data=payload)
print(response.text)
204
// No Content
400
// Bad Request
403
// Forbidden
404
// Not Found