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

Update a global runner

PATCH
/admin/actions/runners/{runner_id}
curl --request PATCH \
--url https://gitea.example.com/api/v1/admin/actions/runners/example \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "disabled": true }'
runner_id
required
string

Id of the runner

Media typeapplication/json
EditActionRunnerOption represents the editable fields for a runner.
object
disabled
required
boolean
Examplegenerated
{
"disabled": true
}

Runner

Media typeapplication/json

ActionRunner represents a Runner

object
busy
boolean
disabled
boolean
ephemeral
boolean
id
integer format: int64
labels
Array<object>

ActionRunnerLabel represents a Runner Label

object
id
integer format: int64
name
string
type
string
name
string
status
string
Examplegenerated
{
"busy": true,
"disabled": true,
"ephemeral": true,
"id": 1,
"labels": [
{
"id": 1,
"name": "example",
"type": "example"
}
],
"name": "example",
"status": "example"
}

APIError is error format response

Media typeapplication/json
message
string
url
string

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