Problem with requesting status change in BitBucket Pull Request.Trying to send new status for participant:curl -v -u user -X PUT -d '{ "code": "NEEDS_WORK" }' -H 'X-Atlassian-Token: no-check' -H 'Content-Type: application/json' 'http://bitbucket.server/rest/api/1.0/projects/PUP/repos/control-repo/pull-requests/810/participants/user'Server responds:HTTP/1.1 500In BitBucket log record:2019-02-22 09:36:58,058 ERROR [http-nio-7990-exec-30] user@1990A0Tx576x18598124x2 xxx.xxx.xxx.xxx,"PUT /rest/api/1.0/projects/PUP/repos/control-repo/pull-requests/810/participants/user HTTP/1.0" c.a.s.i.r.e.DefaultUnhandledExceptionMapperHelper Unhandled exception while processing REST request: "PUT /rest/api/1.0/projects/PUP/repos/control-repo/pull-requests/810/participants/user HTTP/1.0"How can we request status change to NEEDS_WORK for participant?
Hi,
It looks like the JSON you're posting isn't exactly right for that API method - see
https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html#idm8297253088:
{ "user": { "name": "charlie" }, "approved": true, "status": "APPROVED" }
Cheers,
Christian
Premier Support Engineer
Atlassian
Thank you, Christian!
It helped us.
It looks like you're new here. Sign in or register to get started.