apicheats.dev Cheat sheet Raw .md
PATCH

Try PATCH /teams/{team_id} — GitHub API

GitHub playground

Update a team (Legacy)

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

7 body fields
  • name · required · string — The name of the team.
  • description · optional · string — The description of the team.
  • privacy · optional · string — The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: **For a non-nested team:** * `secret` - only visible to organization owners and members of this team. * `closed` - visible to all members of this organization. **For a parent or child team:** * `closed` - visible to all members of this organization.
  • notification_setting · optional · string — The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: * `notifications_enabled` - team members receive notifications when the team is @mentioned. * `notifications_disabled` - no one receives notifications.
  • permission · optional · string — **Closing down notice**. The permission that new repositories will be added to the team with when none is specified.
  • parent_team_id · optional · integer — The ID of a team to set as the parent team.
  • parent_team_slug · optional · string — The slug of a team to set as the parent team. Ignored when `parent_team_id` is also provided.