Update a campaign deliverable
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/deliverables/{delId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"title": "<string>",
"deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"draftDueDate": "2023-11-07T05:31:56Z",
"postDueDate": "2023-11-07T05:31:56Z"
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: '<string>',
deliverableTypeId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
draftDueDate: '2023-11-07T05:31:56Z',
postDueDate: '2023-11-07T05:31:56Z'
})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/deliverables/{delId}', 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}/deliverables/{delId}"
payload = {
"title": "<string>",
"deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"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.patch(url, json=payload, headers=headers)
print(response.text){
"success": true,
"deliverable": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"deliverableStatus": "Pending",
"deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deliverableTypeTitle": "<string>",
"deliverableTypePlatform": "<string>",
"draftDueDate": "<string>",
"postDueDate": "<string>",
"completedDate": "<string>",
"lastStatusChange": "<string>",
"creator": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"profilePicture": "<string>"
},
"managers": [
{
"memberId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"avatarUrl": "<string>"
}
],
"createdAt": "<string>",
"linkedPostUrl": "<string>"
},
"activationStatusSuggestion": {
"kind": "in_progress",
"activationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"statusId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"statusTitle": "<string>"
}
}Campaign deliverables
Update a campaign deliverable
Updates deliverable status, title, type, or due dates. Reverting from Awaiting Approval to Awaiting Draft also deletes that deliverable’s drafts. Reverting from Awaiting Posting, Draft Declined, or Complete back to Awaiting Approval is allowed when a draft still exists and resets that draft’s review so it can be approved again. At least one field is required.
PATCH
/
api
/
v2
/
campaigns
/
{cid}
/
deliverables
/
{delId}
Update a campaign deliverable
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/deliverables/{delId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"title": "<string>",
"deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"draftDueDate": "2023-11-07T05:31:56Z",
"postDueDate": "2023-11-07T05:31:56Z"
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: '<string>',
deliverableTypeId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
draftDueDate: '2023-11-07T05:31:56Z',
postDueDate: '2023-11-07T05:31:56Z'
})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/deliverables/{delId}', 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}/deliverables/{delId}"
payload = {
"title": "<string>",
"deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"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.patch(url, json=payload, headers=headers)
print(response.text){
"success": true,
"deliverable": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"deliverableStatus": "Pending",
"deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deliverableTypeTitle": "<string>",
"deliverableTypePlatform": "<string>",
"draftDueDate": "<string>",
"postDueDate": "<string>",
"completedDate": "<string>",
"lastStatusChange": "<string>",
"creator": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"profilePicture": "<string>"
},
"managers": [
{
"memberId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"avatarUrl": "<string>"
}
],
"createdAt": "<string>",
"linkedPostUrl": "<string>"
},
"activationStatusSuggestion": {
"kind": "in_progress",
"activationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"statusId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"statusTitle": "<string>"
}
}Authorizations
Body
application/json
Was this page helpful?