Remove Workspace Member

Take away the role a member was given in a workspace.

Take away the role a member was given in a workspace. An inherited role can't be removed: in the Default Workspace the member falls back to it.

DELETE /v1/organizations/workspaces/:workspace_id/members/:user_id

Path parameters

workspace_idstringrequired

The workspace's ID.

user_idstringrequired

The user's ID.

Response

type'workspace_member_deleted'optional

Always workspace_member_deleted.

user_idstringoptional

The user's ID.

workspace_idstringoptional

The workspace's ID.

Errors

StatusReason
400The member's role is inherited (organization owner, admin or billing, or the Default Workspace), or the workspace is archived.
404The workspace doesn't exist, or the user has no role in it.