Skip to main content
PATCH
Administer a fleet runner

Authorizations

Authorization
string
header
required

Obtain a token via the CLI auth flow (POST /v1/auth/sessions) or GitHub OAuth

Path Parameters

runner_id
string
required

UUIDv7 of the runner.

Body

application/json

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

Exactly one of action or assigned_policy; both or neither is a 400.

action
null | enum<string>

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

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

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

Response

OK

PATCH /v1/fleets/runners/{id} reply.

admin_state
enum<string>
required

Its state after the change.

Available options:
active,
cordoned,
draining,
drained,
revoked
id
string
required

The runner that changed.

assigned_policy
null | object

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

selftest_requested_at
integer<int64> | null

When the self-test request was recorded, epoch milliseconds.

The reply is the REQUEST, never a verdict — the daemon picks the ask up on its next beat, so a result cannot exist yet. Returning the instant lets a reader age the pending state instead of spinning with no clock.