Move a content from its current location to another location.
1 min
POST
http://localhost:53035/api/episerver/v2.0/contentmanagement/{contentReference}/move
Path Parameters
- contentReferencestringrequiredDescription
Body Parameters
- bodymoveOptionsrequiredDescription
- parentLinkcontentReferencerequiredDescription
- idinteger<int32>DescriptionFormatint32
- workIdinteger<int32>DescriptionFormatint32
- guidValuestring<uuid>ExampleDescriptionFormatuuid
- providerNamestringDescription
- urlstringDescription
- languageobjectDescription
- language
- displayNamestringDescription
- namestringrequiredDescription
Responses
204
400
403
404
curl
curl --request POST \
--url http://localhost:53035/api/episerver/v2.0/contentmanagement/{contentReference}/move \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"parentLink": {
"language": {
"name": ""
}
}
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"parentLink": {
"language": {
"name": ""
}
}
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("http://localhost:53035/api/episerver/v2.0/contentmanagement/{contentReference}/move", 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/{contentReference}/move")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump({
"parentLink": {
"language": {
"name": ""
}
}
})
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "http://localhost:53035/api/episerver/v2.0/contentmanagement/{contentReference}/move"
payload = json.dumps({
"parentLink": {
"language": {
"name": ""
}
}
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
204
// No content
400
// Bad request
403
// Forbidden
404
// Not found