Skip to main content
PATCH
Update Volume Endpoint

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

ref
string
required
Pattern: ^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?(/[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?)?$

Query Parameters

team_id
string | null

Resolve a bare name in this team's scope

Body

application/json

PATCH body: grow the size, change the visibility, or both.

Repeating the current visibility is a no-op; growing is grow-only.

size_gb
integer | null

New volume size in whole GiB. Grow-only: must exceed the volume's current size and its head checkpoint's size.

Required range: 100 <= x <= 10240
visibility
enum<string> | null

PUBLIC lets any tenant mount, sync, and read the volume by its / ref; PRIVATE stops new mounts and syncs and leaves running attachments reading their pinned head.

Available options:
PRIVATE,
PUBLIC

Response

Successful Response

One volume the caller owns, scoped to its single owner (exactly one of user/team).

namespace is the owner's display namespace: its user or team slug, else the id form (user id or team-<teamId>). The id form is also used when the slug equals an existing user id or does not parse as a volume namespace segment, so a displayed ref always parses and always names the owner that shows it. namespace/name is the ref to share. occupied_bytes is the current published version's non-hole uncompressed size (the head checkpoint's occupiedBytes). The GET response fills the account fields with the caller's volume-storage usage (bytes) and wallet limit (whole GiB); list items leave them null and the page-level VolumeListResponse carries them instead. occupied_bytes defaults to 0 legitimately: create_volume returns a bare Volume row (nothing published yet, no head to join), and list/get/update rows carry the joined head bytes.

id
string
required
name
string
required
namespace
string
required
visibility
string
required
created_at
string<date-time>
required
user_id
string | null
team_id
string | null
head_checkpoint_id
string | null
occupied_bytes
integer
default:0
size_gb
integer
default:100
account_storage_used_bytes
integer | null
account_storage_limit_gb
integer | null