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
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!
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.