Sample - GitHub REST API
PUT/gists/{gist_id}/star

Star a gist

Note that you'll need to set Content-Length to zero when calling out to this endpoint. For more information, see "HTTP method."

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
gist_idstringrequired
The unique identifier of the gist.

4 status codes
204Response
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.