Update Banner
curl --request PUT \
--url https://api.cludo.com/api/banners/{bannerId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"htmlcode": "<string>",
"websiteid": 123,
"bannerterms": [
{
"name": "<string>"
}
],
"isDisabled": true,
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"audiences": [
"<unknown>"
]
}
'import requests
url = "https://api.cludo.com/api/banners/{bannerId}"
payload = {
"name": "<string>",
"htmlcode": "<string>",
"websiteid": 123,
"bannerterms": [{ "name": "<string>" }],
"isDisabled": True,
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"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>',
htmlcode: '<string>',
websiteid: 123,
bannerterms: [{name: '<string>'}],
isDisabled: true,
from: '2023-11-07T05:31:56Z',
to: '2023-11-07T05:31:56Z',
audiences: ['<unknown>']
})
};
fetch('https://api.cludo.com/api/banners/{bannerId}', 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>',
htmlcode: '<string>',
websiteid: 123,
bannerterms: [{name: '<string>'}],
isDisabled: true,
from: '2023-11-07T05:31:56Z',
to: '2023-11-07T05:31:56Z',
audiences: ['<unknown>']
})
};
fetch('https://api.cludo.com/api/banners/{bannerId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"htmlcode": "<string>",
"websiteid": 123,
"id": 123,
"bannerterms": [
{
"name": "<string>"
}
],
"isDisabled": true,
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"audiences": [
"<unknown>"
],
"engineIds": [
123
],
"frequency": "<string>",
"daysOfWeek": "<string>",
"cssCode": "<string>",
"jsonOption": "<string>",
"editorType": "<string>",
"brokenLinksFoundAt": "<string>"
}{
"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"
]
}Banners
Update Banner
Replaces a banner. The banner id is taken from the URL path.
PUT
/
api
/
banners
/
{bannerId}
Update Banner
curl --request PUT \
--url https://api.cludo.com/api/banners/{bannerId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"htmlcode": "<string>",
"websiteid": 123,
"bannerterms": [
{
"name": "<string>"
}
],
"isDisabled": true,
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"audiences": [
"<unknown>"
]
}
'import requests
url = "https://api.cludo.com/api/banners/{bannerId}"
payload = {
"name": "<string>",
"htmlcode": "<string>",
"websiteid": 123,
"bannerterms": [{ "name": "<string>" }],
"isDisabled": True,
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"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>',
htmlcode: '<string>',
websiteid: 123,
bannerterms: [{name: '<string>'}],
isDisabled: true,
from: '2023-11-07T05:31:56Z',
to: '2023-11-07T05:31:56Z',
audiences: ['<unknown>']
})
};
fetch('https://api.cludo.com/api/banners/{bannerId}', 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>',
htmlcode: '<string>',
websiteid: 123,
bannerterms: [{name: '<string>'}],
isDisabled: true,
from: '2023-11-07T05:31:56Z',
to: '2023-11-07T05:31:56Z',
audiences: ['<unknown>']
})
};
fetch('https://api.cludo.com/api/banners/{bannerId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"htmlcode": "<string>",
"websiteid": 123,
"id": 123,
"bannerterms": [
{
"name": "<string>"
}
],
"isDisabled": true,
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"audiences": [
"<unknown>"
],
"engineIds": [
123
],
"frequency": "<string>",
"daysOfWeek": "<string>",
"cssCode": "<string>",
"jsonOption": "<string>",
"editorType": "<string>",
"brokenLinksFoundAt": "<string>"
}{
"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
Path Parameters
Body
application/json
Banner update payload. The banner id is taken from the URL path; any id in the body is ignored.
Response
Banner updated successfully.
Was this page helpful?

