---
title: "Changes to Edit a branch protections for a repository. Only fields that are set will be changed"
method: PATCH
path: "/repos/{owner}/{repo}/branch_protections/{name}"
---

# Changes to Edit a branch protections for a repository. Only fields that are set will be changed

`PATCH /repos/{owner}/{repo}/branch_protections/{name}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 12 revisions.

- **2026-10-28** `7ef50c4c527f`: 3 info

## Changes

- **2026-10-28** `7ef50c4c527f`: 3 info
  - removed the non-success response with the status `404`
  - removed the non-success response with the status `422`
  - removed the non-success response with the status `423`

---

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