跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
Support

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