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

How to create a branch with Permissions throught bitbucket API

sidhant June 1, 2023

How to create a branch with Permissions throught bitbucket API 


1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 2, 2023

Hi @sidhant and welcome to the community!

If you want to create a branch, you can use the following API endpoint:

If you want to create a branch restriction for a certain branch, you can use the following API endpoint:

Please feel free to reach out if you have any questions.

Kind regards,
Theodora

sidhant June 2, 2023

Hi @Theodora Boudale thanks for the reply,

I am trying to create a branch with certain permissions.
I'm using the above the API endpoint you mentioned to create a branch. But is there any endpoint through which I can create the branch as well as set some permissions to the created branch 

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 2, 2023

Hi @sidhant,

You can't do both operations with one API call. The API endpoints for creating a branch and for creating a branch restriction are different. You need to use the respective endpoint for each operation.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events