Hi,
Can anyone let me know how to approve a Pull Request using REST API from a 3rd party application (Azure Function)?
It seems that the direct 'approve' option is no longer available(link below). However, the quest is, is there a work around
https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html#idm8297609456
Have a look at this API: /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants/{userSlug} with PUT method.
According to the doc, the json you would need to send is:
{
"user": {
"name": "charlie"
},
"approved": true,
"status": "APPROVED"
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.