PUT
/
api
/
v0
/
network_volume
/
create network-volume
curl --request PUT \
  --url https://console.vast.ai/api/v0/network_volume/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 123,
  "size": 123,
  "name": "<string>"
}'
{
  "success": true,
  "id": 6,
  "msg": "Deleted network volume listing"
}

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 of network volume ask being accepted

size
integer
required

size of network volume in GB being created

name
string

optional name for network volume being created

Response

Successful response

success
boolean
volume_name
string

name of network volume created

volume_size
integer

size of network volume created