Skip to main content
PATCH
Update a workspace member
Use this endpoint to change a workspace member’s role, set or replace their externalId, or do both. A member has one workspace role. Send at least one field, or the API returns 400 NO_FIELDS_TO_UPDATE. If nothing would change, the API returns 409 ROLE_UNCHANGED. To avoid overwriting a concurrent change, send the ETag from your last read in the If-Match header. A mismatch returns 412 PRECONDITION_FAILED. Send an Idempotency-Key header so retries are safe. The request needs the workspace.members.write scope.

Authorizations

X-API-Key
string
header
required

Platform key, for example abl_ws_….

Headers

Idempotency-Key
string

Recommended on every write. A retry with the same key and body replays the first result instead of repeating the change. A different body returns 422 IDEMPOTENCY_KEY_REUSED; a retry while the first is still running returns 409 IDEMPOTENCY_IN_PROGRESS.

Required string length: 1 - 255
If-Match
string

The ETag from your last read. On a mismatch the request fails with 412 PRECONDITION_FAILED.

Example:

"W/\"3\""

Path Parameters

workspaceId
string
required
Minimum string length: 1
memberId
string
required
Minimum string length: 1

Body

application/json
roleId
string
Required string length: 1 - 256
externalId
string
Maximum string length: 1024

Response

Success

success
enum<boolean>
required
Available options:
true
data
object
required