team_discussions
Overview
Name | team_discussions |
Type | Resource |
Id | github.reactions.team_discussions |
Fields
Name | Datatype | Description |
---|---|---|
id | integer | |
content | string | The reaction to use |
created_at | string | |
node_id | string | |
user | object | A GitHub user. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
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_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_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. |