Forums

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

How to restrict a deployment to be possible only from a specific branch using Bitbucket API?

silvr
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 17, 2023

Basically I want to be able to add the branch restriction shown in this article through Bitbucket REST API to automate the setup of new repositories:
https://bitbucket.org/blog/deployment-permissions-now-available-in-bitbucket-pipelines

Anyone who have done this before could share the details on how to achieve this?

2023-01-17_19-57.png

2 answers

1 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 18, 2023

Hi @silvr,

I'm afraid that this is not possible via API at the moment.

We have a feature request about this in our issue tracker:

You can add your vote (by selecting the Vote for this issue link) and leave a comment there to express your interest.

Kind regards,
Theodora

silvr
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 18, 2023

Thanks for the reply! I'll watch closely this issue.

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

You are very welcome, please feel free to reach out if you ever need anything else!

0 votes
Ulrich Kuhnhardt _IzymesCo_
Atlassian Partner
January 17, 2023

Suggest an answer

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

Atlassian Community Events