Replace folder items
curl --request PUT \
--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 '
{
"resourceIds": [
"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({resourceIds: ['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 = { "resourceIds": ["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,
"folder": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "list",
"title": "<string>",
"slug": "<string>",
"thumbnail": "<string>",
"partnerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partnerName": "<string>",
"partnerLogo": "<string>",
"itemCount": 1,
"shareSettings": {
"showItemStats": true
},
"passwordEnabled": true,
"hasPassword": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"publicUrl": "<string>",
"shortUrl": "<string>",
"items": [
{
"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
Replace folder items
Replaces the full item membership with the provided list.
PUT
/
api
/
v2
/
folders
/
{id}
/
items
Replace folder items
curl --request PUT \
--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 '
{
"resourceIds": [
"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({resourceIds: ['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 = { "resourceIds": ["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,
"folder": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "list",
"title": "<string>",
"slug": "<string>",
"thumbnail": "<string>",
"partnerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partnerName": "<string>",
"partnerLogo": "<string>",
"itemCount": 1,
"shareSettings": {
"showItemStats": true
},
"passwordEnabled": true,
"hasPassword": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"publicUrl": "<string>",
"shortUrl": "<string>",
"items": [
{
"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?