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

Check whether a gist is starred

Verifies whether a specified gist is starred by the authenticated user. Use gist_id to identify the gist whose star state to check. A 204 response confirms that the gist is starred, while a 404 response indicates that it is not starred.

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

1 parameter
gist_idstringrequired
The unique identifier of the gist whose star state to check.

4 status codes
204Confirms that the authenticated user has starred the specified gist.
304Returned when the requested representation has not changed.
403Returned when checking the gist's star state is forbidden.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when the specified gist is not starred.

Error handling

A 403 is returned when the authenticated user is not permitted to check the gist's star state. A 404 is returned when the gist identified by gist_id is not starred. gist_id must identify the gist whose star state you want to verify.