GitHub v3 REST API

Delete a pull request comment reaction

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

Delete a reaction to a pull request review comment.

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

Path Parameters

ownerstringrequired
repostringrequired
comment_idintegerrequired

comment_id parameter

reaction_idintegerrequired

Response

204

Response

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

List reactions for a team discussion comment (Legacy)

DEPRECATED

Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion comment endpoint.

List the reactions to a team discussion comment. OAuth access tokens require the read:discussion scope.

get
{protocol}://{hostname}/api/v3/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions

Query Parameters

contentstring

Returns a single reaction type. Omit this parameter to list all reactions to a team discussion 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

team_idintegerrequired
discussion_numberintegerrequired
comment_numberintegerrequired

Response

200 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/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions
 
200 application/json

Create reaction for a team discussion comment (Legacy)

DEPRECATED

Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new “Create reaction for a team discussion comment” endpoint.

Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion scope. A response with an HTTP 200 status means that you already added the reaction type to this team discussion comment.

post
{protocol}://{hostname}/api/v3/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions

Path Parameters

team_idintegerrequired
discussion_numberintegerrequired
comment_numberintegerrequired

Body

application/json
contentstringrequired

The reaction type to add to the team discussion comment.

Allowed values:+1-1laughconfusedhearthoorayrocketeyes

Response

201 application/json

Response

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/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions

Body

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

List reactions for a team discussion (Legacy)

DEPRECATED

Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List reactions for a team discussion endpoint.

List the reactions to a team discussion. OAuth access tokens require the read:discussion scope.

get
{protocol}://{hostname}/api/v3/teams/{team_id}/discussions/{discussion_number}/reactions

Query Parameters

contentstring

Returns a single reaction type. Omit this parameter to list all reactions to a team discussion.

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

team_idintegerrequired
discussion_numberintegerrequired

Response

200 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/teams/{team_id}/discussions/{discussion_number}/reactions
 
200 application/json

Create reaction for a team discussion (Legacy)

DEPRECATED

Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Create reaction for a team discussion endpoint.

Create a reaction to a team discussion. OAuth access tokens require the write:discussion scope. A response with an HTTP 200 status means that you already added the reaction type to this team discussion.

post
{protocol}://{hostname}/api/v3/teams/{team_id}/discussions/{discussion_number}/reactions

Path Parameters

team_idintegerrequired
discussion_numberintegerrequired

Body

application/json
contentstringrequired

The reaction type to add to the team discussion.

Allowed values:+1-1laughconfusedhearthoorayrocketeyes

Response

201 application/json

Response

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/teams/{team_id}/discussions/{discussion_number}/reactions

Body

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