Skip to content

Like or unlike a gist

PUT/gists/{uuid}/like

Toggles the authenticated caller's like on the gist: if already liked it is unliked, otherwise it is liked. Always returns 204 No Content on success. Returns 404 when the gist isn't visible to the caller.

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

NameTypeScopes
Authorizationrequiredstringuser:write

Path parameters

NameTypeDescription
uuidrequiredstringThe gist's UUID.

Responses

StatusBodyDescription
204The like was toggled.
401ErrorMissing or invalid credentials.
403ErrorThe token lacks the required scope or permission.
404ErrorThe requested resource does not exist (or is not visible to the caller).