---
title: "Update a review comment for a pull request"
method: PATCH
path: "/repos/{owner}/{repo}/pulls/comments/{comment_id}"
tags: ["pulls"]
---

# Update a review comment for a pull request

`PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}`

Edits the content of a specified review comment.

This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."

- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.
- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.
- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.
- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.

## Path parameters

- `owner` string, required
- `repo` string, required
- `comment_id` integer, required

## Request body

- object
  - `body` string, required — The text of the reply to the review comment.

## Response `200`

Response

- PullRequestReviewComment — Pull Request Review Comments are comments on a portion of the Pull Request's diff.
  - `url` string, required — URL for the pull request review comment
  - `pull_request_review_id` integer, nullable, required — The ID of the pull request review to which the comment belongs.
  - `id` integer, required — The ID of the pull request review comment.
  - `node_id` string, required — The node ID of the pull request review comment.
  - `diff_hunk` string, required — The diff of the line that the comment refers to.
  - `path` string, required — The relative path of the file to which the comment applies.
  - `position` integer — The line index in the diff to which the comment applies. This field is closing down; use `line` instead.
  - `original_position` integer — The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.
  - `commit_id` string, required — The SHA of the commit to which the comment applies.
  - `original_commit_id` string, required — The SHA of the original commit to which the comment applies.
  - `in_reply_to_id` integer — The comment ID to reply to.
  - `user` NullableSimpleUser, nullable, required — A GitHub user.
    - `name` string, nullable
    - `email` string, nullable
    - `login` string, required
    - `id` integer, required
    - `node_id` string, required
    - `avatar_url` string, uri, required
    - `gravatar_id` string, nullable, required
    - `url` string, uri, required
    - `html_url` string, uri, required
    - `followers_url` string, uri, required
    - `following_url` string, required
    - `gists_url` string, required
    - `starred_url` string, required
    - `subscriptions_url` string, uri, required
    - `organizations_url` string, uri, required
    - `repos_url` string, uri, required
    - `events_url` string, required
    - `received_events_url` string, uri, required
    - `type` string, required
    - `site_admin` boolean, required
    - `starred_at` string
    - `user_view_type` string
  - `body` string, required — The text of the comment.
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `html_url` string, uri, required — HTML URL for the pull request review comment.
  - `pull_request_url` string, uri, required — URL for the pull request that the review comment belongs to.
  - `author_association` 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER', required — How the author is associated with the repository.
  - `_links` object, required
    - `self` object, required
      - `href` string, uri, required
    - `html` object, required
      - `href` string, uri, required
    - `pull_request` object, required
      - `href` string, uri, required
  - `start_line` integer, nullable — The first line of the range for a multi-line comment.
  - `original_start_line` integer, nullable — The first line of the range for a multi-line comment.
  - `start_side` 'LEFT' | 'RIGHT', nullable — The side of the first line of the range for a multi-line comment.
  - `line` integer — The line of the blob to which the comment applies. The last line of the range for a multi-line comment
  - `original_line` integer — The line of the blob to which the comment applies. The last line of the range for a multi-line comment
  - `side` 'LEFT' | 'RIGHT' — The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment
  - `subject_type` 'line' | 'file' — The level at which the comment is targeted, can be a diff line or a file.
  - `reactions` ReactionRollup
    - `url` string, uri, required
    - `total_count` integer, required
    - `+1` integer, required
    - `-1` integer, required
    - `laugh` integer, required
    - `confused` integer, required
    - `heart` integer, required
    - `hooray` integer, required
    - `eyes` integer, required
    - `rocket` integer, required
  - `body_html` string
  - `body_text` string

---

[API](https://skmtc.net/github/apis/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
