Patch runtime resources or policy
const url = 'https://api.runta.com/v2/runtimes/example?expected_revision=1';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"environment_variables":{"additionalProperty":"example"},"display_name":"example","egress_policy":{"mode":"denylist","denied_hosts":["example"]},"ingress_specs":[{"protocol":"http","runtime_port":1,"hostname_label":"example"}],"idle_policy":{"mode":"disabled"},"auto_shutdown_policy":{"mode":"disabled","after_seconds":1},"auto_delete_policy":{"mode":"disabled","after_seconds":1},"llm_tool_io_capture_enabled":true,"llm_session_content_capture_enabled":true,"tls_passthrough_hosts":["example"],"tcp_allowlist":["example"],"vnc_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,"disk_gib":1}},"secret_configuration":[{"secret_id":"example","environment":[],"egress_rules":[],"files":[]}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url 'https://api.runta.com/v2/runtimes/example?expected_revision=1' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "environment_variables": { "additionalProperty": "example" }, "display_name": "example", "egress_policy": { "mode": "denylist", "denied_hosts": [ "example" ] }, "ingress_specs": [ { "protocol": "http", "runtime_port": 1, "hostname_label": "example" } ], "idle_policy": { "mode": "disabled" }, "auto_shutdown_policy": { "mode": "disabled", "after_seconds": 1 }, "auto_delete_policy": { "mode": "disabled", "after_seconds": 1 }, "llm_tool_io_capture_enabled": true, "llm_session_content_capture_enabled": true, "tls_passthrough_hosts": [ "example" ], "tcp_allowlist": [ "example" ], "vnc_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, "disk_gib": 1 } }, "secret_configuration": [ { "secret_id": "example", "environment": [], "egress_rules": [], "files": [] } ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Runtime UUID or display name.
Runtime UUID or display name.
Query Parameters
Section titled “Query Parameters”Runtime aggregate revision required for optimistic concurrency.
Request Bodyrequired
Section titled “Request Bodyrequired”Runtime patch request.
object
Complete replacement of the runtime’s non-secret environment variables. An empty object removes all variables. Omit to preserve current values. Creation rules for names, values, and reserved names also apply.
object
New user-facing runtime name. The runtime UUID and data-plane identity remain unchanged.
object
Deny matching hosts and allow all other egress destinations.
object
Host names, wildcard patterns, IP addresses, or CIDR ranges to deny.
Allow only matching egress destinations.
object
Host names, wildcard patterns, IP addresses, or CIDR ranges to allow.
Complete replacement ingress configuration. Omit to leave unchanged.
Public ingress forwarding rule. Application URLs use the gateway lifecycle
response contract described in the RuntimeIngress tag, including the
x-runta-runtime-state header on gateway-generated HTTP 503/410 responses.
object
Application-layer protocol.
Port inside the runtime VM.
Stable custom hostname label for this port, for example foxden. The
port is then reachable at <label>.<ingress domain>, for example
foxden.runta.sh. This is a preview. It is available only when the
deployment enables custom hostnames. A PATCH that replaces
ingress_specs without hostname_label for this port clears the label.
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.
Maximum duration of a running session. Omit on PATCH to preserve the policy. An explicit save resets only this policy’s clock. Disabled by default.
object
Required for enabled and forbidden for disabled. An explicit save restarts only this policy’s clock.
Retention after confirmed shutdown. Starting the runtime cancels deletion. Omit on PATCH to preserve the policy. An explicit save resets only this policy’s clock. Disabled by default.
object
Required for enabled and forbidden for disabled. An explicit save restarts only this policy’s clock.
Whether official LLM HTTP API tool input/output capture is enabled. Omit to leave unchanged.
Explicitly enable capture of user, assistant, and tool conversation content. Disabled by default. Independent from tool-only capture. Omit to leave unchanged.
Complete replacement HTTPS passthrough host configuration. Matching TLS connections bypass secret injection, LLM capture, token saving, and model routing and connect to the original destination. Omit to leave unchanged.
Complete replacement raw TCP allowlist. Each entry is an exact FQDN:port. Omit to leave unchanged.
Enable or disable the on-demand shared VNC desktop. 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.
New overlay capacity in GiB. Only growth while fully shutdown is supported.
Complete replacement inline secret configuration. Omit to leave unchanged.
Inline injection configuration for one tenant secret.
object
Environment variable populated from a secret.
object
HTTP egress credential populated from a secret.
object
Where an egress secret is injected.
Managed credential file populated from a secret.
object
Delivery path, relative to the guest home directory.
Responses
Section titled “Responses”Response envelope.
Response envelope.
object
Runtime response object.
object
Current session deadline, absent until running or when disabled.
Deletion deadline, absent until shutdown or when disabled.
Non-secret environment variables the runtime carries.
object
User-chosen display name.
Egress policy.
object
Deny matching hosts and allow all other egress destinations.
object
Host names, wildcard patterns, IP addresses, or CIDR ranges to deny.
Allow only matching egress destinations.
object
Host names, wildcard patterns, IP addresses, or CIDR ranges to allow.
Whether official LLM HTTP API tool input/output capture is enabled.
Explicitly enable capture of user, assistant, and tool conversation content. Disabled by default. Independent from tool-only capture.
HTTPS host patterns using opaque TLS tunnels to the original destination, bypassing secret injection, LLM capture, token saving, and model routing.
Exact FQDN:port destinations that may receive raw TCP from the runtime. Empty denies raw TCP.
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.
Maximum duration of a running session. Omit on PATCH to preserve the policy. An explicit save resets only this policy’s clock. Disabled by default.
object
Required for enabled and forbidden for disabled. An explicit save restarts only this policy’s clock.
Retention after confirmed shutdown. Starting the runtime cancels deletion. Omit on PATCH to preserve the policy. An explicit save resets only this policy’s clock. Disabled by default.
object
Required for enabled and forbidden for disabled. An explicit save restarts only this policy’s clock.
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. Application URLs use the gateway lifecycle
response contract described in the RuntimeIngress tag, including the
x-runta-runtime-state header on gateway-generated HTTP 503/410 responses.
object
Application-layer protocol.
Port inside the runtime VM.
Stable custom hostname label for this port, for example foxden. The
port is then reachable at <label>.<ingress domain>, for example
foxden.runta.sh. This is a preview. It is available only when the
deployment enables custom hostnames. A PATCH that replaces
ingress_specs without hostname_label for this port clears the label.
Runtime resource state.
object
Current resource allocation.
object
Current memory allocation in MiB.
Worker-observed overlay virtual capacity in GiB.
Resource limits.
object
Maximum memory in MiB.
Resource requests.
object
Requested baseline memory in MiB.
Requested virtual CPUs.
Target overlay virtual capacity in GiB.
Stable Runtime Image variant identifier.
Runtime status.
Whether a running runtime has lacked a new successful heartbeat for at least 60 seconds.
Control-plane target lifecycle state.
Whether this runtime supports SSH access.
Whether the shared VNC desktop is configured to run with this runtime.
Whether the current Worker assignment has published a ready VNC mapping.
Bounded machine-readable VNC startup failure code.
Fixed native VNC gateway connection parameters for this runtime’s zone.
object
Public VNC gateway DNS hostname.
Public native VNC TCP port.
Username required by the X509Plain handshake.
VeNCrypt authentication subtype required by the gateway.
Bounded machine-readable provisioning failure code.
Current runtime failure reason, bounded to 4096 UTF-8 bytes. Cleared when the failure recovers.
Organization member who owns the runtime.
Whether the current caller may perform control operations on this runtime.
Monotonic runtime aggregate revision.
Canonical inline secret injection configuration.
Inline injection configuration for one tenant secret.
object
Environment variable populated from a secret.
object
HTTP egress credential populated from a secret.
object
Where an egress secret is injected.
Managed credential file populated from a secret.
object
Delivery path, relative to the guest home directory.
Example
{ "data": { "egress_policy": { "mode": "denylist" }, "idle_policy": { "mode": "disabled" }, "auto_shutdown_policy": { "mode": "disabled" }, "auto_delete_policy": { "mode": "disabled" }, "ingress_specs": [ { "protocol": "http" } ], "status": "running", "desired_status": "running", "vnc_connection": { "username": "runta", "security_type": "X509Plain" }, "secret_configuration": [ { "environment": [], "egress_rules": [], "files": [] } ] }}Missing, malformed, or rejected bearer token
object
object
Authorization refusal reason. Only required_scope_missing permits an OAuth scope challenge.
UUID v7 correlation ID shared with the X-Request-Id response header.
Example
{ "error": { "code": "already_exists" }}The bearer token is not allowed to perform this action
object
object
Authorization refusal reason. Only required_scope_missing permits an OAuth scope challenge.
UUID v7 correlation ID shared with the X-Request-Id response header.
Example
{ "error": { "code": "already_exists" }}The requested resource was not found
object
object
Authorization refusal reason. Only required_scope_missing permits an OAuth scope challenge.
UUID v7 correlation ID shared with the X-Request-Id response header.
Example
{ "error": { "code": "already_exists" }}The request conflicts with current resource state
object
object
Authorization refusal reason. Only required_scope_missing permits an OAuth scope challenge.
UUID v7 correlation ID shared with the X-Request-Id response header.
Example
{ "error": { "code": "already_exists" }}Validation or application error
object
object
Authorization refusal reason. Only required_scope_missing permits an OAuth scope challenge.
UUID v7 correlation ID shared with the X-Request-Id response header.
Example
{ "error": { "code": "already_exists" }}Rate limit exceeded
object
object
Authorization refusal reason. Only required_scope_missing permits an OAuth scope challenge.
UUID v7 correlation ID shared with the X-Request-Id response header.
Example
{ "error": { "code": "already_exists" }}Operation is not implemented
object
object
Authorization refusal reason. Only required_scope_missing permits an OAuth scope challenge.
UUID v7 correlation ID shared with the X-Request-Id response header.
Example
{ "error": { "code": "already_exists" }}Upstream service is unavailable
object
object
Authorization refusal reason. Only required_scope_missing permits an OAuth scope challenge.
UUID v7 correlation ID shared with the X-Request-Id response header.
Example
{ "error": { "code": "already_exists" }}Upstream request timed out
object
object
Authorization refusal reason. Only required_scope_missing permits an OAuth scope challenge.
UUID v7 correlation ID shared with the X-Request-Id response header.
Example
{ "error": { "code": "already_exists" }}default
Section titled “default”Error response
object
object
Authorization refusal reason. Only required_scope_missing permits an OAuth scope challenge.
UUID v7 correlation ID shared with the X-Request-Id response header.
Example
{ "error": { "code": "already_exists" }}