Sample - GitHub REST API
POST/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions

Create reaction for a pull request review comment

Create a reaction to a pull request review comment. A response with an HTTP 200 status means that you already added the reaction type to this pull request review comment.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters · 1 body field
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
comment_idintegerrequired
The unique identifier of the comment.
contentstringrequired
The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the pull request review comment.
Allowed:+1-1laughconfusedhearthoorayrocketeyes

3 status codes
200Reaction exists
idintegerrequired
node_idstringrequired
userobjectrequired
A GitHub user.
contentstringrequired
The reaction to use
Allowed:+1-1laughconfusedhearthoorayrocketeyes
created_atstringrequired
201Reaction created
idintegerrequired
node_idstringrequired
userobjectrequired
A GitHub user.
contentstringrequired
The reaction to use
Allowed:+1-1laughconfusedhearthoorayrocketeyes
created_atstringrequired
422Validation failed, or the endpoint has been spammed.
messagestringrequired
documentation_urlstringrequired
errorsarray<object>optional

Error handling

A 422 is returned: Validation failed, or the endpoint has been spammed.