Update a workspace member
curl --request PATCH \ --url https://example.com/api/v1/members/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "defaultActivityTypeId": "example", "isActive": true }'Changes isActive and defaultActivityTypeId; a body with neither returns the member unchanged. isActive needs the caller to pass the canManageMember hierarchy check for the target. isActive: false is refused with 403 when the target is the workspace owner or the caller’s own membership; isActive: true has neither restriction, so an accidental deactivation stays recoverable. defaultActivityTypeId is the activity type time tracking preselects for the member on any order that offers it (null clears it): a member sets their own, anyone else needs the same hierarchy check, and an unknown or archived type is refused. A client portal member’s id returns 404, the same as an unknown or wrong-workspace one.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Request Body
Section titled “Request Body”object
Example generated
{ "defaultActivityTypeId": "example", "isActive": true}Responses
Section titled “Responses”The updated member.
object
A workspace membership with the user’s identity and assigned roles.
object
The activity type time tracking preselects for this member on any order that offers it, or null when none is set.
A role assigned to the member. Only display fields are exposed.
object
Identity of the user behind a workspace membership.
object
Example generated
{ "data": { "defaultActivityTypeId": "example", "id": "example", "isActive": true, "roles": [ { "color": "example", "name": "example" } ], "user": { "email": "example", "firstName": "example", "lastName": "example" }, "userId": "example" }}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" }}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" }}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