put_api_management_v1_runners_name_
const url = 'https://example.com/api/management/v1/runners/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"allowed_labels":["example"],"allowed_workspace_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"capabilities":{"additionalProperty":"example"},"class":"example","drain_state":"example","isolation":"example","labels":["example"],"tier":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/management/v1/runners/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "allowed_labels": [ "example" ], "allowed_workspace_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "capabilities": { "additionalProperty": "example" }, "class": "example", "drain_state": "example", "isolation": "example", "labels": [ "example" ], "tier": "example" }'Set runner through the authenticated management service.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Management API runner name
Request Bodyrequired
Section titled “Request Bodyrequired”The desired state of a managed runner (PUT /management/v1/runners/{name}).
object
Optional label ceiling of the grant; empty = no label restriction.
Workspaces an edge runner may serve. null/absent = every workspace, which
only a trusted runner may hold.
Further capabilities, e.g. {"builds": true} or {"connectors": true}. The
labels key is set from labels.
object
trusted (may serve every workspace) or edge (only allowed_workspace_ids).
active, cordoned or draining; absent leaves it unchanged.
container (default) or microvm.
Labels the runner advertises for worker-group routing (capabilities.labels).
docker (default), wasm or both.
Example generated
{ "allowed_labels": [ "example" ], "allowed_workspace_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "capabilities": { "additionalProperty": "example" }, "class": "example", "drain_state": "example", "isolation": "example", "labels": [ "example" ], "tier": "example"}Responses
Section titled “Responses”Created or updated; never carries a token
The result of an upsert: the runner, and whether this call created it.
object
A runner as an automation sees it.
object
object
online and heard from within the liveness window.
The display name.
active, cordoned or draining.
container or microvm; omitted in an edit, it resets to container.
The Management API name (managed_key); null for a runner registered in
the browser or by enrollment.
pending, online, offline or disabled.
docker, wasm or both. An edit that omits it resets it to docker, so a
client that edits a runner sends back the value it read.
Token metadata — never the value.
object
Revoked tokens and tokens past their expiry are not active.
Example generated
{ "created": true, "runner": { "allowed_labels": [ "example" ], "allowed_workspace_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "capabilities": { "additionalProperty": "example" }, "class": "example", "connected": true, "display_name": "example", "drain_state": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "isolation": "example", "labels": [ "example" ], "last_seen_at": "2026-04-15T12:00:00Z", "name": "example", "status": "example", "tier": "example", "tokens": [ { "active": true, "created_at": "2026-04-15T12:00:00Z", "expires_at": "2026-04-15T12:00:00Z", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "revoked_at": "2026-04-15T12:00:00Z" } ] }}Missing runners:write, or not an instance-level token
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
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).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}The runner exists with a different class
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
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).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}Invalid name, labels, capabilities or grant
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
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).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}