Add an item to a folder
curl --request POST \
--url https://beta.creatorcore.co/api/v2/folders/{id}/items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({resourceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://beta.creatorcore.co/api/v2/folders/{id}/items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/folders/{id}/items"
payload = { "resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
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,
"item": {
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"slug": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"kind": "list",
"creatorCount": 1,
"budget": "<string>",
"previewAvatars": [
{
"profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"profilePicture": "<string>"
}
],
"partner": {
"name": "<string>",
"logo": "<string>"
}
}
}Folders
Add an item to a folder
Adds an item at the end of the display order. Returns 409 if the resource is already in the folder.
POST
/
api
/
v2
/
folders
/
{id}
/
items
Add an item to a folder
curl --request POST \
--url https://beta.creatorcore.co/api/v2/folders/{id}/items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({resourceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://beta.creatorcore.co/api/v2/folders/{id}/items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/folders/{id}/items"
payload = { "resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
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,
"item": {
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"slug": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"kind": "list",
"creatorCount": 1,
"budget": "<string>",
"previewAvatars": [
{
"profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"profilePicture": "<string>"
}
],
"partner": {
"name": "<string>",
"logo": "<string>"
}
}
}Authorizations
Was this page helpful?