Correct a company role
PATCH /v2/company-roles/{roleId}
Parameters
Path parameters
Request body
Content-Type: application/json
"current", "past", "unknown"Example
{
"role": {
"company_id": "00000000-0000-0000-0000-000000000000",
"title": "string"
}
}
Responses
200 — Successful response
Content-Type: application/json
"current", "past", "unknown""manual", "add_people", "csv_import", "auto_link", "copy", "mcp", "extension", "migration", "text_conversion", "merge"Example
{
"data": {
"roles": [
{
"id": "00000000-0000-0000-0000-000000000000",
"contact_id": "00000000-0000-0000-0000-000000000000",
"company_id": "00000000-0000-0000-0000-000000000000",
"user_id": "string",
"workspace_id": "00000000-0000-0000-0000-000000000000",
"title": "string",
"status": "current",
"is_primary": false,
"start_year": 0,
"start_month": 0,
"start_day": 0,
"end_year": 0,
"end_month": 0,
"end_day": 0,
"provenance": "manual",
"created_at": "2026-10-23T10:31:51.488Z",
"updated_at": "2026-10-23T10:31:51.488Z",
"company": {
"id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"logo_url": "string",
"archived_at": "2026-10-23T10:31:51.488Z"
}
}
],
"contact": {
"id": "00000000-0000-0000-0000-000000000000",
"company": "string"
}
}
}
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/company-roles/00000000-0000-0000-0000-000000000000 \
--request PATCH \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"role": {
"company_id": "00000000-0000-0000-0000-000000000000",
"title": "string"
}
}'
fetch('https://api.prod.getdex.com/v2/company-roles/00000000-0000-0000-0000-000000000000', {
method: 'PATCH',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
role: {
company_id: '00000000-0000-0000-0000-000000000000',
title: 'string'
}
})
})
requests.patch(
"https://api.prod.getdex.com/v2/company-roles/00000000-0000-0000-0000-000000000000",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"role": {
"company_id": "00000000-0000-0000-0000-000000000000",
"title": "string"
}
}
)
Set a contact's current company
Set a contact's current company, as the contact page's picker does. `company_id` null ends every current role (end date unknown). A company the contact already has a current role at makes that role pr
Remove a company role
Delete a role that was never true. To record that someone left, end the role instead. Another current role becomes primary when this one was. 404 `record_not_found` when the role is not in the workspa

