---
title: "Changes to Update branch protection"
method: PUT
path: "/repos/{owner}/{repo}/branches/{branch}/protection"
---

# Changes to Update branch protection

`PUT /repos/{owner}/{repo}/branches/{branch}/protection`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 1 of 62 revisions.

- **2026-06-23** (2022-11-28) `00a3fe4953d7` — 3 info

## Changes

- **2026-06-23** (2022-11-28) `00a3fe4953d7` — 3 info
  - added the optional property `required_pull_request_reviews/bypass_pull_request_allowances/teams/items/access_source` to the response with the `200` status
  - added the optional property `required_pull_request_reviews/dismissal_restrictions/teams/items/access_source` to the response with the `200` status
  - added the optional property `restrictions/teams/items/access_source` to the response with the `200` status

---

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