Hi Guys,
I am trying to add default reviewers to particular repositories using automation.
I am using the following endpoint to make an API call,
Hi Jaipal and welcome to the community!
A call like the following with curl (using username and app password for authentication), should work:
curl -u username:app_password --request PUT \
--url 'https://api.bitbucket.org/2.0/repositories/workspace-id/repo-slug/default-reviewers/reviewer_username' \
--header 'Accept: application/json'
where
I just ran such a call for one of my own repos for testing purposes and the reviewer is added.
Please feel free to let me know if it works for you and if you have any questions.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.