Update media metadata
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/media/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"fallbackUrl": "<string>",
"context": {}
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({fallbackUrl: '<string>', context: {}})
};
fetch('https://beta.creatorcore.co/api/v2/media/{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/media/{id}"
payload = {
"fallbackUrl": "<string>",
"context": {}
}
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,
"media": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"purpose": "branding_logo",
"visibility": "org",
"url": "<string>",
"publicUrl": "<string>",
"fallbackUrl": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"originalFilename": "<string>",
"sha256": "<string>",
"cacheControl": "<string>",
"context": {},
"createdAt": "<string>",
"updatedAt": "<string>"
}
}Media
Update media metadata
Updates visibility, fallback URL, or context for a media asset. Does not replace the file.
PATCH
/
api
/
v2
/
media
/
{id}
Update media metadata
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/media/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"fallbackUrl": "<string>",
"context": {}
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({fallbackUrl: '<string>', context: {}})
};
fetch('https://beta.creatorcore.co/api/v2/media/{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/media/{id}"
payload = {
"fallbackUrl": "<string>",
"context": {}
}
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,
"media": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"purpose": "branding_logo",
"visibility": "org",
"url": "<string>",
"publicUrl": "<string>",
"fallbackUrl": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"originalFilename": "<string>",
"sha256": "<string>",
"cacheControl": "<string>",
"context": {},
"createdAt": "<string>",
"updatedAt": "<string>"
}
}Authorizations
Body
application/json
Was this page helpful?