How do I set the Auto-unapprove setting for my repos using API 1.0

tekknj214 April 29, 2021

My company is running a version of Bitbucket that uses API v1.0. I have been able to create my repos from the API. I then load these new hosted repos from mirrored clones from another Git host. Lastly, I need to set the value to the Pull Request Auto-unapprove setting, but I can't figure out what the format of my URI should be or the resource to use in the data brackets. See my example below:

curl -u user:passwd PUT -H "Content-Type application/json" -d '{"resource": "value"}' http://bitbucket.domain.com/rest/api/1.0/projects/myproj/repos/myrepo/setting-value

The unknowns are:
 

  • resource=
  • value=
  • setting-value=

This URL points to the same issue, but it doesn't fully answer my question.

https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Configure-Bitbucket-Server-Auto-Unapprove-Plugin-at-Project/qaq-p/633718

 

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events