Update a campaign post
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/{pid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"notes": "<string>",
"budget": "<string>",
"boostCode": "<string>",
"refreshIntervalHours": 360.125,
"tagIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"manualMetrics": {
"views": 1,
"likes": 1,
"comments": 1,
"shares": 1,
"saves": 1,
"reposts": 1,
"reach": 1
}
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
notes: '<string>',
budget: '<string>',
boostCode: '<string>',
refreshIntervalHours: 360.125,
tagIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
manualMetrics: {views: 1, likes: 1, comments: 1, shares: 1, saves: 1, reposts: 1, reach: 1}
})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/{pid}', 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}/posts/{pid}"
payload = {
"notes": "<string>",
"budget": "<string>",
"boostCode": "<string>",
"refreshIntervalHours": 360.125,
"tagIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"manualMetrics": {
"views": 1,
"likes": 1,
"comments": 1,
"shares": 1,
"saves": 1,
"reposts": 1,
"reach": 1
}
}
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,
"post": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"globalPostId": "<string>",
"contentType": "post",
"platform": "<string>",
"platformId": "<string>",
"caption": "<string>",
"url": "<string>",
"thumbnailUrl": "<string>",
"publishedAt": "<string>",
"channel": {
"id": "<string>",
"handle": "<string>",
"name": "<string>",
"avatarUrl": "<string>",
"followers": 123
},
"metrics": {
"views": 123,
"likes": 123,
"comments": 123,
"shares": 123,
"saves": 123,
"downloads": 123,
"reposts": 123,
"reach": 123
},
"viewsEstimated": true,
"likesEstimated": true,
"commentsEstimated": true,
"sharesEstimated": true,
"notes": "<string>",
"budget": "<string>",
"cpm": 123,
"boostCode": "<string>",
"refreshIntervalHours": 123,
"tagIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"manualMetrics": {
"views": 1,
"likes": 1,
"comments": 1,
"shares": 1,
"saves": 1,
"reposts": 1,
"reach": 1
},
"collectedMetrics": {
"views": 123,
"likes": 123,
"comments": 123,
"shares": 123,
"saves": 123,
"downloads": 123,
"reposts": 123,
"reach": 123
},
"likesHidden": true,
"metricSources": {
"views": "verified",
"likes": "verified",
"comments": "verified",
"shares": "verified",
"saves": "verified",
"reposts": "verified",
"reach": "verified"
},
"verification": {
"status": "pending",
"lastSyncedAt": "<string>",
"metrics": {
"views": 123,
"likes": 123,
"comments": 123,
"shares": 123,
"saves": 123,
"reposts": 123,
"reach": 123
},
"lastVerifiedMetrics": {
"views": 123,
"likes": 123,
"comments": 123,
"shares": 123,
"saves": 123,
"reposts": 123,
"reach": 123
},
"lastVerifiedAt": "<string>"
},
"verifiedDetails": {
"impressions": 123,
"reach": 123,
"avgWatchTimeSeconds": 123,
"totalWatchTimeSeconds": 123,
"completionRate": 123,
"skipRate": 123,
"profileViews": 123,
"websiteClicks": 123,
"follows": 123,
"retentionCurve": [
{
"second": 123,
"retained": 123
}
],
"discoverySources": {},
"audienceTypes": {},
"viewerCountries": {},
"syncedAt": "<string>"
}
}
}Campaign posts and stories
Update a campaign post
Updates campaign-specific fields such as stats overrides, tags, and boost code.
PATCH
/
api
/
v2
/
campaigns
/
{cid}
/
posts
/
{pid}
Update a campaign post
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/{pid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"notes": "<string>",
"budget": "<string>",
"boostCode": "<string>",
"refreshIntervalHours": 360.125,
"tagIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"manualMetrics": {
"views": 1,
"likes": 1,
"comments": 1,
"shares": 1,
"saves": 1,
"reposts": 1,
"reach": 1
}
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
notes: '<string>',
budget: '<string>',
boostCode: '<string>',
refreshIntervalHours: 360.125,
tagIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
manualMetrics: {views: 1, likes: 1, comments: 1, shares: 1, saves: 1, reposts: 1, reach: 1}
})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/{pid}', 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}/posts/{pid}"
payload = {
"notes": "<string>",
"budget": "<string>",
"boostCode": "<string>",
"refreshIntervalHours": 360.125,
"tagIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"manualMetrics": {
"views": 1,
"likes": 1,
"comments": 1,
"shares": 1,
"saves": 1,
"reposts": 1,
"reach": 1
}
}
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,
"post": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"globalPostId": "<string>",
"contentType": "post",
"platform": "<string>",
"platformId": "<string>",
"caption": "<string>",
"url": "<string>",
"thumbnailUrl": "<string>",
"publishedAt": "<string>",
"channel": {
"id": "<string>",
"handle": "<string>",
"name": "<string>",
"avatarUrl": "<string>",
"followers": 123
},
"metrics": {
"views": 123,
"likes": 123,
"comments": 123,
"shares": 123,
"saves": 123,
"downloads": 123,
"reposts": 123,
"reach": 123
},
"viewsEstimated": true,
"likesEstimated": true,
"commentsEstimated": true,
"sharesEstimated": true,
"notes": "<string>",
"budget": "<string>",
"cpm": 123,
"boostCode": "<string>",
"refreshIntervalHours": 123,
"tagIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"manualMetrics": {
"views": 1,
"likes": 1,
"comments": 1,
"shares": 1,
"saves": 1,
"reposts": 1,
"reach": 1
},
"collectedMetrics": {
"views": 123,
"likes": 123,
"comments": 123,
"shares": 123,
"saves": 123,
"downloads": 123,
"reposts": 123,
"reach": 123
},
"likesHidden": true,
"metricSources": {
"views": "verified",
"likes": "verified",
"comments": "verified",
"shares": "verified",
"saves": "verified",
"reposts": "verified",
"reach": "verified"
},
"verification": {
"status": "pending",
"lastSyncedAt": "<string>",
"metrics": {
"views": 123,
"likes": 123,
"comments": 123,
"shares": 123,
"saves": 123,
"reposts": 123,
"reach": 123
},
"lastVerifiedMetrics": {
"views": 123,
"likes": 123,
"comments": 123,
"shares": 123,
"saves": 123,
"reposts": 123,
"reach": 123
},
"lastVerifiedAt": "<string>"
},
"verifiedDetails": {
"impressions": 123,
"reach": 123,
"avgWatchTimeSeconds": 123,
"totalWatchTimeSeconds": 123,
"completionRate": 123,
"skipRate": 123,
"profileViews": 123,
"websiteClicks": 123,
"follows": 123,
"retentionCurve": [
{
"second": 123,
"retained": 123
}
],
"discoverySources": {},
"audienceTypes": {},
"viewerCountries": {},
"syncedAt": "<string>"
}
}
}Authorizations
Body
application/json
Was this page helpful?