跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
Support
This is the documentation of 26.4.10, which is no longer the latest release. See the latest release.

Delete a specific branch protection rule of an organization

DELETE
/orgs/{org}/branch_protections/{name}
curl --request DELETE \
--url https://gitea.example.com/api/v1/orgs/example/branch_protections/example \
--header 'Authorization: Basic <credentials>'

Gitea Enterprise only. This endpoint is not part of the community edition.

org
required
string

Name of the organization

name
required
string

Name of protected branch rule

APIEmpty is an empty response

Media typeapplication/json

APINotFound is a not found empty response

Media typeapplication/json