Create a discussion comment

POST {{baseUrl}}/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments

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 abuse rate limiting. See [Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits) and [Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-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.

Request Body

{"body"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{&quot;author&quot;:{&quot;login&quot;:&quot;octocat&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDQ6VXNlcjE=&quot;,&quot;avatar_url&quot;:&quot;https://github.com/images/error/octocat_happy.gif&quot;,&quot;gravatar_id&quot;:&quot;&quot;,&quot;url&quot;:&quot;https://api.github.com/users/octocat&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat&quot;,&quot;followers_url&quot;:&quot;https://api.github.com/users/octocat/followers&quot;,&quot;following_url&quot;:&quot;https://api.github.com/users/octocat/following{/other_user}&quot;,&quot;gists_url&quot;:&quot;https://api.github.com/users/octocat/gists{/gist_id}&quot;,&quot;starred_url&quot;:&quot;https://api.github.com/users/octocat/starred{/owner}{/repo}&quot;,&quot;subscriptions_url&quot;:&quot;https://api.github.com/users/octocat/subscriptions&quot;,&quot;organizations_url&quot;:&quot;https://api.github.com/users/octocat/orgs&quot;,&quot;repos_url&quot;:&quot;https://api.github.com/users/octocat/repos&quot;,&quot;events_url&quot;:&quot;https://api.github.com/users/octocat/events{/privacy}&quot;,&quot;received_events_url&quot;:&quot;https://api.github.com/users/octocat/received_events&quot;,&quot;type&quot;:&quot;User&quot;,&quot;site_admin&quot;:false},&quot;body&quot;:&quot;Do you like apples?&quot;,&quot;body_html&quot;:&quot;\u003cp\u003eDo you like apples?\u003c/p\u003e&quot;,&quot;body_version&quot;:&quot;5eb32b219cdc6a5a9b29ba5d6caa9c51&quot;,&quot;created_at&quot;:&quot;2018-01-15T23:53:58Z&quot;,&quot;last_edited_at&quot;:null,&quot;discussion_url&quot;:&quot;https://api.github.com/teams/2403582/discussions/1&quot;,&quot;html_url&quot;:&quot;https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1&quot;,&quot;node_id&quot;:&quot;MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=&quot;,&quot;number&quot;:1,&quot;updated_at&quot;:&quot;2018-01-15T23:53:58Z&quot;,&quot;url&quot;:&quot;https://api.github.com/teams/2403582/discussions/1/comments/1&quot;,&quot;reactions&quot;:{&quot;url&quot;:&quot;https://api.github.com/teams/2403582/discussions/1/reactions&quot;,&quot;total_count&quot;:5,&quot;+1&quot;:3,&quot;-1&quot;:1,&quot;laugh&quot;:0,&quot;confused&quot;:0,&quot;heart&quot;:1,&quot;hooray&quot;:0,&quot;eyes&quot;:1,&quot;rocket&quot;:1}}