Patch runtime resources or policy
const url = 'http://127.0.0.1:8080/v1/runtimes/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"display_name":"example","environment_variables":{"additionalProperty":"example"},"ingress_specs":[{"protocol":"http","runtime_port":1}],"egress_policy":{"mode":"denylist","allowed_hosts":["example"],"denied_hosts":["example"]},"idle_policy":{"mode":"disabled"},"llm_tool_io_capture_enabled":true,"llm_token_saving_policy":{"json_array_enabled":true,"log_enabled":true,"search_results_enabled":true,"git_diff_enabled":true},"resources":{"limits":{"memory_mib":1},"requests":{"memory_mib":1}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://127.0.0.1:8080/v1/runtimes/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "display_name": "example", "environment_variables": { "additionalProperty": "example" }, "ingress_specs": [ { "protocol": "http", "runtime_port": 1 } ], "egress_policy": { "mode": "denylist", "allowed_hosts": [ "example" ], "denied_hosts": [ "example" ] }, "idle_policy": { "mode": "disabled" }, "llm_tool_io_capture_enabled": true, "llm_token_saving_policy": { "json_array_enabled": true, "log_enabled": true, "search_results_enabled": true, "git_diff_enabled": true }, "resources": { "limits": { "memory_mib": 1 }, "requests": { "memory_mib": 1 } } }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Runtime UUID or display name.
Runtime UUID or display name.
Request Bodyrequired
Section titled “Request Bodyrequired”Runtime patch request.
object
New user-facing runtime name. The runtime UUID and data-plane identity remain unchanged.
Complete replacement of visible non-secret environment variables. An empty object removes every variable; omit to leave unchanged. Names must match [A-Za-z_][A-Za-z0-9_]* and be at most 128 UTF-8 bytes; Runta-managed, provider, credential, and runtime CA names are reserved. Values must be strings of at most 8192 UTF-8 bytes without NUL, CR, or LF, with at most 65536 value bytes across the map.
object
Complete replacement ingress set. Omit to leave unchanged; use an empty array to remove every published port.
Public ingress forwarding rule.
object
Application-layer protocol.
Port inside the runtime VM.
object
Egress gateway mode.
Host names or wildcard patterns allowed in allowlist mode.
Host names or wildcard patterns denied in denylist mode.
Idle policy. Omit to leave unchanged.
object
Disable automatic idle suspension and wakeup.
object
Automatically suspend an idle runtime, but require an explicit Start to wake it.
object
Idle duration before automatic suspension.
Automatically suspend an idle runtime and wake it on supported activity.
object
Idle duration before automatic suspension.
Whether official LLM HTTP API tool input/output capture is enabled. Omit to leave unchanged.
Per-method LLM tool-output compression patch. Omit to leave unchanged.
object
object
Resource limits.
object
Maximum memory in MiB.
Resource requests.
object
Requested baseline memory in MiB.
Responses
Section titled “Responses”Response envelope.
Response envelope.
object
Runtime response object.
object
User-chosen display name.
Non-secret environment variables stored visibly on this runtime. Secret-derived variables are excluded. Names and values use the byte limits documented by CreateRuntimeRequest.environment_variables.
object
Egress policy.
object
Egress gateway mode.
Host names or wildcard patterns allowed in allowlist mode.
Host names or wildcard patterns denied in denylist mode.
Whether official LLM HTTP API tool input/output capture is enabled.
Canonical LLM tool-output compression policy.
object
Runtime idle suspension and automatic wakeup policy.
object
Disable automatic idle suspension and wakeup.
object
Automatically suspend an idle runtime, but require an explicit Start to wake it.
object
Idle duration before automatic suspension.
Automatically suspend an idle runtime and wake it on supported activity.
object
Idle duration before automatic suspension.
Stable runtime UUID.
RFC3339 timestamp when the control-plane runtime row was created.
RFC3339 timestamp of the last control-plane runtime row mutation.
Active ingress specs.
Public ingress forwarding rule.
object
Application-layer protocol.
Port inside the runtime VM.
Runtime resource state.
object
Current resource allocation.
object
Current memory allocation in MiB.
Resource limits.
object
Maximum memory in MiB.
Resource requests.
object
Requested baseline memory in MiB.
Requested virtual CPUs.
Runtime-scoped agent setup metadata.
object
Agent manifest key.
Agent setup status.
Runtime-local setup log path.
Last setup error, if any.
RFC3339 timestamp of the last setup state change.
Runtime status.
Whether this runtime supports SSH access.
Example
{ "data": { "egress_policy": { "mode": "denylist" }, "idle_policy": { "mode": "disabled" }, "ingress_specs": [ { "protocol": "http" } ], "agent": { "status": "queued" }, "status": "running" }}Missing, malformed, or rejected bearer token
object
object
Example
{ "error": { "code": "already_exists" }}The bearer token is not allowed to perform this action
object
object
Example
{ "error": { "code": "already_exists" }}The requested resource was not found
object
object
Example
{ "error": { "code": "already_exists" }}The request conflicts with current resource state
object
object
Example
{ "error": { "code": "already_exists" }}Validation or application error
object
object
Example
{ "error": { "code": "already_exists" }}Rate limit exceeded
object
object
Example
{ "error": { "code": "already_exists" }}Upstream service is unavailable
object
object
Example
{ "error": { "code": "already_exists" }}Upstream request timed out
object
object
Example
{ "error": { "code": "already_exists" }}default
Section titled “default”Error response
object
object
Example
{ "error": { "code": "already_exists" }}