I have an active pull request in ADO, and want to update it using the API described here:
So far, I can successfully update the title of the Pull Request.
{
"title": "Foo"
}
I now want to update the reviewers, here is the request I am patching:
{
"reviewers": [
{
"id": "myValidGuid"
}
]
}
However I'm getting the following 400 error returned:
{
"$id": "1",
"innerException": null,
"message": "Invalid argument value.\r\nParameter name: You can only update reviewers, descriptions, titles, merge status, and status.",
"typeName": "Microsoft.TeamFoundation.SourceControl.WebServer.InvalidArgumentValueException, Microsoft.TeamFoundation.SourceControl.WebServer",
"typeKey": "InvalidArgumentValueException",
"errorCode": 0,
"eventId": 0
}
I can't see what I've got wrong with my request?