Edit a user
curl --request PATCH \ --url https://example.com/api/v1/client-members/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "email": "hello@example.com", "firstName": "example", "lastName": "example" }'Edits who a user (a person at a client company) is in this workspace: first name, last name and contact email; a field left out keeps its value. The name is mirrored onto the person’s account and every company contact they hold in this workspace; the contact email is written onto those contacts only, and is where ticket replies go and the address their inbound email is recognized by. The sign-in email (email in the response) is never changed: only the person changes it, from their profile. Requires the clients.view and clients.edit permissions, as the Edit user page does, and the same reach as GET /client-members: without clients.view_all, only people of the client companies the caller is assigned to; anyone else answers 404. A contact email answers 409 when another person at one of their companies already uses it and 400 when the person is on no company. The change is recorded in the person’s history.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”WorkspaceMember id of the client person.
WorkspaceMember id of the client person.
Request Body
Section titled “Request Body”object
The person’s contact email in this workspace, stored lowercase on every company contact they hold: where ticket replies go and the address their inbound email is recognized by. Never their sign-in email, which only they change from their profile. Refused when another person at one of their companies uses it, or when they are on no company. Omit to leave it untouched.
The person’s first name. Omit to leave it untouched.
The person’s last name; an empty string clears it. Omit to leave it untouched.
Example generated
{ "email": "hello@example.com", "firstName": "example", "lastName": "example"}Responses
Section titled “Responses”The person as saved.
object
A person at one or more client companies, with their portal status.
object
The client companies the person holds that the caller reaches.
object
Data-scope attribute of the person on this company: OWNER, BILLING, LEAD, MEMBER or COLLABORATOR (tickets only).
The last portal invitation or welcome email tried for this company, or null when none is recorded.
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.
The company’s client status catalog id, or null when it has none.
The person’s contact email in this workspace, from their first company the caller reaches; null when they are on none.
The email the person signs in with. Only they change it, from their profile.
WorkspaceMember id of the client person.
How the person came in, in plain words; Not recorded when nothing reliable says it. Absent on an older server.
Example
{ "data": { "companies": [ { "portalInvitation": { "outcome": "PENDING" }, "roles": [ "TICKETS" ] } ], "review": "PENDING", "status": "inactive" }}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" }}Client person 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" }}Another person at one of their companies already uses that email.
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