Issue Summary
The POST body parameters status, lastReviewedCommit and approved mentioned in the below attached API documentation do not work as expected.
https://developer.atlassian.com/server/bitbucket/rest/v805/api-group-pull-requests/#api-api-latest-projects-projectkey-repos-repositoryslug-pull-requests-pullrequestid-participants-post
Also the success code is 200 and not 201 as mentioned in the document.
This is reproducible on Data Center: (yes)
Steps to Reproduce
- Execute the API to add participant to a Pull Request along with the Body to also update the approval status and lastReviewedCommit.
{ "status": "APPROVED", "user": { "name": "nuser" }, "role": "REVIEWER", "lastReviewedCommit": "f4b5054757345e37118af71a8b211c0554e8758a", "approved": true
Expected Results
The participant is added as reviewer and the approval is added for the reviewer.
Actual Results
The mentioned body parameter are ignored and have no affect on the outcome of the API request.
Workaround
To change the approval status of the participant use the below API instead:
https://developer.atlassian.com/server/bitbucket/rest/v805/api-group-pull-requests/#api-api-latest-projects-projectkey-repos-repositoryslug-pull-requests-pullrequestid-participants-userslug-put