+
+ + Reactions-
+
- Reaction types +
- List + reactions for a commit comment +
- Create reaction for a commit comment +
- Delete a + commit comment reaction +
- List reactions for an + issue +
- Create reaction for + an issue +
- Delete an issue + reaction +
- List + reactions for an issue comment +
- Create reaction for an issue comment +
- Delete an + issue comment reaction +
- List reactions for a pull request + review comment +
- Create reaction for a pull request + review comment +
- Delete a pull request comment reaction +
- List reactions for a team discussion +
- Create reaction for a team discussion +
- Delete team + discussion reaction +
- List reactions for a team discussion + comment +
- Create reaction for a team discussion + comment +
- Delete team discussion comment reaction +
- Delete a reaction + (Legacy) +
- List reactions for a team discussion + (Legacy) +
- Create reaction for a team discussion + (Legacy) +
- List reactions for a team discussion + comment (Legacy) +
- Create reaction for a team + discussion comment (Legacy) +
Note: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ ++
+ + Reaction typesWhen creating a reaction, the allowed values for the content
parameter are as follows (with the
+ corresponding emoji for reference):
content | +emoji | +
---|---|
+1 |
+ ![]() |
+
-1 |
+ ![]() |
+
laugh |
+ ![]() |
+
confused |
+ ![]() |
+
heart |
+ ![]() |
+
hooray |
+ ![]() |
+
rocket |
+ ![]() |
+
eyes |
+ ![]() |
+
+ +
+ + List reactions for a + commit commentNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +List the reactions to a commit comment.
+ +GET /repos/:owner/:repo/comments/:comment_id/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ Returns a single reaction type. Omit this parameter to + list all reactions to a commit comment. | +
+
+ + ResponseStatus: 200 OK
+Link: <https://api.github.com/resource?page=2>; rel="next",
+ <https://api.github.com/resource?page=5>; rel="last"
+
+
+
+ [
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ }
+]
+
+
+
+ + +
+ + Create reaction for a + commit commentNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +Create a reaction to a commit comment. A response with a
+ Status: 200 OK
means that you already added the reaction type to this commit comment.
POST /repos/:owner/:repo/comments/:comment_id/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ + Required. The reaction type to add to the + commit comment. | +
+
+ + Example{
+ "content": "heart"
+}
+
+
+
+ +
+ + ResponseStatus: 201 Created
+
+
+
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+}
+
+
+
+ + +
+ + Delete a commit comment + reactionNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +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 /repos/:owner/:repo/comments/:comment_id/reactions/:reaction_id
+
+
+ +
+ + ResponseStatus: 204 No Content
+
+
+
+ + +
+ + List reactions for an + issueNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +List the reactions to an issue.
+ +GET /repos/:owner/:repo/issues/:issue_number/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ Returns a single reaction type. Omit this parameter to + list all reactions to an issue. | +
+
+ + ResponseStatus: 200 OK
+Link: <https://api.github.com/resource?page=2>; rel="next",
+ <https://api.github.com/resource?page=5>; rel="last"
+
+
+
+ [
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ }
+]
+
+
+
+ +
+ + Create reaction for an + issueNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +Create a reaction to an issue. A response with a Status: 200 OK
means
+ that you already added the reaction type to this issue.
POST /repos/:owner/:repo/issues/:issue_number/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ + Required. The reaction type to add to the + issue. | +
+
+ + Example{
+ "content": "heart"
+}
+
+
+
+ +
+ + ResponseStatus: 201 Created
+
+
+
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+}
+
+
+
+ + +
+ + Delete an issue reactionNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +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 /repos/:owner/:repo/issues/:issue_number/reactions/:reaction_id
+
+
+ +
+ + ResponseStatus: 204 No Content
+
+
+
+ + +
+ + List reactions for an + issue commentNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +List the reactions to an issue comment.
+ +GET /repos/:owner/:repo/issues/comments/:comment_id/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ Returns a single reaction type. Omit this parameter to + list all reactions to an issue comment. | +
+
+ + ResponseStatus: 200 OK
+Link: <https://api.github.com/resource?page=2>; rel="next",
+ <https://api.github.com/resource?page=5>; rel="last"
+
+
+
+ [
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ }
+]
+
+
+
+ + +
+ + Create reaction for an + issue commentNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +Create a reaction to an issue comment. A response with a
+ Status: 200 OK
means that you already added the reaction type to this issue comment.
POST /repos/:owner/:repo/issues/comments/:comment_id/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ + Required. The reaction type to add to the + issue comment. | +
+
+ + Example{
+ "content": "heart"
+}
+
+
+
+ +
+ + ResponseStatus: 201 Created
+
+
+
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+}
+
+
+
+ + +
+ + Delete an issue comment + reactionNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +Note: You can also specify a repository by repository_id
using the route
+ DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id
.
+
Delete a reaction to an issue comment.
+ +DELETE /repos/:owner/:repo/issues/comments/:comment_id/reactions/:reaction_id
+
+
+ +
+ + ResponseStatus: 204 No Content
+
+
+
+ + +
+ + List reactions for a pull request review commentNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +List the reactions to a pull request review comment.
+ +GET /repos/:owner/:repo/pulls/comments/:comment_id/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ Returns a single reaction type. Omit this parameter to + list all reactions to a pull request review comment. | +
+
+ + ResponseStatus: 200 OK
+Link: <https://api.github.com/resource?page=2>; rel="next",
+ <https://api.github.com/resource?page=5>; rel="last"
+
+
+
+ [
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ }
+]
+
+
+
+ + +
+ + Create reaction for a pull request review commentNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +Create a reaction to a pull request review comment. A response with a
+ Status: 200 OK
means that you already added the reaction type to this pull request review
+ comment.
POST /repos/:owner/:repo/pulls/comments/:comment_id/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ + Required. The reaction type to add to the + pull request review comment. | +
+
+ + Example{
+ "content": "heart"
+}
+
+
+
+ +
+ + ResponseStatus: 201 Created
+
+
+
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+}
+
+
+
+ + +
+ + Delete a pull request + comment reactionNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +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 /repos/:owner/:repo/pulls/comments/:comment_id/reactions/:reaction_id
+
+
+ +
+ + ResponseStatus: 204 No Content
+
+
+
+ + +
+ + List reactions for a + team discussionNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +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
.
+
GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ Returns a single reaction type. Omit this parameter to + list all reactions to a team discussion. | +
+
+ + ResponseStatus: 200 OK
+Link: <https://api.github.com/resource?page=2>; rel="next",
+ <https://api.github.com/resource?page=5>; rel="last"
+
+
+
+ [
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ }
+]
+
+
+
+ +
+ + Create reaction for a + team discussionNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +Create a reaction to a team discussion. OAuth access tokens require the
+ write:discussion
scope. A response with a
+ Status: 200 OK
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
.
+
POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ + Required. The reaction type to add to the + team discussion. | +
+
+ + Example{
+ "content": "heart"
+}
+
+
+
+ +
+ + ResponseStatus: 201 Created
+
+
+
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+}
+
+
+
+ + +
+ + Delete team discussion + reactionNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +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 /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions/:reaction_id
+
+
+ +
+ + ResponseStatus: 204 No Content
+
+
+
+ + +
+ + List reactions for a team discussion commentNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +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
.
+
GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ Returns a single reaction type. Omit this parameter to + list all reactions to a team discussion comment. | +
+
+ + ResponseStatus: 200 OK
+Link: <https://api.github.com/resource?page=2>; rel="next",
+ <https://api.github.com/resource?page=5>; rel="last"
+
+
+
+ [
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ }
+]
+
+
+
+ + +
+ + Create reaction for a team discussion commentNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +Create a reaction to a team discussion comment. OAuth access
+ tokens require the write:discussion
scope. A response with a
+ Status: 200 OK
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
.
+
POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ + Required. The reaction type to add to the + team discussion comment. | +
+
+ + Example{
+ "content": "heart"
+}
+
+
+
+ +
+ + ResponseStatus: 201 Created
+
+
+
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+}
+
+
+
+ + +
+ + Delete team discussion + comment reactionNote: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +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.
DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id
+
+
+ +
+ + ResponseStatus: 204 No Content
+
+
+
+ + +
+ + Delete a reaction (Legacy)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.
+ +Note: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +OAuth access tokens require the write:discussion
scope, when deleting a team discussion or team
+ discussion comment.
DELETE /reactions/:reaction_id
+
+
+ +
+ + ResponseStatus: 204 No Content
+
+
+
+ + +
+ + List reactions for a team discussion (Legacy)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.
Note: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +List the reactions to a team discussion. OAuth access tokens require the
+ read:discussion
scope.
GET /teams/:team_id/discussions/:discussion_number/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ Returns a single reaction type. Omit this parameter to + list all reactions to a team discussion. | +
+
+ + ResponseStatus: 200 OK
+Link: <https://api.github.com/resource?page=2>; rel="next",
+ <https://api.github.com/resource?page=5>; rel="last"
+
+
+
+ [
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ }
+]
+
+
+
+ +
+ + Create reaction for a team discussion (Legacy)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.
Note: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +Create a reaction to a team discussion. OAuth access tokens require the
+ write:discussion
scope. A response with a
+ Status: 200 OK
means that you already added the reaction type to this team discussion.
POST /teams/:team_id/discussions/:discussion_number/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ + Required. The reaction type to add to the + team discussion. | +
+
+ + Example{
+ "content": "heart"
+}
+
+
+
+ +
+ + ResponseStatus: 201 Created
+
+
+
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+}
+
+
+
+ + +
+ + List reactions for a team discussion comment (Legacy)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.
Note: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +List the reactions to a team discussion comment. OAuth access
+ tokens require the read:discussion
scope.
GET /teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ Returns a single reaction type. Omit this parameter to + list all reactions to a team discussion comment. | +
+
+ + ResponseStatus: 200 OK
+Link: <https://api.github.com/resource?page=2>; rel="next",
+ <https://api.github.com/resource?page=5>; rel="last"
+
+
+
+ [
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+ }
+]
+
+
+
+ + +
+ + Create reaction for a team discussion comment (Legacy)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.
Note: APIs for managing reactions are currently available for developers to preview. See
+ the blog post for full details. To access the API
+ during the preview period, you must provide a custom media type in the
+ Accept
header:
application/vnd.github.squirrel-girl-preview+json
+
+
+ Warning: The API may change without advance notice during the preview period. Preview + features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub + Premium Support.
+ +Create a reaction to a team discussion comment. OAuth access
+ tokens require the write:discussion
scope. A response with a
+ Status: 200 OK
means that you already added the reaction type to this team discussion comment.
+
POST /teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
+
+
+ +
+ + ParametersName | +Type | +Description | +
---|---|---|
content |
+ string |
+ + Required. The reaction type to add to the + team discussion comment. | +
+
+ + Example{
+ "content": "heart"
+}
+
+
+
+ +
+ + ResponseStatus: 201 Created
+
+
+
+ {
+ "id": 1,
+ "node_id": "MDg6UmVhY3Rpb24x",
+ "user": {
+ "login": "octocat",
+ "id": 1,
+ "node_id": "MDQ6VXNlcjE=",
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/octocat",
+ "html_url": "https://github.com/octocat",
+ "followers_url": "https://api.github.com/users/octocat/followers",
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
+ "repos_url": "https://api.github.com/users/octocat/repos",
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "content": "heart",
+ "created_at": "2016-05-20T20:09:31Z"
+}
+
+
+