I wanted to updated the branch permission using bitbucket server api but I did not found any. Also, I want to update in such a way that all branches under a repo should exhibit this permissions and any new branch created should also have this permission.
I am following this api documentation - https://docs.atlassian.com/bitbucket-server/rest/6.1.1/bitbucket-rest.html?utm_source=%2Fstatic%2Frest%2Fbitbucket-server%2Flatest%2Fbitbucket-rest.html&utm_medium=301&_ga=2.247349636.1680944313.1583739652-561280368.1579901771#idp238
Hey @KingDrogba - it looks like the REST API endpoints you're looking for are actually going to be over at our Ref restriction endpoint documentation. Specifically, making a POST to the following endpoint should allow you to make the changes you're describing:
Lastly - just so you have it, the full list of available REST API endpoints can be found here in our REST API documentation.
Hope this helps!
Hi everyone, We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events