Update a story
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/stories/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"estimatedViews": 1,
"tagIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"favorited": true,
"creatorProfileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
estimatedViews: 1,
tagIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
favorited: true,
creatorProfileId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://beta.creatorcore.co/api/v2/stories/{id}', 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/{id}"
payload = {
"estimatedViews": 1,
"tagIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"favorited": True,
"creatorProfileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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,
"story": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"media_url": "<string>",
"media_type": "image",
"thumbnail_url": "<string>",
"creator_handle": "<string>",
"creator_name": "<string>",
"creator_avatar": "<string>",
"creator_follower_count": 123,
"account_tagged": "<string>",
"account_avatar": "<string>",
"tags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"emoji": "<string>",
"description": "<string>",
"color": "<string>"
}
],
"tagIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"hashtags": [
"<string>"
],
"caption": "<string>",
"description": "<string>",
"executive_description": "<string>",
"overlay_text": [
"<string>"
],
"is_favorited": true,
"estimated_views": 123,
"date_posted": "<string>",
"last_updated": "<string>",
"file_url": "<string>",
"url": "<string>",
"creator_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Stories
Update a story
Updates story fields such as favorite status, tags, or descriptions.
PATCH
/
api
/
v2
/
stories
/
{id}
Update a story
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/stories/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"estimatedViews": 1,
"tagIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"favorited": true,
"creatorProfileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
estimatedViews: 1,
tagIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
favorited: true,
creatorProfileId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://beta.creatorcore.co/api/v2/stories/{id}', 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/{id}"
payload = {
"estimatedViews": 1,
"tagIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"favorited": True,
"creatorProfileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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,
"story": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"media_url": "<string>",
"media_type": "image",
"thumbnail_url": "<string>",
"creator_handle": "<string>",
"creator_name": "<string>",
"creator_avatar": "<string>",
"creator_follower_count": 123,
"account_tagged": "<string>",
"account_avatar": "<string>",
"tags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"emoji": "<string>",
"description": "<string>",
"color": "<string>"
}
],
"tagIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"hashtags": [
"<string>"
],
"caption": "<string>",
"description": "<string>",
"executive_description": "<string>",
"overlay_text": [
"<string>"
],
"is_favorited": true,
"estimated_views": 123,
"date_posted": "<string>",
"last_updated": "<string>",
"file_url": "<string>",
"url": "<string>",
"creator_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Authorizations
Body
application/json
Was this page helpful?