Skip to main content

Dismiss a review for a pull request

**Note:** To dismiss a pull request review on a [protected branch](https://docs.github.com/[email protected]/rest/reference/repos#branches), you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.

PUT/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
owner string
required
repo string
required
pull_number integer
required
review_id integer
required

review_id parameter

Body Params
required
application/jsonobject
event string
optional

Example: "APPROVE"

message string
required

The message for the pull request review dismissal

Responses

application/json Pull Request Review object

Response

_links object
required
html object
required
href string
required
pull_request object
required
href string
required
author_association
string< author_association >
required

How the author is associated with the repository.

Example: OWNER

body string
required

The text of the review.

Example: This looks great.

body_html string
optional
body_text string
optional
commit_id string
required

A commit SHA for the review.

Example: 54bb654c9e6025347f57900a4a5c2313a96b8035

html_url string<uri>
required

Example: https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80

id integer
required

Unique identifier of the review

Example: 42

node_id string
required

Example: MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=

pull_request_url string<uri>
required

Example: https://api.github.com/repos/octocat/Hello-World/pulls/12

state string
required

Example: CHANGES_REQUESTED

submitted_at string<date-time>
optional
user Simple User object
requirednullable

Simple User

avatar_url string<uri>
required

Example: https://github.com/images/error/octocat_happy.gif

email string
optionalnullable
events_url string
required

Example: https://api.github.com/users/octocat/events{/privacy}

followers_url string<uri>
required

Example: https://api.github.com/users/octocat/followers

following_url string
required

Example: https://api.github.com/users/octocat/following{/other_user}

gists_url string
required

Example: https://api.github.com/users/octocat/gists{/gist_id}

gravatar_id string
requirednullable

Example: 41d064eb2195891e12d0413f63227ea7

html_url string<uri>
required

Example: https://github.com/octocat

id integer
required

Example: 1

login string
required

Example: octocat

name string
optionalnullable
node_id string
required

Example: MDQ6VXNlcjE=

organizations_url string<uri>
required

Example: https://api.github.com/users/octocat/orgs

received_events_url string<uri>
required

Example: https://api.github.com/users/octocat/received_events

repos_url string<uri>
required

Example: https://api.github.com/users/octocat/repos

site_admin boolean
required
starred_at string
optional

Example: "2020-07-09T00:17:55Z"

starred_url string
required

Example: https://api.github.com/users/octocat/starred{/owner}{/repo}

subscriptions_url string<uri>
required

Example: https://api.github.com/users/octocat/subscriptions

type string
required

Example: User

url string<uri>
required

Example: https://api.github.com/users/octocat

application/json Basic Error object

Resource not found

documentation_url string
optional
message string
optional
status string
optional
url string
optional
application/json Validation Error Simple object

Validation failed

documentation_url string
required
errors array[string]
optional
message string
required