Update an activity comment
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/activity/{aid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"body": "<string>"
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({body: JSON.stringify('<string>')})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/activity/{aid}', 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}/activity/{aid}"
payload = { "body": "<string>" }
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,
"activity": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventType": "<string>",
"subjectType": "<string>",
"subjectId": "<string>",
"payload": {},
"actorUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"actorName": "<string>",
"actorImageUrl": "<string>"
}
}Campaigns
Update an activity comment
Updates the body of an activity comment. The comment’s author can edit it, and so can an organization admin signed in to CreatorCore. An admin edit keeps the original author. API keys can only edit comments posted as the key’s user. Returns 403 otherwise.
PATCH
/
api
/
v2
/
campaigns
/
{cid}
/
activity
/
{aid}
Update an activity comment
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/activity/{aid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"body": "<string>"
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({body: JSON.stringify('<string>')})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/activity/{aid}', 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}/activity/{aid}"
payload = { "body": "<string>" }
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,
"activity": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventType": "<string>",
"subjectType": "<string>",
"subjectId": "<string>",
"payload": {},
"actorUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"actorName": "<string>",
"actorImageUrl": "<string>"
}
}Authorizations
Was this page helpful?