volumes

PATCH /v1/volumes/:id — set or clear a volume's storage cap (API key, org inferred from key).

Update a named volume's capacity limit or labels.

patch/v1/volumes/{id}

Path parameters

idstring uuid required

Volume id

Request body

capacity_gibinteger nullable

New per-volume storage cap in GiB. Omitted = unchanged; null = clear the cap (back to no per-volume limit); a value sets it. A set value must be >= 1 and <= the org's storage cap.

labelsobject nullable

Replacement label set. Omitted = unchanged; an object replaces the labels wholesale (an empty object clears them). Reserved-prefix keys are rejected.

Response

Volume updated

capacity_bytesinteger nullable

The volume's configured per-volume storage cap in bytes, or null when no cap is set (#496). Derived from the stored capacity_gib (the user's configured intent) — the effective ceiling is min(this, org cap).

created_atstring date-time required
idstring uuid required
kind'host' | 'managed' required

What kind of volume this is — its storage source / role. The host volume is the org's single shared "host disk"; managed volumes are user-created, named, platform-provisioned (JuiceFS over our object store). (A future External variant — bring-your-own S3/GCS — is intentionally out of scope for now.)

labelsobject required

User-defined labels (empty object when none set).

namestring nullable

User-facing name. null for the host volume (it has no name; it's identified by kind).

status'active' | 'deleting' required

Lifecycle status of a volume.

storage'block' required

How a volume is physically backed — distinct from [VolumeKind] (ownership). Every volume is Block today; the enum exists so future backings can be added (and reported to the SDK) without another schema change.

updated_atstring date-time required
used_bytesinteger nullable

Bytes currently used under this volume's subtree. null when usage is unavailable — the usage service is disabled or unreachable (list degrades gracefully rather than failing) — or on create/delete, which don't sample it.

Changes

No recorded changes to this endpoint across all 1 revision of this API.