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 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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events