We're releasing new endpoints and changes to existing endpoints to better help you administer your organization's nested teams.
Changes to existing API endpoints
You can now create a team with a parent team by passing the
parent_team_idparameter to the Create team endpoint.
You can now update a team's parent team by passing the
parent_team_idparameter to the Edit team endpoint.
Deleting a nested team through the Delete team endpoint will delete the team and all its child teams. Note: this action is only available to organization admins.
Listing a repository's collaborators through the Lists collaborators will now include child team members.
Endpoints that return team hashes will now include the
parentfield representing the parent team. Additionally, the
repositories_countwill include all members and repositories according to the nested structure.
To access the Nested Teams APIs during the preview period, you must provide a custom media type in the
During the preview period, we may change aspects of these API methods based on developer feedback. If we do, we will announce the changes here on the developer blog, but we will not provide any advance notice.
If you have any questions or feedback, please let us know!