Missed Team ’24? Catch up on announcements here.

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

Add user to private repository via BitBucket REST API 2.0

michaelee
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 3, 2019

How do I go about adding an existing BitBucket user to a private repository using the 2.0 API? Previously, I did this something like this:

curl -u $bb_user:$bb_pass -X PUT "https://api.bitbucket.org/1.0/privileges/$bb_user/$repos/$new_user" --data write

I'm aware of the 1.0 endpoint for inviting users by e-mail, but this isn't practical, given the large number of private repositories to which I need to add the new user.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events