curl --request POST \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/refresh \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"overrideCooldown": true
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({overrideCooldown: true})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/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/refresh"
payload = { "overrideCooldown": True }
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,
"queued": 123,
"mode": "inline",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resumed": true,
"campaignPostIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"added": 123,
"duplicates": 123,
"errors": [
"<string>"
]
}Refresh all campaign posts
Starts a refresh job for every post on the campaign and returns its jobId. Every 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. One job may run per campaign at a time, whoever on the team started it: a second request returns 409 campaign_bulk_refresh_in_progress, and a request within the campaign’s cooldown returns 409 campaign_bulk_refresh_cooldown. The cooldown is sized by the posts in the campaign: under 250 posts 30 minutes, 250–499 1 hour, 500–999 3 hours, 1,000–1,999 6 hours, 2,000 or more 12 hours. Organizations with refresh turned off get 409 org_refresh_stopped. When the previous job stalled, this request resumes it instead (resumed: true). Poll GET .../posts/refresh/status for progress. For a subset of posts, use POST .../posts/bulk/refresh.
curl --request POST \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/refresh \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"overrideCooldown": true
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({overrideCooldown: true})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/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/refresh"
payload = { "overrideCooldown": True }
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,
"queued": 123,
"mode": "inline",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resumed": true,
"campaignPostIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"added": 123,
"duplicates": 123,
"errors": [
"<string>"
]
}Authorizations
Response
Accepted — work queued. Poll GET /api/v2/tasks/{id} with the returned job id.
Was this page helpful?