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

Update the priorities of branch protection rules of an organization

POST
/orgs/{org}/branch_protections/priority
curl --request POST \
--url https://gitea.example.com/api/v1/orgs/example/branch_protections/priority \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "ids": [ 1 ] }'

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

org
required
string

Name of the organization

Media typeapplication/json

UpdateBranchProtectionPriories a list to update the branch protection rule priorities

object
ids
Array<integer>
Examplegenerated
{
"ids": [
1
]
}

APIEmpty is an empty response

Media typeapplication/json

APINotFound is a not found empty response

Media typeapplication/json

APIValidationError is error format response related to input validation

Media typeapplication/json
message
string
url
string