Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to update branch permission using bitbucket server api? Edited

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.

Please advise.

I am following this api documentation -



1 answer

1 accepted

0 votes
Answer accepted

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:

  • /rest/branch-permissions/2.0/projects/{projectKey}/repos/{repositorySlug}/restrictions

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!


Evan Slaughter

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

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...

485 views 5 4
Read article

Community Events

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

Events near you