Upload an image as the organization chart
curl --request POST \
--url https://api.trycomp.ai/v1/org-chart/upload \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fileName": "<string>",
"fileType": "<string>",
"fileData": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({fileName: '<string>', fileType: '<string>', fileData: '<string>'})
};
fetch('https://api.trycomp.ai/v1/org-chart/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/org-chart/upload"
payload = {
"fileName": "<string>",
"fileType": "<string>",
"fileData": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Org Chart
Upload an image as the organization chart | Comp AI API
Upload an image as the organization chart in Comp AI. Manage organization chart metadata and evidence used for governance, accountability, and audit.
POST
/
v1
/
org-chart
/
upload
Upload an image as the organization chart
curl --request POST \
--url https://api.trycomp.ai/v1/org-chart/upload \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fileName": "<string>",
"fileType": "<string>",
"fileData": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({fileName: '<string>', fileType: '<string>', fileData: '<string>'})
};
fetch('https://api.trycomp.ai/v1/org-chart/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/org-chart/upload"
payload = {
"fileName": "<string>",
"fileType": "<string>",
"fileData": "<string>"
}
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
Headers
Organization ID (required for session auth, optional for API key auth)
Body
application/json
Response
201
The uploaded organization chart
Was this page helpful?

