Sample - GitHub REST API
POST/repos/{owner}/{repo}/releases/{release_id}/reactions

Create reaction for a release

Create a reaction to a release. A response with a Status: 200 OK means that you already added the reaction type to this release.

  • 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.
release_idintegerrequired
The unique identifier of the release.
contentstringrequired
The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the release.
Allowed:+1laughhearthoorayrocketeyes

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.