Skip to main content
POST
/
compute
/
instances
/
{id}
/
resize
Resize compute instance in place
curl --request POST \
  --url https://compute.x402layer.cc/compute/instances/{id}/resize \
  --header 'Content-Type: application/json' \
  --data '
{
  "plan": "<string>",
  "confirm_disk_resize": true
}
'
Resize an active Singularity Compute instance in place on its current provider. Use this route when you want to move an instance to a larger compatible plan without provisioning a second machine.

Behavior

  • Requires compute management auth (X-Auth-* or X-API-Key)
  • Does not create a new x402 or MPP payment challenge
  • Preserves the remaining prepaid dollar credit and recalculates expires_at for the new hourly rate
  • Keeps the instance on the same provider and same region

Provider rules

  • Vultr resizes are upgrade-only
  • DigitalOcean disk growth is irreversible and requires confirm_disk_resize: true
  • Expect downtime during the resize window
  • GET /compute/plans
  • GET /compute/instances/{id}
  • POST /compute/instances/{id}/extend

Path Parameters

id
string<uuid>
required

Body

application/json
plan
string
required

Target plan id from GET /compute/plans. DigitalOcean plans use the do: prefix.

confirm_disk_resize
boolean

Required when the target resize grows disk capacity, especially for DigitalOcean where disk growth is irreversible.

Response

Resize started