curl --request POST \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/bulk/refresh \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"target": {
"kind": "ids",
"campaignPostIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
target: {kind: 'ids', campaignPostIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']}
})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/bulk/refresh', 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/bulk/refresh"
payload = { "target": {
"kind": "ids",
"campaignPostIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
} }
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,
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total": 123
}Refresh selected posts
Starts a refresh job for an explicit post ID list or filtered scope and returns its jobId — poll GET .../posts/bulk/refresh/status. The job holds the campaign’s one-at-a-time lock like a whole-campaign refresh (409 campaign_bulk_refresh_in_progress while any job runs). Every selected post is refreshed now, whenever it was last refreshed and whatever its refresh schedule, including posts past their refresh window and posts paused as unavailable; only a post whose refresh is already running is left out, along with story posts and platforms without refresh support. When every selected post is already refreshing, the request returns 400 and no job starts. Each selection has its own cooldown, sized by the posts selected (409 manual_refresh_cooldown). The campaign cooldown also applies (409 campaign_bulk_refresh_cooldown) when the selection covers every refreshable post in the campaign. Organizations with refresh turned off get 409 org_refresh_stopped.
curl --request POST \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/bulk/refresh \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"target": {
"kind": "ids",
"campaignPostIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
target: {kind: 'ids', campaignPostIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']}
})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/bulk/refresh', 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/bulk/refresh"
payload = { "target": {
"kind": "ids",
"campaignPostIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
} }
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,
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total": 123
}Authorizations
Was this page helpful?