reactions
Overview
Name | reactions |
Type | Resource |
Id | github.reactions.reactions |
Fields
Name | Datatype | Description |
---|---|---|
id | integer | |
content | string | The reaction to use |
created_at | string | |
node_id | string | |
user | object | Simple User |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_for_issue | SELECT | issue_number, owner, repo | List the reactions to an issue. |
list_for_team_discussion_comment_in_org | SELECT | comment_number, discussion_number, org, team_slug | List the reactions to a team discussion comment. OAuth access tokens require the read:discussion scope.Note: You can also specify a team by org_id and team_id using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions . |
list_for_team_discussion_comment_legacy | SELECT | comment_number, discussion_number, team_id | 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. |
list_for_team_discussion_in_org | SELECT | discussion_number, org, team_slug | List the reactions to a team discussion. OAuth access tokens require the read:discussion scope.Note: You can also specify a team by org_id and team_id using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions . |
list_for_team_discussion_legacy | SELECT | discussion_number, team_id | 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. |
create_for_issue | INSERT | issue_number, owner, repo, data__content | Create a reaction to an issue. A response with an HTTP 200 status means that you already added the reaction type to this issue. |
create_for_release | INSERT | owner, release_id, repo, data__content | Create a reaction to a release. A response with a Status: 200 OK means that you already added the reaction type to this release. |
create_for_team_discussion_comment_in_org | INSERT | comment_number, discussion_number, org, team_slug, data__content | 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.Note: You can also specify a team by org_id and team_id using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions . |
create_for_team_discussion_comment_legacy | INSERT | comment_number, discussion_number, team_id, data__content | 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. |
create_for_team_discussion_in_org | INSERT | discussion_number, org, team_slug, data__content | 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.Note: You can also specify a team by org_id and team_id using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions . |
create_for_team_discussion_legacy | INSERT | discussion_number, team_id, data__content | 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. |
delete_for_issue | DELETE | issue_number, owner, reaction_id, repo | Note: You can also specify a repository by repository_id using the route DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id .Delete a reaction to an issue. |
delete_for_team_discussion | DELETE | discussion_number, org, reaction_id, team_slug | Note: You can also specify a team or organization with team_id and org_id using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id .Delete a reaction to a team discussion. OAuth access tokens require the write:discussion scope. |
delete_for_team_discussion_comment | DELETE | comment_number, discussion_number, org, reaction_id, team_slug | Note: You can also specify a team or organization with team_id and org_id using the route DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id .Delete a reaction to a team discussion comment. OAuth access tokens require the write:discussion scope. |