Upload a casting call logo
curl --request POST \
--url https://beta.creatorcore.co/api/v2/casting-calls/uploads/logo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--form file=@example-fileconst form = new FormData();
form.append('file', '<string>');
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'X-CreatorCore-Organization-Id': '<api-key>'}
};
options.body = form;
fetch('https://beta.creatorcore.co/api/v2/casting-calls/uploads/logo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/casting-calls/uploads/logo"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>"
}
response = requests.post(url, files=files, headers=headers)
print(response.text){
"success": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"publicUrl": "<string>",
"size": 123,
"name": "<string>",
"contentType": "<string>",
"mediaAsset": {
"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>"
}
}Casting calls
Upload a casting call logo
Uploads a logo image via multipart form (file). Returns the uploaded asset under mediaAsset.
POST
/
api
/
v2
/
casting-calls
/
uploads
/
logo
Upload a casting call logo
curl --request POST \
--url https://beta.creatorcore.co/api/v2/casting-calls/uploads/logo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--form file=@example-fileconst form = new FormData();
form.append('file', '<string>');
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'X-CreatorCore-Organization-Id': '<api-key>'}
};
options.body = form;
fetch('https://beta.creatorcore.co/api/v2/casting-calls/uploads/logo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/casting-calls/uploads/logo"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>"
}
response = requests.post(url, files=files, headers=headers)
print(response.text){
"success": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"publicUrl": "<string>",
"size": 123,
"name": "<string>",
"contentType": "<string>",
"mediaAsset": {
"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
Was this page helpful?