Create a discussion comment
Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/[email protected]/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). This endpoint triggers [notifications](https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. See "[Secondary rate limits](https://docs.github.com/[email protected]/rest/overview/resources-in-the-rest-api#secondary-rate-limits)" and "[Dealing with secondary rate limits](https://docs.github.com/[email protected]/rest/guides/best-practices-for-integrators#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`.
/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- org stringrequired
- team_slug stringrequired
team_slug parameter
- discussion_number integerrequired
Body Params
requiredThe discussion comment's body text.
Responses
Response
author Simple User objectrequirednullable Simple User
Simple User
Example: https://github.com/images/error/octocat_happy.gif
Example: https://api.github.com/users/octocat/events{/privacy}
Example: https://api.github.com/users/octocat/followers
Example: https://api.github.com/users/octocat/following{/other_user}
Example: https://api.github.com/users/octocat/gists{/gist_id}
Example: 41d064eb2195891e12d0413f63227ea7
Example: https://github.com/octocat
Example: 1
Example: octocat
Example: MDQ6VXNlcjE=
Example: https://api.github.com/users/octocat/orgs
Example: https://api.github.com/users/octocat/received_events
Example: https://api.github.com/users/octocat/repos
Example: "2020-07-09T00:17:55Z"
Example: https://api.github.com/users/octocat/starred{/owner}{/repo}
Example: https://api.github.com/users/octocat/subscriptions
Example: User
Example: https://api.github.com/users/octocat
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
reactions Reaction Rollup objectoptional
Example: 2018-01-15T23:53:58Z
Example: https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1