Sample - GitHub REST API
PATCH/gists/{gist_id}/comments/{comment_id}

Update a gist comment

Updates 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.

2 parameters · 1 body field
gist_idstringrequired
The unique identifier of the gist.
comment_idintegerrequired
The unique identifier of the comment.
bodystringrequired
The comment text.

2 status codes
200Response
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.
Allowed:COLLABORATORCONTRIBUTORFIRST_TIMERFIRST_TIME_CONTRIBUTORMANNEQUINMEMBERNONEOWNER
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned: Resource not found.