Remove contacts from a company org chart
POST /v2/companies/{companyId}/org-chart/remove
Parameters
Path parameters
Request body
Content-Type: application/json
Example
{
"contact_ids": [
"00000000-0000-0000-0000-000000000000"
]
}
Responses
200 — Successful response
Content-Type: application/json
Example
{
"data": {
"org_chart": {
"company_id": "00000000-0000-0000-0000-000000000000",
"members": [
{
"contact_id": "00000000-0000-0000-0000-000000000000",
"is_champion": false,
"manager_contact_id": "00000000-0000-0000-0000-000000000000"
}
]
}
}
}
400 — Request body failed validation.
Content-Type: application/json
401 — Missing or invalid API key.
Content-Type: application/json
403 — Valid key, insufficient permission.
Content-Type: application/json
404 — Resource does not exist.
Content-Type: application/json
409 — Request conflicts with the current state of the resource.
Content-Type: application/json
429 — Rate limit exceeded.
Content-Type: application/json
500 — Unexpected server error.
Content-Type: application/json
Code samples
curl https://api.prod.getdex.com/v2/companies/00000000-0000-0000-0000-000000000000/org-chart/remove \
--request POST \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"contact_ids": [
"00000000-0000-0000-0000-000000000000"
]
}'
fetch('https://api.prod.getdex.com/v2/companies/00000000-0000-0000-0000-000000000000/org-chart/remove', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
contact_ids: ['00000000-0000-0000-0000-000000000000']
})
})
requests.post(
"https://api.prod.getdex.com/v2/companies/00000000-0000-0000-0000-000000000000/org-chart/remove",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"contact_ids": [
"00000000-0000-0000-0000-000000000000"
]
}
)
Add contacts to a company org chart
Put up to 100 contacts (`contact_ids`) on a company's org chart. Each must be a contact of the workspace (400 `invalid_reference` otherwise), unarchived and with a current role at the company (422 `or
Create a company
Create a company in the workspace. `name` is required (1-150 characters, trimmed); names need not be unique. `website_url` is stored as typed, with `https://` added when no scheme is given; another co

