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

Unstar a gist

Deletes the authenticated user's star from a specified gist. Use gist_id to identify the gist whose star to remove. A successful response contains no response body.

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

1 parameter
gist_idstringrequired
The unique identifier of the gist from which to remove the authenticated user's star.

4 status codes
204Confirms that the authenticated user's star was removed from the gist.
304Returned when the requested representation has not changed.
403Returned when removing the gist star is forbidden.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when the specified gist cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 403 is returned when the authenticated user is not permitted to remove the gist star. A 404 is returned when the gist identified by gist_id cannot be found. gist_id must identify the gist whose star you want to remove.