LogoFreestyle
API ReferenceVm

Snapshot_vm

Create a snapshot of a VM. The snapshot is stored in a special snapshots folder and cannot be booted directly, but can be used to create new VMs.

POST
/v1/vms/{vm_id}/snapshot

Path Parameters

vm_id*string

Request Body

application/json

name?string|null

Optional name/label for the snapshot

Response Body

application/json

application/json

application/json

curl -X POST "https://api.freestyle.sh/v1/vms/string/snapshot" \  -H "Content-Type: application/json" \  -d '{}'
{
  "snapshotId": "string",
  "sourceVmId": "string"
}
{
  "error": "string",
  "message": "string"
}
{
  "error": "string",
  "message": "string"
}

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.