Assign a flag to a creator
curl --request POST \
--url https://beta.creatorcore.co/api/v2/creators/{id}/flags \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"flagTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"emoji": "<string>",
"note": "<string>"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
flagTypeId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
emoji: '<string>',
note: '<string>'
})
};
fetch('https://beta.creatorcore.co/api/v2/creators/{id}/flags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/creators/{id}/flags"
payload = {
"flagTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"emoji": "<string>",
"note": "<string>"
}
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,
"flag": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"flagTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"emoji": "<string>",
"note": "<string>",
"createdAt": "<string>"
}
}{
"success": true,
"flag": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"flagTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"emoji": "<string>",
"note": "<string>",
"createdAt": "<string>"
}
}Creator activity and ratings
Assign a flag to a creator
Assigns an existing flag type or creates one inline from a title and optional emoji. Returns 201 when newly assigned, 200 when the flag was already assigned.
POST
/
api
/
v2
/
creators
/
{id}
/
flags
Assign a flag to a creator
curl --request POST \
--url https://beta.creatorcore.co/api/v2/creators/{id}/flags \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"flagTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"emoji": "<string>",
"note": "<string>"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
flagTypeId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
emoji: '<string>',
note: '<string>'
})
};
fetch('https://beta.creatorcore.co/api/v2/creators/{id}/flags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/creators/{id}/flags"
payload = {
"flagTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"emoji": "<string>",
"note": "<string>"
}
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,
"flag": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"flagTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"emoji": "<string>",
"note": "<string>",
"createdAt": "<string>"
}
}{
"success": true,
"flag": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"flagTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"emoji": "<string>",
"note": "<string>",
"createdAt": "<string>"
}
}Authorizations
Body
application/json
Was this page helpful?