---
title: "Changes to Rename a branch"
method: PATCH
path: "/repos/{owner}/{repo}/branches/{branch}"
---

# Changes to Rename a branch

`PATCH /repos/{owner}/{repo}/branches/{branch}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 3 of 12 revisions.

- **2026-10-28** `7ef50c4c527f`: 3 info
- **2026-07-13** `4df6be504c96`: 1 info
- **2025-05-20** `4ff3544d6eb3`: 1 info

## Changes

- **2026-10-28** `7ef50c4c527f`: 3 info
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `404`
  - removed the non-success response with the status `422`
- **2026-07-13** `4df6be504c96`: 1 info
  - api operation id `repoUpdateBranch` removed and replaced with `repoRenameBranch`
- **2025-05-20** `4ff3544d6eb3`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/gitea/apis/gitea-api/docs/repos/:owner/:repo/branches/:branch/patch.md) - [API](https://skmtc.dev/gitea/apis/gitea-api.md) - [Page](https://skmtc.dev/gitea/apis/gitea-api/changes/repos/:owner/:repo/branches/:branch/patch)
