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

How to edit a branch permission in Bitbucket without logging have to done from automation

srinathdh November 29, 2017
How to edit a branch permission in bit key without logging Bitbucket have to done through any automation scripts

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 1, 2017

 

Hi Srinath, you can automate this by using the Bitbucket REST API, but you'll need to authenticate. The Bitbucket API grants access to public data without authentication, but access to private data requires the caller to authenticate under an account with the appropriate access. Adding or changing branch permissions requires project admin privileges.

 

You can find more information about the REST API at  https://developer.atlassian.com/static/rest/bitbucket-server/latest/bitbucket-rest.html#idm45669359596592 (if you're using Bitbucket Server) or https://developer.atlassian.com/cloud/bitbucket/about-bitbucket-cloud-rest-api/ (if you're using Bitbucket Cloud).

Hope that helps!

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events