Skip to main content
PATCH
/
v2
/
sandboxes
/
volumes
/
{name}
Update a Volume
curl --request PATCH \
  --url https://api.example.com/v2/sandboxes/volumes/{name} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "size": "10Gi"
}
'
{
  "name": "<string>",
  "size": "<string>",
  "storage_class": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "<string>",
  "updated_at": "<string>"
}

Path Parameters

name
string
required

Volume name

Body

application/json

Request model for updating a Volume.

You can update the display name and/or the storage size. Storage can only be increased (cannot be decreased due to K8s PVC limitations).

name
string | null

New display name for the volume (max 63 chars, DNS-1035 format). Must be unique within the organization.

size
string | null

New storage size. Must be greater than or equal to current size. Storage cannot be decreased.

Example:

"10Gi"

Response

Successful Response

Response model for a Volume.

name
string
required
size
string
required
storage_class
string
required
id
string<uuid> | null

Unique volume identifier

created_at
string | null
updated_at
string | null