cURL
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" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of network volume ask being accepted
size of network volume in GB being created
optional name for network volume being created
Successful response
name of network volume created
size of network volume created