Skip to main content
PATCH
Manage a platform runner

Authorizations

Authorization
string
header
required

Send a dashboard session token, an account API key (agt_t), or a command-line credential (afc_) as a Bearer token. Each endpoint lists accepted credential types.

Path Parameters

runner_id
string
required

Runner identifier (version 7 universally unique identifier, or UUID).

Body

application/json

PATCH /v1/admin/runners/{id} body.

Either an action alone, or an edit: assigned_policy, labels, or both, applied together or not at all. Anything else is a 400.

action
enum<string> | null

A state transition, token rotation, or self-test request. Sent alone.

Available options:
cordon,
uncordon,
drain,
undrain,
revoke,
rotate,
self_test
assigned_policy
object | null

A policy re-assignment, which reaches the host on its next heartbeat.

labels
string[] | null

Replaces all runner labels, each at most 1,048,576 characters. Duplicates are removed in their original order. An empty list clears labels.

Response

The runner's state after the change, or its replacement token after a rotate

The 200 of a runner PATCH, admin or tenant.

The runner's state after an action or an edit, or its replacement token after a rotate. Untagged: the two shapes already differ (status against runner_token), so the wire carries no tag and publishes as oneOf. Debug delegates to each shape's own, which redacts the token (redact.rs).

id
string
required

The runner that changed.

status
enum<string>
required

Its operator state after the change.

Available options:
active,
cordoned,
draining,
drained,
revoked
assigned_policy
object | null

The assignment as stored, on the policy-update path.

labels
string[] | null

The labels as stored, each once, when the request carried labels.

selftest_requested_at
string<date-time> | null

When the self-test was requested. The runner receives it on its next heartbeat and reports later; this timestamp does not indicate success.