You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
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 \
https://api.bitbucket.org/2.0/repositories/{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.
Thanks,
Smita