Delete stories in bulk
curl --request DELETE \
--url https://beta.creatorcore.co/api/v2/stories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"storyIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'DELETE',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({storyIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://beta.creatorcore.co/api/v2/stories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/stories"
payload = { "storyIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)Stories
Delete stories in bulk
Deletes multiple stories by id. Requires a JSON request body on DELETE, which some HTTP clients and proxies do not support. To delete one story, use DELETE /api/v2/stories/.
DELETE
/
api
/
v2
/
stories
Delete stories in bulk
curl --request DELETE \
--url https://beta.creatorcore.co/api/v2/stories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"storyIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'DELETE',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({storyIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://beta.creatorcore.co/api/v2/stories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/stories"
payload = { "storyIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)Authorizations
Response
Deleted
Was this page helpful?