Check if a gist is liked
GET
/gists/{uuid}/likeReturns 204 No Content when the authenticated caller has liked the
gist, and 404 when they have not - or when the gist isn't visible to
them, so the two cases are indistinguishable by design.
This like endpoint also accepts star in the path as an alias to keep
GitHub compatibility - e.g. /gists/{uuid}/star. The behavior is the same.
Request
Headers
| Name | Type | Scopes |
|---|---|---|
Authorizationrequired | string |
Path parameters
| Name | Type | Description |
|---|---|---|
uuidrequired | string | The gist's UUID. |
Responses
| Status | Body | Description |
|---|---|---|
204 | — | The caller has liked the gist. |
401 | Error | Missing or invalid credentials. |
404 | Error | The requested resource does not exist (or is not visible to the caller). |