Update Contact Endpoint
PATCH
/records/{record_id}/contacts/{contact_id}/
const url = 'https://example.com/records/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/contacts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"role":"example","name":"example","email":"hello@example.com","organization":"example","phone":"example","extra_json":{},"sort_order":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/records/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/contacts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "role": "example", "name": "example", "email": "hello@example.com", "organization": "example", "phone": "example", "extra_json": {}, "sort_order": 1 }'Update a contact.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” record_id
required
Record Id
string format: uuid
contact_id
required
Contact Id
string format: uuid
Request Body required
Section titled “ Request Body required ” Media type application/json
ContactUpdate
object
Example generated
{ "role": "example", "name": "example", "email": "hello@example.com", "organization": "example", "phone": "example", "extra_json": {}, "sort_order": 1}Responses
Section titled “ Responses ”Successful Response
Media type application/json
ContactResponse
object
id
required
Id
string format: uuid
record_id
required
Record Id
string format: uuid
role
required
Role
string
sort_order
required
Sort Order
integer
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "record_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "role": "example", "name": "example", "email": "example", "organization": "example", "phone": "example", "extra_json": {}, "sort_order": 1}Bad request — invalid payload
Media type application/problem+json
Unauthorized — missing or invalid credentials
Media type application/problem+json
Forbidden — caller lacks write access
Media type application/problem+json
Not found
Media type application/problem+json
Conflict — resource state prevents the operation
Media type application/problem+json
Validation error
Media type application/problem+json
Too many requests — retry after the advertised interval
Media type application/problem+json
Headers
Section titled “ Headers ” Retry-After
integer
Seconds until the request may be retried
Internal server error
Media type application/problem+json
Service unavailable — the database could not serve the request
Media type application/problem+json