POST
/
networkvolumes
/
{networkVolumeId}
/
update
Update a network volume
curl --request POST \
  --url https://rest.runpod.io/v1/networkvolumes/{networkVolumeId}/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "my network volume",
  "size": 50
}'
{
  "dataCenterId": "EU-RO-1",
  "id": "agv6w2qcg7",
  "name": "my network volume",
  "size": 50
}

Authorizations

Authorization
string
header
required

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

Path Parameters

networkVolumeId
string
required

ID of network volume that needs to be updated.

Body

application/json

Update a network volume.

name
string

A user-defined name for the network volume. The name does not need to be unique.

Example:

"my network volume"

size
integer

The amount of disk space, in gigabytes (GB), which will be allocated to the network volume after the update. Must be greater than the current size of the network volume.

Required range: 0 <= x <= 4000
Example:

50

Response

Successful operation.

dataCenterId
string

The Runpod data center ID where a network volume is located.

Example:

"EU-RO-1"

id
string

A unique string identifying a network volume.

Example:

"agv6w2qcg7"

name
string

A user-defined name for a network volume. The name does not need to be unique.

Example:

"my network volume"

size
integer

The amount of disk space, in gigabytes (GB), allocated to a network volume.

Example:

50