provider teams PATCH
/teams/{team_id} @utdk/github
/teams/{team_id} Update a team (Legacy)
> [!WARNING]
> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/rest/teams/teams#update-a-team) endpoint.
To edit a team, the authenticated user must either be an organization owner or a team maintainer.
> [!NOTE]
> With nested teams, the `privacy` for parent teams cannot be `secret`.
- team_id path required
- The unique identifier of the team.
- integer
Try it
Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import github from '@utdk/github';
await github.teams.updateLegacy({
"permission": "pull"
})