Skip to main content
POST
Apply a workspace member lifecycle action
Using this API, you can apply a lifecycle action on a member. The actions to manage workspace members are deactivate, suspend, reactivate, reset_mfa, revoke_sessions, and resend_invite. This API request updates only a single workspace. The request needs the workspace.members.write scope. A successful response returns the updated member and the previous status.
The platform allows a maximum of 10 actions per hour per member.
The applicable actions work only on specific existing statuses.
  • suspend works only on an active member.
  • resend_invite works only on a pending or expired member.
An inapplicable status combination returns the error 409 INVALID_STATE_TRANSITION.

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

Path Parameters

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

Body

application/json
action
enum<string>
required
Available options:
deactivate,
suspend,
reactivate,
reset_mfa,
revoke_sessions,
resend_invite
reason
string
Maximum string length: 500

Response

Success

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