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

How to restrict changes to repository settings via Rest API

Thiemo Morth
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!
June 27, 2024

Hello,

I'm using the Bitbucket Rest API to create new projects in Bitbucket (Data Center 8.19).
The project is created fine, but I don't find a property or additional API call to specify restrictions on repository settings.

The project to be created must have:

Default permissions: No Access
AND
Restrict changes to repository settings: Don't allow repository admins to manage permissions.

In the UI this is configured here:

image (4).png

Currently I create a project like this:

 

POST http://my-bitbucket/rest/api/latest/projects
{
"key": "myproject",
"name": "my project name",
"description" : "my project description"
}

Thanks in advance for your support
Thiemo

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events