LogoFreestyle
API ReferenceVm

Create_snapshot

Create a snapshot by creating a temporary VM, starting it, snapshotting it, then deleting the VM.

POST
/v1/vms/snapshots

Request Body

application/json

name?string|null
template*

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.freestyle.sh/v1/vms/snapshots" \  -H "Content-Type: application/json" \  -d '{    "template": {}  }'
{
  "snapshotId": "string"
}
{
  "error": "string",
  "message": "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.