Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket API 2.0 support with adding groups using REST API


I want to add some groups and permissions to my repo using REST API. I am able to create a repo under my team's project but in order to assign some groups having some difficulties. 

Do we have an endpoint to add groups and permission while creating a repo? 

curl -X POST \{team_name}/{repo_name} \
-H 'Authorization: Bearer ***************' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 9ff******' \
-H 'cache-control: no-cache' \
-d '{"is_private" : "true","project": {"key": "{project_key"}, "groups": [{"name": "Administrators", "account_privilege": "Admin", "full_slug": "team-name:{team_name"}]}

I am able to create repo using above curl command but group is not getting added to newly created repo. Any suggestions? 

Here, "Administrator" is existed group and it has admin permission assigned. I just need to add this group in my repo creation process. How can I do this? 


Please suggest. 




1 comment

eshahbaz Atlassian Team Sep 09, 2019

Hi Samita, 


This documentation page may be helpful for what you're trying to do.


 Until the Atlassian platform services are fully available in Bitbucket we will continue to support these 1.0 REST endpoints:


Hope that's helpful!


Log in or Sign up to comment
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

638 views 7 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you