Update an enterprise team
To edit a team, the authenticated user must be an enterprise owner.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The slug version of the enterprise name.
The slug of the team name.
Request Body required
Section titled “ Request Body required ”object
A new name for the team.
A new description for the team.
Retired: this field is no longer supported. Whether the enterprise team should be reflected in each organization. This value cannot be changed.
Specifies which organizations in the enterprise should have access to this team. Can be one of disabled, selected, or all.
disabled: The team is not assigned to any organizations. This is the default when you create a new team.
selected: The team is assigned to specific organizations. You can then use the add organization assignments API.
all: The team is assigned to all current and future organizations in the enterprise.
The ID of the IdP group to assign team membership with. The new IdP group will replace the existing one, or replace existing direct members if the team isn’t currently linked to an IdP group.
The notification setting the team is set to. The options are:
notifications_enabled- team members receive notifications when the team is @mentioned.notifications_disabled- no one receives notifications.
Examples
{ "name": "Justice League", "description": "A great team.", "group_id": "62ab9291-fae2-468e-974b-7e45096d5021"}Responses
Section titled “ Responses ”Response
Group of enterprise owners and/or members
object
Retired: this field will not be returned with GHEC enterprise teams.
Retired: this field will not be returned with GHEC enterprise teams.
Whether team members will receive notifications when the team is mentioned.
Examples
{ "id": 1, "name": "Justice League", "description": "A great team.", "slug": "justice-league", "url": "https://api.github.com/enterprises/dc/teams/justice-league", "group_id": "62ab9291-fae2-468e-974b-7e45096d5021", "html_url": "https://github.com/enterprises/dc/teams/justice-league", "members_url": "https://api.github.com/enterprises/dc/teams/justice-league/members{/member}", "created_at": "2019-01-26T19:01:12Z", "updated_at": "2019-01-26T19:14:43Z"}Headers
Section titled “ Headers ”Example
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"Forbidden
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}