Skip to main content
Leave Workspace
Removes the caller’s own membership on this node only (self-service, no capability). Leaving a parent while still owning a child is fine — ownership is independent of membership. Fires workspace.member.removed.
An owner has no member row and cannot leave via this path — an owner exits by transferring ownership or deleting the workspace. Sole-owner protection blocks a sole owner from leaving without transferring first. If the caller has no direct member row here (only reaches in from an ancestor), leave is a no-op / 404.

Path Parameters

string
required
The workspace UUID.

Body Parameters

string
Service/master keys only — the user whose membership to remove (sent in the body so the act-as-user path works on DELETE).

Response

204 No Content on success.

Error Responses