Upload organization logo
curl --request POST \
--url https://api.trycomp.ai/v1/organization/logo \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fileName": "acme-logo.png",
"fileType": "image/png",
"fileData": "iVBORw0KGgo="
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({fileName: 'acme-logo.png', fileType: 'image/png', fileData: 'iVBORw0KGgo='})
};
fetch('https://api.trycomp.ai/v1/organization/logo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/organization/logo"
payload = {
"fileName": "acme-logo.png",
"fileType": "image/png",
"fileData": "iVBORw0KGgo="
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Organization
Upload organization logo | Comp AI API
Upload organization logo in Comp AI. Manage organization profile data, API keys, logos, ownership, role notifications, and access approval settings.
POST
/
v1
/
organization
/
logo
Upload organization logo
curl --request POST \
--url https://api.trycomp.ai/v1/organization/logo \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fileName": "acme-logo.png",
"fileType": "image/png",
"fileData": "iVBORw0KGgo="
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({fileName: 'acme-logo.png', fileType: 'image/png', fileData: 'iVBORw0KGgo='})
};
fetch('https://api.trycomp.ai/v1/organization/logo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/organization/logo"
payload = {
"fileName": "acme-logo.png",
"fileType": "image/png",
"fileData": "iVBORw0KGgo="
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
API key for authentication
Body
application/json
Logo image to store for the organization
Response
201 - undefined
Was this page helpful?

