Skip to main content

team_discussions

Overview

Nameteam_discussions
TypeResource
Idgithub.reactions.team_discussions

Fields

NameDatatypeDescription
idinteger
userobjectA GitHub user.
contentstringThe reaction to use
created_atstring
node_idstring

Methods

NameAccessible byRequired ParamsDescription
list_for_team_discussion_comment_in_orgSELECTcomment_number, discussion_number, org, team_slugList 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_legacySELECTcomment_number, discussion_number, team_idDeprecation 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_orgSELECTdiscussion_number, org, team_slugList 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_legacySELECTdiscussion_number, team_idDeprecation 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_orgINSERTcomment_number, discussion_number, org, team_slug, data__contentCreate 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_legacyINSERTcomment_number, discussion_number, team_id, data__contentDeprecation 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_orgINSERTdiscussion_number, org, team_slug, data__contentCreate 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_legacyINSERTdiscussion_number, team_id, data__contentDeprecation 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_discussionDELETEdiscussion_number, org, reaction_id, team_slugNote: 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_commentDELETEcomment_number, discussion_number, org, reaction_id, team_slugNote: 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.