Remove selected posts
curl --request POST \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/bulk/delete \
--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/delete', 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/delete"
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,
"removed": 123,
"campaignPostIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Campaign posts and stories
Remove selected posts
Removes posts from the campaign by explicit post ID list or filtered scope (the same target as bulk tag and bulk refresh). Runs synchronously and returns the removed campaign post IDs. At most 10,000 posts per request; a larger scope returns 400. Removed auto-added posts are excluded from future auto-add, as with single removal.
POST
/
api
/
v2
/
campaigns
/
{cid}
/
posts
/
bulk
/
delete
Remove selected posts
curl --request POST \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/bulk/delete \
--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/delete', 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/delete"
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,
"removed": 123,
"campaignPostIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Authorizations
Was this page helpful?