Replace campaign default deliverables
curl --request PUT \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/default-deliverables \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"deliverables": [
{
"deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"draftDueDate": "2023-11-07T05:31:56Z",
"postDueDate": "2023-11-07T05:31:56Z"
}
]
}
'const options = {
method: 'PUT',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
deliverables: [
{
deliverableTypeId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
draftDueDate: '2023-11-07T05:31:56Z',
postDueDate: '2023-11-07T05:31:56Z'
}
]
})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/default-deliverables', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/campaigns/{cid}/default-deliverables"
payload = { "deliverables": [
{
"deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"draftDueDate": "2023-11-07T05:31:56Z",
"postDueDate": "2023-11-07T05:31:56Z"
}
] }
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"success": true,
"deliverables": [
{
"deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"titleOverride": "<string>",
"platform": "<string>",
"draftRequired": true,
"postRequired": true,
"draftDueDate": "2023-11-07T05:31:56Z",
"postDueDate": "2023-11-07T05:31:56Z"
}
],
"total": 123
}Campaign deliverables
Replace campaign default deliverables
Replaces the campaign’s default deliverable set. Repeats are allowed. Existing creators are not changed.
PUT
/
api
/
v2
/
campaigns
/
{cid}
/
default-deliverables
Replace campaign default deliverables
curl --request PUT \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/default-deliverables \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"deliverables": [
{
"deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"draftDueDate": "2023-11-07T05:31:56Z",
"postDueDate": "2023-11-07T05:31:56Z"
}
]
}
'const options = {
method: 'PUT',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
deliverables: [
{
deliverableTypeId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
draftDueDate: '2023-11-07T05:31:56Z',
postDueDate: '2023-11-07T05:31:56Z'
}
]
})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/default-deliverables', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/campaigns/{cid}/default-deliverables"
payload = { "deliverables": [
{
"deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"draftDueDate": "2023-11-07T05:31:56Z",
"postDueDate": "2023-11-07T05:31:56Z"
}
] }
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"success": true,
"deliverables": [
{
"deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"titleOverride": "<string>",
"platform": "<string>",
"draftRequired": true,
"postRequired": true,
"draftDueDate": "2023-11-07T05:31:56Z",
"postDueDate": "2023-11-07T05:31:56Z"
}
],
"total": 123
}Authorizations
Was this page helpful?