Skip to main content
PATCH
/
api
/
v1
/
volumes
/
{id}
Resize Volume
curl --request PATCH \
  --url https://api.raffcomputing.com/api/v1/volumes/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --header 'X-Project-ID: <x-project-id>' \
  --data '{
  "new_size": 2
}'
{
  "success": true,
  "message": "<string>",
  "id": "<string>",
  "billing": {
    "type": "upgrade",
    "pro_rata_amount": 123,
    "credits_applied": 123,
    "balance_applied": 123,
    "new_monthly_price": 123,
    "new_price_per_hour": "<string>"
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Each key is bound to a specific account.

Headers

X-Project-ID
string<uuid>
required

Project ID. Required for all mutating operations (create, delete, power actions, resize).

Path Parameters

id
integer
required

Volume ID

Body

application/json
new_size
integer
required

New volume size in GB. Must be larger than current size.

Required range: x >= 1

Response

Volume resized

success
boolean
Example:

true

message
string
id
string

Resource ID.

billing
object

Present only for subscription-based resources.