Update a company org chart member
PATCH /v2/companies/{companyId}/org-chart/{contactId}
Parameters
Path parameters
Request body
Content-Type: application/json
Example
{
"is_champion": false,
"manager_contact_id": "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/00000000-0000-0000-0000-000000000000 \
--request PATCH \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"is_champion": false,
"manager_contact_id": "00000000-0000-0000-0000-000000000000"
}'
fetch('https://api.prod.getdex.com/v2/companies/00000000-0000-0000-0000-000000000000/org-chart/00000000-0000-0000-0000-000000000000', {
method: 'PATCH',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
is_champion: false,
manager_contact_id: '00000000-0000-0000-0000-000000000000'
})
})
requests.patch(
"https://api.prod.getdex.com/v2/companies/00000000-0000-0000-0000-000000000000/org-chart/00000000-0000-0000-0000-000000000000",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"is_champion": False,
"manager_contact_id": "00000000-0000-0000-0000-000000000000"
}
)
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
Archive a company
Archive a company: it leaves the default list and stays readable by ID. Archiving an archived company changes nothing. The optional body `{ archive_contacts: true }` also archives every active contact

