Skip to main content
POST
/
api
/
v1
/
vms
/
{id}
/
resize
Resize VM
curl --request POST \
  --url https://api.raffcomputing.com/api/v1/vms/{id}/resize \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --header 'X-Project-ID: <x-project-id>' \
  --data '
{
  "cpu": 32,
  "ram": 256
}
'
{
  "success": true,
  "message": "Operation completed successfully"
}

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
string<uuid>
required

VM ID (UUID)

Body

application/json
cpu
integer

New number of vCPU cores

Required range: 1 <= x <= 64
ram
integer

New RAM allocation in GB

Required range: 1 <= x <= 512

Response

VM resized

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"