---
title: "Star a repository for the authenticated user"
method: PUT
path: "/user/starred/{owner}/{repo}"
tags: ["activity"]
---

# Star a repository for the authenticated user

`PUT /user/starred/{owner}/{repo}`

Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/enterprise-server@3.6/rest/overview/resources-in-the-rest-api#http-verbs)."

## Path parameters

- `owner` string, required
- `repo` string, required

## Response `204`

Response

## Other responses

- `304` — Not modified
- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-5.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-5/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-5/revisions/50ae54440071/schema)
