Remove a team member
DELETE
/teams/{id}/members/{userId}Takes one person out of a team, including someone suspended. Doing it twice is harmless.
Needs the permissionteams:update
Path parameters
idstringrequired- The team.
userIdstringrequired- The person’s user id.
Returns
The team, without them.
Errors
401invalid_key- The key is wrong, expired or revoked. With no Authorization header at all, the code is
missing_credentials. 403missing_scope- The key doesn’t have
teams:update. TheX-Required-Scopeheader names what’s missing. 403not_admin- The key’s owner isn’t an administrator.
404not_found- There’s no such team.
429rate_limited- More than 120 requests a minute from this key. Wait for
Retry-Afterseconds.