PUT
/
api
/
v0
/
volumes
/
rent volume
curl --request PUT \
  --url https://console.vast.ai/api/v0/volumes/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 420,
  "size": 15
}'
{
  "success": true,
  "volume_name": "V.20118481"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
id
integer
required

ID for the volume

Example:

420

size
integer

Size in GB (Defaults to 15)

Example:

15

Response

200 - application/json

Success response

success
boolean
Example:

true

volume_name
string

Name of the created/resized volume

Example:

"V.20118481"