Sandboxes
Update a sandbox
Changes name, size, network policy, idle timeout or labels. Requires manage. A new idle timeout applies from the next activity.
Bearer token for the authenticated caller.
Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.
Required string length: 1 - 53
Example: "ws_j572abc123def4"
The etag of the resource version the client last read. Required on writes when the resource exposes an etag field. Mismatch returns 409 ABORTED with the current etag in the error metadata.
Required string length: 1 - 256
Example: "42"
Sandbox id (sbx_...).
Pattern: ^sbx_[A-Za-z0-9]{1,64}$
Example: "sbx_j572abc123def456"
Body
Compute size. standard is the only size today; larger sizes are added as new values.
Available options: standard
Outbound network access. allow_all means public internet only: HTTP on TCP port 80, TLS on TCP port 443 (including HTTPS), and public DNS. Private, link-local, cluster-internal and execution-cluster node addresses are blocked. Cluster DNS names and other ports or protocols are unavailable.
Seconds without API activity after which the sandbox suspends itself. Commands that are still running keep it awake. 300 to 86400; default 600.
Required range: 300 <= x <= 86400
Example: 600
Response
Sandbox
Sandbox id (sbx_...).
Pattern: ^sbx_[A-Za-z0-9]{1,64}$
Example: "sbx_j572abc123def456"
Required string length: 1 - 53
ACTIVE sandboxes run commands and file operations. SUSPENDED sandboxes keep their files and cost only storage. -ING states are in flight; FAILED sandboxes can only be deleted.
Available options: PROVISIONING, ACTIVE, SUSPENDING, SUSPENDED, RESUMING, DELETING, FAILED
Compute size. standard is the only size today; larger sizes are added as new values.
Available options: standard
null for a sandbox created empty. Where the sandbox content comes from. sandbox: a copy of another sandbox from its latest snapshot (a fork). Repository, snapshot and template sources are added as new type values.
Outbound network access. allow_all means public internet only: HTTP on TCP port 80, TLS on TCP port 443 (including HTTPS), and public DNS. Private, link-local, cluster-internal and execution-cluster node addresses are blocked. Cluster DNS names and other ports or protocols are unavailable.
Seconds without API activity after which the sandbox suspends itself. Commands that are still running keep it awake. 300 to 86400; default 600.
Required range: 300 <= x <= 86400
Example: 600
What needs attention now; empty when nothing does. Reasons:
create-failed(error): the sandbox could not be created; it isFAILEDand can only be deleted.suspend-failed(warning): the last suspend failed; the sandbox staysACTIVE.resume-failed(warning): the last resume failed; the sandbox staysSUSPENDED.
Maximum array length: 32 elements
Opaque version token. Send it as If-Match on writes.