Create a review for a pull request

POST {{baseUrl}}/repos/:owner/:repo/pulls/:pull_number/reviews

This endpoint triggers notifications. Creating content too quickly using this endpoint may result in abuse rate limiting. See [Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits) and [Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits) for details.

Pull request reviews created in the PENDING state do not include the submitted_at property in the response.

Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API v3 offers the application/vnd.github.v3.diff media type. To see a pull request diff, add this media type to the Accept header of a call to the single pull request endpoint.

The position value equals the number of lines down from the first @@ hunk header in the file you want to add a comment. The line just below the @@ line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.

Request Body

{"commit_id"=>"<string>", "body"=>"<string>", "event"=>"<string>", "comments"=>[{"path"=>"<string>", "body"=>"<string>", "position"=>"<integer>", "line"=>"<integer>", "side"=>"<string>", "start_line"=>"<integer>", "start_side"=>"<string>"}, {"path"=>"<string>", "body"=>"<string>", "position"=>"<integer>", "line"=>"<integer>", "side"=>"<string>", "start_line"=>"<integer>", "start_side"=>"<string>"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;id&quot;:80,&quot;node_id&quot;:&quot;MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=&quot;,&quot;user&quot;:{&quot;login&quot;:&quot;octocat&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDQ6VXNlcjE=&quot;,&quot;avatar_url&quot;:&quot;https://github.com/images/error/octocat_happy.gif&quot;,&quot;gravatar_id&quot;:&quot;&quot;,&quot;url&quot;:&quot;https://api.github.com/users/octocat&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat&quot;,&quot;followers_url&quot;:&quot;https://api.github.com/users/octocat/followers&quot;,&quot;following_url&quot;:&quot;https://api.github.com/users/octocat/following{/other_user}&quot;,&quot;gists_url&quot;:&quot;https://api.github.com/users/octocat/gists{/gist_id}&quot;,&quot;starred_url&quot;:&quot;https://api.github.com/users/octocat/starred{/owner}{/repo}&quot;,&quot;subscriptions_url&quot;:&quot;https://api.github.com/users/octocat/subscriptions&quot;,&quot;organizations_url&quot;:&quot;https://api.github.com/users/octocat/orgs&quot;,&quot;repos_url&quot;:&quot;https://api.github.com/users/octocat/repos&quot;,&quot;events_url&quot;:&quot;https://api.github.com/users/octocat/events{/privacy}&quot;,&quot;received_events_url&quot;:&quot;https://api.github.com/users/octocat/received_events&quot;,&quot;type&quot;:&quot;User&quot;,&quot;site_admin&quot;:false},&quot;body&quot;:&quot;This is close to perfect! Please address the suggested inline change.&quot;,&quot;state&quot;:&quot;CHANGES_REQUESTED&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80&quot;,&quot;pull_request_url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/pulls/12&quot;,&quot;_links&quot;:{&quot;html&quot;:{&quot;href&quot;:&quot;https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80&quot;},&quot;pull_request&quot;:{&quot;href&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/pulls/12&quot;}},&quot;submitted_at&quot;:&quot;2019-11-17T17:43:43Z&quot;,&quot;commit_id&quot;:&quot;ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091&quot;,&quot;author_association&quot;:&quot;collaborator&quot;}