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:
This URL points to the same issue, but it doesn't fully answer my question.
I think this is the answer. Will try it. https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Is-there-a-way-to-turn-on-auto-unapprove-with-the-REST-API/qaq-p/1150142
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.