`POST /api/runners/{id}/status` — disable or re-enable a runner (ADR 0021, R6). System-admin auth, like `GET /api/runners`. A disabled runner stops receiving dispatched work and its heartbeats are rejected; re-enabling resets it to `pending`. An unknown id maps to `NotFound`.
const url = 'https://example.com/api/runners/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/status';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"enabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/runners/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/status \ --header 'Content-Type: application/json' \ --data '{ "enabled": true }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Runner ID
Request Bodyrequired
Section titled “Request Bodyrequired”Body of a disable / re-enable call.
object
false parks the runner (disabled); true re-enables it (pending,
promoted back to online by its next heartbeat).
Examplegenerated
{ "enabled": true}Responses
Section titled “Responses”Runner enabled/disabled
A registered runner as exposed to callers. Carries no token material.
object
Free-form advertised capabilities (images/labels/max_parallel/weight/…).
Typed as an open string-keyed map in the spec (not Object, which strips
every key) so the FE binds the advertised capability map it reads (#541).
object
ADR 0046 RUNG 2 — graceful drain: active | cordoned | draining.
cordoned/draining runners receive no new work but keep heartbeating
and finish in-flight assignments. Always populated from the row (this type
is serialize-only), so no serde default is needed.
Examplegenerated
{ "capabilities": { "additionalProperty": "example" }, "created_at": "2026-04-15T12:00:00Z", "drain_state": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "last_heartbeat_at": "2026-04-15T12:00:00Z", "name": "example", "registered_at": "2026-04-15T12:00:00Z", "status": "example"}Authentication required
The canonical JSON body of every error response — the single source of truth
the frontend binds to. Every AppError serializes as this exact shape, and
the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is
what the frontend error schema is generated from, so there is no hand-written
error schema on either end.
object
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Example
{ "code": "not_found"}Permission denied
The canonical JSON body of every error response — the single source of truth
the frontend binds to. Every AppError serializes as this exact shape, and
the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is
what the frontend error schema is generated from, so there is no hand-written
error schema on either end.
object
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Example
{ "code": "not_found"}Unknown runner
The canonical JSON body of every error response — the single source of truth
the frontend binds to. Every AppError serializes as this exact shape, and
the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is
what the frontend error schema is generated from, so there is no hand-written
error schema on either end.
object
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Example
{ "code": "not_found"}Structured server error
The canonical JSON body of every error response — the single source of truth
the frontend binds to. Every AppError serializes as this exact shape, and
the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is
what the frontend error schema is generated from, so there is no hand-written
error schema on either end.
object
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Example
{ "code": "not_found"}