Update a campaign
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"status": "<string>",
"statusId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"budget": "<string>",
"thumbnail": "<string>",
"archived": true,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"tagIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"managerMemberIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
description: '<string>',
status: '<string>',
statusId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
budget: '<string>',
thumbnail: '<string>',
archived: true,
startDate: '2023-11-07T05:31:56Z',
endDate: '2023-11-07T05:31:56Z',
tagIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
managerMemberIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}', 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}"
payload = {
"name": "<string>",
"description": "<string>",
"status": "<string>",
"statusId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"budget": "<string>",
"thumbnail": "<string>",
"archived": True,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"tagIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"managerMemberIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
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,
"campaign": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"status": "<string>",
"statusType": "Pending",
"statusId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partnerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"currency": "<string>",
"thumbnail": "<string>",
"archived": true,
"showOnPartnerDashboard": true,
"lastRefresh": "<string>",
"startDate": "<string>",
"endDate": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"tags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"emoji": "<string>"
}
],
"totalPostCount": 1,
"budget": "<string>"
}
}Campaigns
Update a campaign
Updates campaign metadata, dates, status, currency, tags, managers, or archive state.
PATCH
/
api
/
v2
/
campaigns
/
{cid}
Update a campaign
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"status": "<string>",
"statusId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"budget": "<string>",
"thumbnail": "<string>",
"archived": true,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"tagIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"managerMemberIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
description: '<string>',
status: '<string>',
statusId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
budget: '<string>',
thumbnail: '<string>',
archived: true,
startDate: '2023-11-07T05:31:56Z',
endDate: '2023-11-07T05:31:56Z',
tagIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
managerMemberIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}', 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}"
payload = {
"name": "<string>",
"description": "<string>",
"status": "<string>",
"statusId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"budget": "<string>",
"thumbnail": "<string>",
"archived": True,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"tagIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"managerMemberIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
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,
"campaign": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"status": "<string>",
"statusType": "Pending",
"statusId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partnerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"currency": "<string>",
"thumbnail": "<string>",
"archived": true,
"showOnPartnerDashboard": true,
"lastRefresh": "<string>",
"startDate": "<string>",
"endDate": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"tags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"emoji": "<string>"
}
],
"totalPostCount": 1,
"budget": "<string>"
}
}Authorizations
Body
application/json
Available options:
AED, ARS, AUD, BRL, CAD, CHF, CLP, CNY, COP, CZK, DKK, EGP, EUR, GBP, HKD, HUF, IDR, ILS, INR, JPY, KES, KRW, MAD, MXN, MYR, NGN, NOK, NPR, NZD, PEN, PHP, PLN, RON, SEK, SGD, THB, TRY, USD, UYU, VND, ZAR, AMD, AOA, AWG, AZM, AZN, BAM, BBD, BDT, BHD, BMD, BND, BOB, BSD, BTN, BWP, BZD, CRC, CVE, DJF, DOP, ERN, ETB, FJD, FKP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HNL, HTG, JMD, JOD, KGS, KHR, KWD, KYD, KZT, LAK, LKR, LRD, LSL, MDL, MGA, MNT, MOP, MRO, MRU, MUR, MVR, MWK, MZM, MZN, NAD, NIO, OMR, PAB, PGK, PKR, PYG, QAR, RWF, SAR, SBD, SCR, SHP, SLE, SLL, SRD, SRG, STD, STN, SZL, TJS, TMT, TOP, TTD, TWD, TZS, UAH, UGX, UZS, VUV, WST, XAF, XCD, XOF, XPF, ZMK, ZMW, ZWD, ZWG, null Was this page helpful?