---
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 operation, newest first.

## Timeline

Changed in 2 of 122 revisions.

- **2023-04-12** (3.8) `8f2dc7c3ddf4`: 5 warning
- **2023-04-07** (3.8) `e5adc4e88451`: 5 info

## Changes

- **2023-04-12** (3.8) `8f2dc7c3ddf4`: 5 warning
  - removed the optional property `protection/required_pull_request_reviews/bypass_pull_request_allowances/teams/items/notification_setting` from the response with the `201` status
  - removed the optional property `protection/required_pull_request_reviews/bypass_pull_request_allowances/teams/items/parent/notification_setting` from the response with the `201` status
  - removed the optional property `protection/required_pull_request_reviews/dismissal_restrictions/teams/items/notification_setting` from the response with the `201` status
  - removed the optional property `protection/required_pull_request_reviews/dismissal_restrictions/teams/items/parent/notification_setting` from the response with the `201` status
  - removed the optional property `protection/restrictions/teams/items/notification_setting` from the response with the `201` status
- **2023-04-07** (3.8) `e5adc4e88451`: 5 info
  - added the optional property `protection/required_pull_request_reviews/bypass_pull_request_allowances/teams/items/notification_setting` to the response with the `201` status
  - added the optional property `protection/required_pull_request_reviews/bypass_pull_request_allowances/teams/items/parent/notification_setting` to the response with the `201` status
  - added the optional property `protection/required_pull_request_reviews/dismissal_restrictions/teams/items/notification_setting` to the response with the `201` status
  - added the optional property `protection/required_pull_request_reviews/dismissal_restrictions/teams/items/parent/notification_setting` to the response with the `201` status
  - added the optional property `protection/restrictions/teams/items/notification_setting` to the response with the `201` status

---

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