One of asc
(ascending) or desc
(descending).
Allowed values:ascdesc
Default:desc
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
List all comments on 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}/comments
.
One of asc
(ascending) or desc
(descending).
Allowed values:ascdesc
Default:desc
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
team_slug parameter
Response
A reply to a discussion within a team.
Simple User
The main text of the comment.
Example:I agree with this suggestion.
Example:<p>Do you like apples?</p>
The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.
Example:0307116bbf7ced493b8d8a346c650b71
Example:2018-01-15T23:53:58Z
Example:https://api.github.com/organizations/1/team/2403582/discussions/1
Example:https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1
Example:MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=
The unique sequence number of a team discussion comment.
Example:42
Example:2018-01-15T23:53:58Z
Example:https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1
Creates a new comment on a team discussion. OAuth access tokens require the write:discussion
scope.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See “Secondary rate limits” and “Dealing with secondary rate limits” for details.
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
.
team_slug parameter
The discussion comment’s body text.
Response
A reply to a discussion within a team.
Simple User
The main text of the comment.
Example:I agree with this suggestion.
Example:<p>Do you like apples?</p>
The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.
Example:0307116bbf7ced493b8d8a346c650b71
Example:2018-01-15T23:53:58Z
Example:https://api.github.com/organizations/1/team/2403582/discussions/1
Example:https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1
Example:MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=
The unique sequence number of a team discussion comment.
Example:42
Example:2018-01-15T23:53:58Z
Example:https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1
Get a specific comment on 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}/comments/{comment_number}
.
team_slug parameter
Response
A reply to a discussion within a team.
Simple User
The main text of the comment.
Example:I agree with this suggestion.
Example:<p>Do you like apples?</p>
The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.
Example:0307116bbf7ced493b8d8a346c650b71
Example:2018-01-15T23:53:58Z
Example:https://api.github.com/organizations/1/team/2403582/discussions/1
Example:https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1
Example:MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=
The unique sequence number of a team discussion comment.
Example:42
Example:2018-01-15T23:53:58Z
Example:https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1
Edits the body text of a discussion comment. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}
.
team_slug parameter
The discussion comment’s body text.
Response
A reply to a discussion within a team.
Simple User
The main text of the comment.
Example:I agree with this suggestion.
Example:<p>Do you like apples?</p>
The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.
Example:0307116bbf7ced493b8d8a346c650b71
Example:2018-01-15T23:53:58Z
Example:https://api.github.com/organizations/1/team/2403582/discussions/1
Example:https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1
Example:MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=
The unique sequence number of a team discussion comment.
Example:42
Example:2018-01-15T23:53:58Z
Example:https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1
Deletes a comment on a team discussion. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}
.
team_slug parameter
Response