Update a featured post
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/media-kits/{id}/featured-posts/{postId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"image": "<string>",
"caption": "<string>",
"url": "<string>",
"postId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rank": 1
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
image: '<string>',
caption: '<string>',
url: '<string>',
postId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
rank: 1
})
};
fetch('https://beta.creatorcore.co/api/v2/media-kits/{id}/featured-posts/{postId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/media-kits/{id}/featured-posts/{postId}"
payload = {
"image": "<string>",
"caption": "<string>",
"url": "<string>",
"postId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rank": 1
}
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,
"post": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "tiktok",
"image": "<string>",
"caption": "<string>",
"url": "<string>",
"postId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rank": 123,
"views": 123,
"likes": 123,
"comments": 123,
"author": {
"channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"handle": "<string>",
"name": "<string>",
"avatarUrl": "<string>"
}
}
}Media kits
Update a featured post
Updates a featured post, including rank for reordering. Returns 404 if the post is not on this kit.
PATCH
/
api
/
v2
/
media-kits
/
{id}
/
featured-posts
/
{postId}
Update a featured post
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/media-kits/{id}/featured-posts/{postId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"image": "<string>",
"caption": "<string>",
"url": "<string>",
"postId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rank": 1
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
image: '<string>',
caption: '<string>',
url: '<string>',
postId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
rank: 1
})
};
fetch('https://beta.creatorcore.co/api/v2/media-kits/{id}/featured-posts/{postId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/media-kits/{id}/featured-posts/{postId}"
payload = {
"image": "<string>",
"caption": "<string>",
"url": "<string>",
"postId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rank": 1
}
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,
"post": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "tiktok",
"image": "<string>",
"caption": "<string>",
"url": "<string>",
"postId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rank": 123,
"views": 123,
"likes": 123,
"comments": 123,
"author": {
"channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"handle": "<string>",
"name": "<string>",
"avatarUrl": "<string>"
}
}
}Authorizations
Body
application/json
Was this page helpful?