GitHub v3 REST API

Delete a reaction (Legacy)

DEPRECATED

Deprecation Notice: This endpoint route is deprecated and will be removed from the Reactions API. We recommend migrating your existing code to use the new delete reactions endpoints. For more information, see this blog post.

OAuth access tokens require the write:discussion scope, when deleting a team discussion or team discussion comment.

delete
{protocol}://{hostname}/api/v3/reactions/{reaction_id}

Path Parameters

reaction_idintegerrequired

Response

Response

delete/reactions/{reaction_id}
 

List reactions for a commit comment

List the reactions to a commit comment.

get
{protocol}://{hostname}/api/v3/repos/{owner}/{repo}/comments/{comment_id}/reactions

Query Parameters

contentstring

Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.

Allowed values:+1-1laughconfusedhearthoorayrocketeyes

per_pageinteger

Results per page (max 100)

Default:30

pageinteger

Page number of the results to fetch.

Default:1

Path Parameters

ownerstringrequired
repostringrequired
comment_idintegerrequired

comment_id parameter

Response

application/json

Response

Reactions to conversations provide a way to help people express their feelings more simply and effectively.

idintegerrequired

Example:1

node_idstringrequired

Example:MDg6UmVhY3Rpb24x

userobject | nullrequired

Simple User

Show Child Parameters
contentstringrequired

The reaction to use

Allowed values:+1-1laughconfusedhearthoorayrocketeyes

Example:heart

created_atstring(date-time)required

Example:2016-05-20T20:09:31Z

get/repos/{owner}/{repo}/comments/{comment_id}/reactions
 
application/json

Create reaction for a commit comment

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

post
{protocol}://{hostname}/api/v3/repos/{owner}/{repo}/comments/{comment_id}/reactions

Path Parameters

ownerstringrequired
repostringrequired
comment_idintegerrequired

comment_id parameter

Body

application/json
contentstringrequired

The reaction type to add to the commit comment.

Allowed values:+1-1laughconfusedhearthoorayrocketeyes

Response

application/json

Reaction exists

Reaction

Reactions to conversations provide a way to help people express their feelings more simply and effectively.

idintegerrequired

Example:1

node_idstringrequired

Example:MDg6UmVhY3Rpb24x

userobject | nullrequired

Simple User

Show Child Parameters
contentstringrequired

The reaction to use

Allowed values:+1-1laughconfusedhearthoorayrocketeyes

Example:heart

created_atstring(date-time)required

Example:2016-05-20T20:09:31Z

post/repos/{owner}/{repo}/comments/{comment_id}/reactions

Body

{ "content": "heart" }
 
application/json

Delete a commit comment reaction

Note: You can also specify a repository by repository_id using the route DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id.

Delete a reaction to a commit comment.

delete
{protocol}://{hostname}/api/v3/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}

Path Parameters

ownerstringrequired
repostringrequired
comment_idintegerrequired

comment_id parameter

reaction_idintegerrequired

Response

204

Response

delete/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}
 
204

List reactions for an issue comment

List the reactions to an issue comment.

get
{protocol}://{hostname}/api/v3/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions

Query Parameters

contentstring

Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.

Allowed values:+1-1laughconfusedhearthoorayrocketeyes

per_pageinteger

Results per page (max 100)

Default:30

pageinteger

Page number of the results to fetch.

Default:1

Path Parameters

ownerstringrequired
repostringrequired
comment_idintegerrequired

comment_id parameter

Response

application/json

Response

Reactions to conversations provide a way to help people express their feelings more simply and effectively.

idintegerrequired

Example:1

node_idstringrequired

Example:MDg6UmVhY3Rpb24x

userobject | nullrequired

Simple User

Show Child Parameters
contentstringrequired

The reaction to use

Allowed values:+1-1laughconfusedhearthoorayrocketeyes

Example:heart

created_atstring(date-time)required

Example:2016-05-20T20:09:31Z

get/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions
 
application/json