Forums

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

Set owner/admin for workspace and project on creation through REST API

mkralik June 11, 2020

I am trying to automate creation of workspaces and projects in Bitbucket Cloud through REST API and I need to set the owner/admin during the creation process.

I have a service user with generated app password and when I create any of those the owner/admin is set for service user, which requires to have some admin to go manually to UI and manually change the permission, which is contraproductive.

Is it even possible? 

  

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 24, 2020

Hello,

I'm afraid that it is not possible to create a workspace via API in Bitbucket Cloud. The workspaces endpoint has only a GET method:

It is possible to create projects via API:

However, projects do not have owners/admins, only workspaces do.

I would like to ask if you could please clarify what you are describing in the following paragraph?

I have a service user with generated app password and when I create any of those the owner/admin is set for service user, which requires to have some admin to go manually to UI and manually change the permission, which is contraproductive.

It is not very clear to me a) what you are doing and b) what is the problem/issue that arises and that you need to solve.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events