Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of the next version, still under development. See the latest release.

Update the priorities of branch protections for a repository.

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

Owner of the repo

repo
required
string

Name of the repo

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

APINotFound is a not found empty response

APIValidationError is error format response related to input validation

message
string
url
string

APIRepoArchivedError is an error that is raised when an archived repo should be modified

message
string
url
string