Skip to main content
PATCH
Change the size

Authorizations

Authorization
string
header
required

An API key (zode_tok_...). Create one in the console under API keys (https://console.zode.dev/tokens), or with zode login.

Path Parameters

id
string
required
Pattern: ^sbx_[a-z2-7]{16}$

Body

application/json
size
string
required

auto, or a size name (GET /v1/sizes).

Example:

"auto"

min_size
enum<string>

With auto only.

Available options:
small,
medium,
large,
xlarge
max_size
enum<string>

With auto only.

Available options:
small,
medium,
large,
xlarge

Response

The sandbox, with auto and what it holds now.

id
string
required
Example:

"sbx_ilvsd743b36wqi26"

name
string
required
status
enum<string>
required
Available options:
creating,
running,
stopping,
stopped,
starting,
deleting,
deleted,
error
vcpus
integer
required
ram_mb
integer
required
disk_gb
integer
required
region
string
required
Example:

"eu-central"

git_repo
string
required
git_branch
string
required
pr_number
integer | null
required
max_cost_micros
integer<int64> | null
required

AI spend cap for this sandbox, in micro-dollars. Counts only AI calls made on the workspace's keys through the node's AI proxy, not compute or storage. The total is kept in the node daemon's memory, so a node daemon restart starts it again from zero. Reaching it refuses further AI calls (402 zode_spend_cap) and sends spend.cap_reached; the sandbox keeps running.

parent_sandbox_id
string | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
deleted_at
string<date-time> | null
required
created_by
null | object
required

The member who created or forked it; null for sandboxes made before this was recorded.

size
string

The size's name (GET /v1/sizes); <vcpus>x<ram GB> for a shape outside the catalogue.

Example:

"medium"

browser
boolean

Chrome with CDP is on.

desktop
boolean

The Linux desktop is on.

feature_error
string

Only on a create or fork whose browser or desktop could not be switched on; the sandbox was made.

auto
null | object

The automatic sizing range, null for a fixed size. With it set, size reads auto and vcpus and ram_mb are what the sandbox holds right now.