Skip to content

Star a gist

PUT
/gists/{gist_id}/star

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

API method documentation

gist_id
required
string

The unique identifier of the gist.

Response

Not modified

Forbidden

Media type application/json
Basic Error

Basic Error

object
message
string
documentation_url
string
url
string
status
string
Example generated
{
"message": "example",
"documentation_url": "example",
"url": "example",
"status": "example"
}

Resource not found

Media type application/json
Basic Error

Basic Error

object
message
string
documentation_url
string
url
string
status
string
Example generated
{
"message": "example",
"documentation_url": "example",
"url": "example",
"status": "example"
}