Snapvisor Docs

Remove a member

Remove a user from a team. Requires administrator access to the team. The last member of a team cannot be removed; removing the second-to-last one promotes the remaining member to owner. Use it when a team administrator explicitly asks to take a user off the team.

DELETE
/accounts/{accountSlug}/members/{userId}

Remove a user from a team. Requires administrator access to the team. The last member of a team cannot be removed; removing the second-to-last one promotes the remaining member to owner. Use it when a team administrator explicitly asks to take a user off the team.

Authorization

AuthorizationBearer <token>

Authenticate as a user with a personal access token.

Send it as a bearer token in the Authorization header:

Authorization: Bearer <personal-access-token>

Personal access tokens act on behalf of the user that created them and are required by endpoints that perform user actions, such as reviewing builds and posting comments.

In: header

Path Parameters

accountSlug*string

Slug of the team.

Length1 <= length
userId*string

Identifier of the user to act on — the user.id returned by listAccountMembers, which is the user's account id.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/accounts/string/members/string"
Empty