Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ground Controller Lvl 1
Message 1 of 1

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!