# PUT /gists/{gist_id}/star

**Resource:** [gists](../resources/gists.md)
**Star a gist**
**Operation ID:** `gists/star`

Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."

## Responses

| Status | Description |
|--------|-------------|
| 204 | Response |
| 304 | (reference) |
| 403 | (reference) |
| 404 | (reference) |

