Create Review endpoint not working

Hey!

I just tried to use the API and wanted to create a review as mentioned here:

https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review

However, as soon as I try to replicate this programmatically I get an 404 error:

{
  "message": "Not Found",
  "documentation_url": "https://developer.github.com/v3"
}

I pass the authorization header with the Bearer token, the content type header “application/json”, the Accept header “application/vnd.github.v3+json” and a proper user agent and try to POST the following to https://api.github.com/repos/OWNER/REPO/pulls/1/reviews

{
    "commit_id": "",
    "event": "comment",
    "body": "Fine for me.",
    "comments": []
}

Any idea why this does not work?

Thanks!

I’m actually hitting the same issue, have you had any luck? From what i can tell, the API may return 404 if you don’t have access to the repository, however that doesn’t appear to be the case for me.