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

# Changes to Rename a branch

`POST /repos/{owner}/{repo}/branches/{branch}/rename`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 1 of 73 revisions.

- **2026-06-23** `ae221630baa5` — 3 info

## Changes

- **2026-06-23** `ae221630baa5` — 3 info
  - added the optional property `protection/required_pull_request_reviews/bypass_pull_request_allowances/teams/items/access_source` to the response with the `201` status
  - added the optional property `protection/required_pull_request_reviews/dismissal_restrictions/teams/items/access_source` to the response with the `201` status
  - added the optional property `protection/restrictions/teams/items/access_source` to the response with the `201` status

---

[Operation](https://skmtc.dev/github/apis/enterprise-cloud/docs/repos/:owner/:repo/branches/:branch/rename/post.md) · [API](https://skmtc.dev/github/apis/enterprise-cloud.md) · [Page](https://skmtc.dev/github/apis/enterprise-cloud/changes/repos/:owner/:repo/branches/:branch/rename/post)
