Replace campaign managers
curl --request PUT \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/managers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"memberIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'PUT',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({memberIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/managers', 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}/managers"
payload = { "memberIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
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,
"managers": [
{
"memberId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"avatarUrl": "<string>"
}
],
"total": 123
}Campaigns
Replace campaign managers
Replaces the full set of campaign managers with the provided member IDs.
PUT
/
api
/
v2
/
campaigns
/
{cid}
/
managers
Replace campaign managers
curl --request PUT \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/managers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"memberIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'PUT',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({memberIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/managers', 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}/managers"
payload = { "memberIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
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,
"managers": [
{
"memberId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"avatarUrl": "<string>"
}
],
"total": 123
}Authorizations
Was this page helpful?