Update Ranking
curl --request PUT \
--url https://api.cludo.com/api/rankings/{rankingId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"WebsiteId": 123,
"pages": [
{
"rank": 1,
"showpage": true,
"page": {
"name": "<string>",
"pageid": "<string>",
"pageurl": "<string>",
"searchable": true,
"websiteid": 123
},
"websiteid": 123
}
],
"rankingterms": [
{
"name": "<string>"
}
],
"audiences": [
"<unknown>"
]
}
'import requests
url = "https://api.cludo.com/api/rankings/{rankingId}"
payload = {
"name": "<string>",
"WebsiteId": 123,
"pages": [
{
"rank": 1,
"showpage": True,
"page": {
"name": "<string>",
"pageid": "<string>",
"pageurl": "<string>",
"searchable": True,
"websiteid": 123
},
"websiteid": 123
}
],
"rankingterms": [{ "name": "<string>" }],
"audiences": ["<unknown>"]
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
WebsiteId: 123,
pages: [
{
rank: 1,
showpage: true,
page: {
name: '<string>',
pageid: '<string>',
pageurl: '<string>',
searchable: true,
websiteid: 123
},
websiteid: 123
}
],
rankingterms: [{name: '<string>'}],
audiences: ['<unknown>']
})
};
fetch('https://api.cludo.com/api/rankings/{rankingId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
WebsiteId: 123,
pages: [
{
rank: 1,
showpage: true,
page: {
name: '<string>',
pageid: '<string>',
pageurl: '<string>',
searchable: true,
websiteid: 123
},
websiteid: 123
}
],
rankingterms: [{name: '<string>'}],
audiences: ['<unknown>']
})
};
fetch('https://api.cludo.com/api/rankings/{rankingId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"WebsiteId": 123,
"id": 123,
"pages": [
{
"rank": 1,
"showpage": true,
"page": {
"name": "<string>",
"pageid": "<string>",
"pageurl": "<string>",
"searchable": true,
"websiteid": 123
},
"websiteid": 123
}
],
"rankingterms": [
{
"name": "<string>"
}
],
"brokenLinksFoundAt": "<string>",
"audiences": [
"<unknown>"
]
}{
"viewModel.pages[0]": [
"The Url field is required."
]
}{
"message": "unauthorized"
}{
"message": "<string>"
}{
"status": "InternalServerError",
"code": 500,
"messages": [
"Error occur. Please contact support with error ID: a1b2c3d4-e5f6-7890-abcd-ef1234567890"
]
}Page Rankings
Update Ranking
Replaces a ranking. The ranking id is taken from the URL path.
PUT
/
api
/
rankings
/
{rankingId}
Update Ranking
curl --request PUT \
--url https://api.cludo.com/api/rankings/{rankingId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"WebsiteId": 123,
"pages": [
{
"rank": 1,
"showpage": true,
"page": {
"name": "<string>",
"pageid": "<string>",
"pageurl": "<string>",
"searchable": true,
"websiteid": 123
},
"websiteid": 123
}
],
"rankingterms": [
{
"name": "<string>"
}
],
"audiences": [
"<unknown>"
]
}
'import requests
url = "https://api.cludo.com/api/rankings/{rankingId}"
payload = {
"name": "<string>",
"WebsiteId": 123,
"pages": [
{
"rank": 1,
"showpage": True,
"page": {
"name": "<string>",
"pageid": "<string>",
"pageurl": "<string>",
"searchable": True,
"websiteid": 123
},
"websiteid": 123
}
],
"rankingterms": [{ "name": "<string>" }],
"audiences": ["<unknown>"]
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
WebsiteId: 123,
pages: [
{
rank: 1,
showpage: true,
page: {
name: '<string>',
pageid: '<string>',
pageurl: '<string>',
searchable: true,
websiteid: 123
},
websiteid: 123
}
],
rankingterms: [{name: '<string>'}],
audiences: ['<unknown>']
})
};
fetch('https://api.cludo.com/api/rankings/{rankingId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
WebsiteId: 123,
pages: [
{
rank: 1,
showpage: true,
page: {
name: '<string>',
pageid: '<string>',
pageurl: '<string>',
searchable: true,
websiteid: 123
},
websiteid: 123
}
],
rankingterms: [{name: '<string>'}],
audiences: ['<unknown>']
})
};
fetch('https://api.cludo.com/api/rankings/{rankingId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"WebsiteId": 123,
"id": 123,
"pages": [
{
"rank": 1,
"showpage": true,
"page": {
"name": "<string>",
"pageid": "<string>",
"pageurl": "<string>",
"searchable": true,
"websiteid": 123
},
"websiteid": 123
}
],
"rankingterms": [
{
"name": "<string>"
}
],
"brokenLinksFoundAt": "<string>",
"audiences": [
"<unknown>"
]
}{
"viewModel.pages[0]": [
"The Url field is required."
]
}{
"message": "unauthorized"
}{
"message": "<string>"
}{
"status": "InternalServerError",
"code": 500,
"messages": [
"Error occur. Please contact support with error ID: a1b2c3d4-e5f6-7890-abcd-ef1234567890"
]
}Authorizations
Body
application/json
Ranking update payload. The ranking id is taken from the URL path; any id in the body is ignored.
Response
Ranking updated successfully.
Was this page helpful?

