# PATCH /repos/{owner}/{repo}

**Resource:** [repos](../resources/repos.md)
**Update a repository**
**Operation ID:** `repos/update`

**Note**: To edit a repository's topics, use the [Replace all repository topics](https://docs.github.com/rest/repos/repos#replace-all-repository-topics) endpoint.

## Request Body

**Content Types:** `application/json`

## Responses

| Status | Description |
|--------|-------------|
| 200 | Response |
| 307 | (reference) |
| 403 | (reference) |
| 404 | (reference) |
| 422 | (reference) |

**Success Response Schema:**

[full-repository](../schemas/full-repository/full-repository.md)

