Create or update an interactive organization chart
curl --request PUT \
--url https://api.trycomp.ai/v1/org-chart \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"nodes": [
{}
],
"edges": [
{}
]
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({nodes: [{}], edges: [{}]})
};
fetch('https://api.trycomp.ai/v1/org-chart', 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"
payload = {
"nodes": [{}],
"edges": [{}]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Org Chart
Create or update an interactive organization | Comp AI API
Create or update an interactive organization chart in Comp AI. Manage organization chart metadata and evidence used for governance, accountability.
PUT
/
v1
/
org-chart
Create or update an interactive organization chart
curl --request PUT \
--url https://api.trycomp.ai/v1/org-chart \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"nodes": [
{}
],
"edges": [
{}
]
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({nodes: [{}], edges: [{}]})
};
fetch('https://api.trycomp.ai/v1/org-chart', 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"
payload = {
"nodes": [{}],
"edges": [{}]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(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
200
The saved organization chart
Was this page helpful?

