Missed Team ’24? Catch up on announcements here.

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

how do i update default-reviewers using api 2.0

Sigalit Hillel-Shelly
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!
May 2, 2024

i need to update list of repositories specific branch with default reviewers ( more then 1).

how can i do it using the rest/api?

tried this url but i get 404 unavailable message :

curl -X POST -u user:pass  -H 'Content-Type: application/json' -d '{"reviewers": ["myName"]}' https://bitbucket/rest/api/2.0/projects/Proj/repos/myRepo/default-reviewers/branches/master

Error message :

The requested resource [/rest/api/2.0/plugins/servlet/default-reviewers/projects/Proj/repos/myRepo/branches/master] is not available

1) how can i find the relevant api url address for this request?

2) the reviews name should be the username, email address or full Name?

3) how do i add the minimum reviewers too?

Thanks

 

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events