Create a campaign draft
curl --request POST \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/drafts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '{}'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/drafts', 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}/drafts"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"draft": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activationLabel": "<string>",
"activationPicture": "<string>",
"deliverableId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approvalStatus": "Approved",
"caption": "<string>",
"thumbnail": "<string>",
"file": "<string>",
"media": [
{
"url": "<string>",
"thumbnail": "<string>",
"contentType": "<string>"
}
],
"versionGroupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"parentDraftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdByName": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"feedback": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "internal",
"approvalStatus": "Approved",
"feedback": "<string>",
"videoTimestampSeconds": 1,
"authorUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"authorName": "<string>",
"authorAvatarUrl": "<string>",
"createdAt": "<string>",
"videoTimestampSecondsList": []
}
],
"deliverableIds": []
}
}Campaign drafts
Create a campaign draft
Creates a draft (caption, media, activation/deliverable links). Pass supersedesDraftId to create a new revision of an existing draft.
POST
/
api
/
v2
/
campaigns
/
{cid}
/
drafts
Create a campaign draft
curl --request POST \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/drafts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '{}'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/drafts', 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}/drafts"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"draft": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activationLabel": "<string>",
"activationPicture": "<string>",
"deliverableId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approvalStatus": "Approved",
"caption": "<string>",
"thumbnail": "<string>",
"file": "<string>",
"media": [
{
"url": "<string>",
"thumbnail": "<string>",
"contentType": "<string>"
}
],
"versionGroupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"parentDraftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdByName": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"feedback": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "internal",
"approvalStatus": "Approved",
"feedback": "<string>",
"videoTimestampSeconds": 1,
"authorUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"authorName": "<string>",
"authorAvatarUrl": "<string>",
"createdAt": "<string>",
"videoTimestampSecondsList": []
}
],
"deliverableIds": []
}
}Authorizations
Body
application/json
Was this page helpful?