Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


curl example of adding a permission group to a repository

Detailed example of adding a permission group to a repository with curl?

1 answer

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jan 20, 2023

Hi @Len Esterhuyse,

You can use the following endpoint:

An example with curl is as follows:

curl -u BitbucketUsername:AppPassword -X PUT -H "Content-Type: application/json"<workspace-id>/<repo-slug>/permissions-config/groups/developers -d '{"permission": "write"}'


BitbucketUsername is the username of a Bitbucket account with admin permissions to the repo
AppPassword is an app password for this account
<workspace-id> replace with the workspace id where the repo belongs
<repo-slug> replace with your repository slug
developers replace with the group slug of the group you want to add
write is the permission you want to give, it can also be 'read' or 'admin'

If the group already has access to the repo, the group permission will be changed to what you set in this call. Otherwise, the group will be added to the repo with the permissions you set in the call.

Kind regards,

Thank you very much for the example @Theodora Boudale 

Tweak a bit by escaping last bit  to :

 -d "{\"permission\": \"write\"}"

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events