POST
/gists/{gist_id}/commentsCreate a gist comment
Creates a comment on a gist.
This endpoint supports the following custom media types. For more information, see "Media types."
application/vnd.github.raw+json: Returns the raw markdown. This is the default if you do not pass any specific media type.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
gist_idstringrequired
The unique identifier of the gist.
bodystringrequired
The comment text.
201Response
idintegerrequired
node_idstringrequired
urlstringrequired
bodystringrequired
The comment text.
userobjectrequired
A GitHub user.
created_atstringrequired
updated_atstringrequired
author_associationstringrequired
How the author is associated with the repository.
304Not modified
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 403 is returned: Forbidden. A 404 is returned: Resource not found.