---
title: "Create a VM snapshot"
method: POST
path: "/vm/{rid}/snapshots"
tags: ["VM"]
---

# Create a VM snapshot

`POST /vm/{rid}/snapshots`

Create crash-consistent recursive ZFS snapshots for a virtual machine; roots on different pools are captured sequentially and the guest is not quiesced

## Path parameters

- `rid` integer, required

## Request body

- InternalHandlersVmCreateVMSnapshotRequest
  - `description` string
  - `name` string, required

## Response `201`

Created

- GithubComAlchemillahqSylveInternalAPIResponseGithubComAlchemillahqSylveInternalDbModelsVmVMSnapshot
  - `data` GithubComAlchemillahqSylveInternalDbModelsVmVMSnapshot
    - `createdAt` string
    - `description` string
    - `id` integer
    - `name` string
    - `parentSnapshotId` integer
    - `rid` integer
    - `rootDatasets` string[]
    - `snapshotName` string
    - `updatedAt` string
    - `vmId` integer
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `500` — Internal Server Error
- `503` — Service Unavailable

## Changes

- **2026-08-12** `9a5026bf9057` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/alchemillahq/apis/sylve-api/changes/vm/:rid/snapshots/post.md)

---

[API](https://skmtc.dev/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.dev/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc.dev/alchemillahq/apis/sylve-api/revisions/f1c5f8388fd6?raw)
