CentralCSP
APIMembers

Remove a member

Removes someone from the workspace, along with their website access grants and group memberships. The owner cannot be removed, so transfer ownership first. An admin can remove themselves but not another admin.

Requires the admin role on the workspace.

DELETE
/v1/workspaces/{workspaceId}/members/{memberId}

Authorization

headerAuthorizationBearer <JWT>

An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.

Path Parameters

workspaceId*string

The workspace's id.

memberId*string

The membership's id, not the user's id.

Response Body

The member is removed from the workspace.

Example Request
curl -X DELETE 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/members/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90'
Example Response
Empty