Update a client contact
curl --request PATCH \ --url https://example.com/api/v1/clients/example/contacts/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "accessLevel": "OWNER", "email": "hello@example.com", "firstName": "example", "isPrimary": true, "lastName": "example", "phone": "example", "projectIds": [ "example" ], "projectScopeEnabled": true, "roles": [ "TICKETS" ] }'Updates a contact scoped to both the client and the workspace, recording the change in the person’s history. phone must carry its country code and is stored in E.164; null or an empty string clears it, and a number without a country code is refused with 400. A company has at most one primary contact: setting isPrimary: true moves it to this contact, and isPrimary: false leaves the company with none. accessLevel is a data-scope attribute, never a permission source; the reserved COLLABORATOR is rejected. projectScopeEnabled and projectIds update the portal project scope — the switch is explicit, an omitted part is left untouched, and an enabled scope with no projects shows nothing. Requires the clients.edit permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
The contact ID within this client company
The contact ID within this client company
Request Body
Section titled “Request Body”object
Replaces the contact’s scoped project set. Every id must be a project of this client.
Explicit portal project-scope switch; omitted leaves it unchanged.
Replaces what the contact receives for the company. An empty list leaves them only what they take part in.
Responses
Section titled “Responses”The updated contact.
object
A person attached to a client company.
object
Data-scope attribute of the person: OWNER, BILLING, LEAD, MEMBER or COLLABORATOR (tickets only: the person reaches just the tickets they opened or were added to and gets no company notices).
WorkspaceMember id of the person’s portal account.
E.164 phone, e.g. +13055551234, or null when none is saved.
The last portal invitation or welcome email tried for this contact, or null when none is recorded. Returned by the contact list; absent from create and update responses.
The delivery of the last portal invitation or welcome email tried for a contact.
object
When the outcome last changed.
PENDING while handed to the provider, SENT once accepted, FAILED when it never left, then DELAYED, DELIVERED, BOUNCED or COMPLAINED (marked as spam) as the provider reports.
Why the provider refused or bounced it, when it said.
Explicit portal project-scope switch. False means the contact sees everything its client sees.
Example
{ "data": { "portalInvitation": { "outcome": "PENDING" }, "roles": [ "TICKETS" ], "source": "manual" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Contact not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}A contact with this email already exists for this client.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC