The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events