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
- 200
- 400
- 401
- 403
- 404
- 409
- 429
- 500
- 503
Team member was removed
The request was unacceptable, often due to missing a required parameter.
No valid API key provided.
The API key doesn't have permissions to perform the request.
The team does not exist.
errorCode TEAM_OWN_ADMIN_REMOVAL: the caller tried to remove themselves while being an admin of the team. TEAM_LAST_ADMIN: the user is the last admin of the team.
Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.
Something went wrong on CodeNOW's end.
The permission service refused to revoke the member's permissions.