Update a team
PATCH
/teams/{id}Renames a team, changes its description, or replaces who’s in it. Send only what changes.
Needs the permissionteams:update
memberIds replaces the whole list. To put one person in or take one out without overwriting what a colleague changed meanwhile, use Add a team member and Remove a team member.
Path parameters
idstringrequired- The team.
Body
namestringoptional- A new name.
descriptionstring or nulloptional- A new description, or null for none.
memberIdslist of stringsoptional- Everyone who should be in it. Ids that aren’t active members are left out.
Returns
The team, as List teams describes it.
Errors
400bad_request- A field has the wrong type, such as
memberIdsthat isn’t a list of user ids. 400nothing_to_change- No
name,descriptionormemberIdswas sent. 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.
409duplicate- Another team already has that name, perhaps with different capitals.
429rate_limited- More than 120 requests a minute from this key. Wait for
Retry-Afterseconds.