Skip to main content

Delete member of selected team

DELETE 

/teams/:teamName/members/:userName

The operation allows you to remove member from a specific team, together with all of the member's permissions on the team. When the permission service refuses to revoke them, the request is rejected with 503 and the user stays a member. A team that does not exist is answered with 404.
A team always keeps at least one admin. An admin of the team cannot remove themselves from it, another admin or an account owner or admin has to do it: the request is rejected with 409 and errorCode TEAM_OWN_ADMIN_REMOVAL. The last admin of the team cannot be removed by anyone: 409 with errorCode TEAM_LAST_ADMIN; make another member admin first, or delete the team. When both apply, TEAM_OWN_ADMIN_REMOVAL is answered.
The 409 is an application/problem+json answer whose errorCode names the refusal and whose detail explains it; rely on errorCode, the text may change.

Request​

Responses​

Team member was removed