Remove app access restrictions

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

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 an app to push to this branch. Only installed GitHub Apps with write access to the contents permission can be added as authorized actors on a protected branch.

TypeDescription
arrayThe GitHub Apps that have push access to this branch. Use the app'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;slug&quot;:&quot;octoapp&quot;,&quot;node_id&quot;:&quot;MDExOkludGVncmF0aW9uMQ==&quot;,&quot;owner&quot;:{&quot;login&quot;:&quot;github&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDEyOk9yZ2FuaXphdGlvbjE=&quot;,&quot;url&quot;:&quot;https://api.github.com/orgs/github&quot;,&quot;repos_url&quot;:&quot;https://api.github.com/orgs/github/repos&quot;,&quot;events_url&quot;:&quot;https://api.github.com/orgs/github/events&quot;,&quot;avatar_url&quot;:&quot;https://github.com/images/error/octocat_happy.gif&quot;,&quot;gravatar_id&quot;:&quot;&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat&quot;,&quot;followers_url&quot;:&quot;https://api.github.com/users/octocat/followers&quot;,&quot;following_url&quot;:&quot;https://api.github.com/users/octocat/following{/other_user}&quot;,&quot;gists_url&quot;:&quot;https://api.github.com/users/octocat/gists{/gist_id}&quot;,&quot;starred_url&quot;:&quot;https://api.github.com/users/octocat/starred{/owner}{/repo}&quot;,&quot;subscriptions_url&quot;:&quot;https://api.github.com/users/octocat/subscriptions&quot;,&quot;organizations_url&quot;:&quot;https://api.github.com/users/octocat/orgs&quot;,&quot;received_events_url&quot;:&quot;https://api.github.com/users/octocat/received_events&quot;,&quot;type&quot;:&quot;User&quot;,&quot;site_admin&quot;:true},&quot;name&quot;:&quot;Octocat App&quot;,&quot;description&quot;:&quot;&quot;,&quot;external_url&quot;:&quot;https://example.com&quot;,&quot;html_url&quot;:&quot;https://github.com/apps/octoapp&quot;,&quot;created_at&quot;:&quot;2017-07-08T16:18:44-04:00&quot;,&quot;updated_at&quot;:&quot;2017-07-08T16:18:44-04:00&quot;,&quot;permissions&quot;:{&quot;metadata&quot;:&quot;read&quot;,&quot;contents&quot;:&quot;read&quot;,&quot;issues&quot;:&quot;write&quot;,&quot;single_file&quot;:&quot;write&quot;},&quot;events&quot;:[&quot;push&quot;,&quot;pull_request&quot;]}]