# Update a review for a pull request

From **GitHub v3 REST API**.

`PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`

Update the review summary comment with new text.

## Parameters

### `owner`

- Location: path
- Required: true
- Type: `string`

### `repo`

- Location: path
- Required: true
- Type: `string`

### `pull_number`

- Location: path
- Required: true
- Type: `integer`

### `review_id`

- Location: path
- Required: true
- Type: `integer`

review_id parameter

## Request body

- Required: true
### `application/json`

- Type: `object`

```json
{
  "body": "This is close to perfect! Please address the suggested inline change. And add more about this."
}
```

```json
{"properties":{"body":{"description":"The body text of the pull request review.","type":"string"}},"required":["body"],"type":"object"}
```

## Responses

### `200`

Response

### `application/json`

- Type: `object`

Pull Request Reviews are reviews on pull requests.

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

```json
{"description":"Pull Request Reviews are reviews on pull requests.","properties":{"_links":{"properties":{"html":{"properties":{"href":{"type":"string"}},"required":["href"],"type":"object"},"pull_request":{"properties":{"href":{"type":"string"}},"required":["href"],"type":"object"}},"required":["html","pull_request"],"type":"object"},"author_association":{"$ref":"#/components/schemas/author_association"},"body":{"description":"The text of the review.","example":"This looks great.","type":"string"},"body_html":{"type":"string"},"body_text":{"type":"string"},"commit_id":{"description":"A commit SHA for the review.","example":"54bb654c9e6025347f57900a4a5c2313a96b8035","type":"string"},"html_url":{"example":"https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80","format":"uri","type":"string"},"id":{"description":"Unique identifier of the review","example":42,"type":"integer"},"node_id":{"example":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=","type":"string"},"pull_request_url":{"example":"https://api.github.com/repos/octocat/Hello-World/pulls/12","format":"uri","type":"string"},"state":{"example":"CHANGES_REQUESTED","type":"string"},"submitted_at":{"format":"date-time","type":"string"},"user":{"$ref":"#/components/schemas/nullable-simple-user"}},"required":["id","node_id","user","body","state","commit_id","html_url","pull_request_url","_links","author_association"],"title":"Pull Request Review","type":"object"}
```

### `422`

Validation failed

### `application/json`

- Type: `object`

Validation Error Simple

```json
{"description":"Validation Error Simple","properties":{"documentation_url":{"type":"string"},"errors":{"items":{"type":"string"},"type":"array"},"message":{"type":"string"}},"required":["message","documentation_url"],"title":"Validation Error Simple","type":"object"}
```

## Request examples

### cURL

```shell
curl --request PUT \
  --url {protocol}://{hostname}/api/v3/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id} \
  --header 'content-type: application/json' \
  --data '{
  "body": "This is close to perfect! Please address the suggested inline change. And add more about this."
}'
```
