Update branch protection REST api issue for "Specify who can force push" #128770
Unanswered
rmandvikar
asked this question in
API and Webhooks
Replies: 1 comment
-
Any update on this please? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
In GitHub REST api (using curl) I'd like to update the branch protection's "Specify who can force push" portion.
Which json property in the PUT body below is for "Specify who can force push" from the screenshot above?
https://docs.github.com/en/[email protected]/rest/branches/branch-protection?apiVersion=2022-11-28#update-branch-protection
It seems this functionality was added in the GitHub UI relatively recently, but the REST api and/or docs, perhaps, were not updated.
See https://github.blog/changelog/2021-12-21-specify-who-can-force-push-to-a-repository/
Versions used:
GitHub Enterprise Server 3.12.4
REST api, using cURL
Beta Was this translation helpful? Give feedback.
All reactions