Remove team access restrictions

DELETE {{baseUrl}}/repos/:owner/:repo/branches/:branch/protection/restrictions/teams

Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see GitHub's products in the GitHub Help documentation.

Removes the ability of a team to push to this branch. You can also remove push access for child teams.

TypeDescription
arrayTeams that should no longer have push access. Use the team's slug. Note: The list of users, apps, and teams in total is limited to 100 items.

Request Body

["<string>", "<string>"]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

[{&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDQ6VGVhbTE=&quot;,&quot;url&quot;:&quot;https://api.github.com/teams/1&quot;,&quot;html_url&quot;:&quot;https://api.github.com/teams/justice-league&quot;,&quot;name&quot;:&quot;Justice League&quot;,&quot;slug&quot;:&quot;justice-league&quot;,&quot;description&quot;:&quot;A great team.&quot;,&quot;privacy&quot;:&quot;closed&quot;,&quot;permission&quot;:&quot;admin&quot;,&quot;members_url&quot;:&quot;https://api.github.com/teams/1/members{/member}&quot;,&quot;repositories_url&quot;:&quot;https://api.github.com/teams/1/repos&quot;,&quot;parent&quot;:null}]