Docs
Workspace Settings

Remove a member

Revokes the membership. The user keeps their account and any other workspaces they belong to; their email accounts stay with the workspace. Organization owners cannot be removed here - they hold implicit access to every workspace and are managed at the organization level. Removing a member whose role is admin additionally requires the caller to act as an organization owner or admin. Passing the calling key's own principal is the "leave workspace" action, which will revoke that key's access. Returns 204 with no body.

DELETE
/v2/workspaces/{workspaceId}/members/{userId}

Path Parameters

workspaceIdnumber
userIdnumber

The member's user id.

Response Body

curl -X DELETE "https://lynx-api.trulyinbox.com/v2/workspaces/0/members/0"
Empty
{
  "error": {
    "code": "invalid_request",
    "message": "string",
    "details": {},
    "retry_after": 34
  },
  "meta": {
    "request_id": "req_2f1c…",
    "timestamp": "2019-08-24T14:15:22Z"
  }
}
{
  "error": {
    "code": "invalid_request",
    "message": "string",
    "details": {},
    "retry_after": 34
  },
  "meta": {
    "request_id": "req_2f1c…",
    "timestamp": "2019-08-24T14:15:22Z"
  }
}