v12

latestOpenAPI 3.0.3raw.githubusercontent.com2026-06-1811583196.1 KB
Virtual Machines

Reinstall VM

Reinstall a virtual machine with a new OS template. This will destroy all data on the VM.

post/api/v1/vms/{id}/reinstall

Path parameters

idstring uuid required

VM ID (UUID)

Headers

X-Project-IDstring uuid required

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

Request body

template_idstring uuid required

ID of the OS template to reinstall with

passwordstring

New root/admin password. Either password or auto_generate_password should be provided.

ssh_keysstring[]

SSH public keys for authentication

auto_generate_passwordboolean

Auto-generate a password and email it to the account owner

Response

VM reinstall initiated

successboolean
messagestring

Example response

{
  "success": true,
  "message": "Operation completed successfully"
}