Replace an auto-add rule
curl --request PUT \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/auto-add-rules/{ruleId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '{}'const options = {
method: 'PUT',
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}/auto-add-rules/{ruleId}', 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}/auto-add-rules/{ruleId}"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"success": true,
"rule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allChannels": true,
"channelIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"startDate": "<string>",
"endDate": "<string>",
"clauses": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platforms": [
"tiktok"
],
"kind": "hashtag",
"value": "<string>",
"combinator": "AND",
"position": 123,
"sound": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "<string>",
"title": "<string>",
"author": "<string>",
"thumbnailUrl": "<string>",
"url": "<string>"
}
}
],
"includeStories": true,
"enabled": true,
"title": "<string>"
}
}Campaign automation
Replace an auto-add rule
Replaces an auto-add rule and its full clause set.
PUT
/
api
/
v2
/
campaigns
/
{cid}
/
auto-add-rules
/
{ruleId}
Replace an auto-add rule
curl --request PUT \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/auto-add-rules/{ruleId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '{}'const options = {
method: 'PUT',
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}/auto-add-rules/{ruleId}', 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}/auto-add-rules/{ruleId}"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"success": true,
"rule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allChannels": true,
"channelIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"startDate": "<string>",
"endDate": "<string>",
"clauses": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platforms": [
"tiktok"
],
"kind": "hashtag",
"value": "<string>",
"combinator": "AND",
"position": 123,
"sound": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "<string>",
"title": "<string>",
"author": "<string>",
"thumbnailUrl": "<string>",
"url": "<string>"
}
}
],
"includeStories": true,
"enabled": true,
"title": "<string>"
}
}Authorizations
Body
application/json
Was this page helpful?