Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket-API: Branch permissions

Johannes Kilian
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 14, 2015

Is there a Bitbucket API to set/get/delete the branch permissions for a repository?

There are API functions for project permissions and repository permissions - but I haven't seen this functionality for branch permissions ...

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Answer accepted
Felix
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 14, 2015

Yes there is. 

Branch permissions have a REST API as well as a Java API - note that the API is called "Ref restrictions" to more accurately reflect what "Branch permissions" actually do (restrict access to refs). 

I hope this helps, 

Felix Haehnel 
Graduate Developer
Bitbucket Server 

1 vote
Daniel ThamizhSelvam P November 29, 2017

hi,

We dont use any Bitbucket CLI. but business ask is to make a branch read only when release gets started.

Any sample commands on the above scenario?

0 votes
thinksabin August 9, 2017

hi,

 

how can we use api? will this work in api 1.0?

thanks

Kanwar Gill September 14, 2017

Use api 2.0

TAGS
AUG Leaders

Atlassian Community Events