Due to the omitempty tag on NewTeam.ParentTeamID it is not possible (in my understanding) to update a child team to be a top-level team. Because updating a team is a PATCH operation, when parent_team_id is omitted, GitHub does not update the team's parent.
Happy to submit a PR.
Due to the
omitemptytag onNewTeam.ParentTeamIDit is not possible (in my understanding) to update a child team to be a top-level team. Because updating a team is a PATCH operation, whenparent_team_idis omitted, GitHub does not update the team's parent.Happy to submit a PR.