---
title: "Validate a guest migration"
method: GET
path: "/tasks/migration/validate"
tags: ["Tasks"]
---

# Validate a guest migration

`GET /tasks/migration/validate`

Run a side-effect-free migration preflight for one VM or jail and target node UUID

## Query parameters

- `guestType` 'vm' | 'jail', required
- `guestId` integer, required
- `targetNodeUuid` string, required

## Response `200`

Validation complete

- GithubComAlchemillahqSylveInternalAPIResponseGithubComAlchemillahqSylveInternalInterfacesServicesMigrationValidateResult
  - `data` GithubComAlchemillahqSylveInternalInterfacesServicesMigrationValidateResult
    - `allowed` boolean
    - `reasons` string[]
    - `warnings` string[]
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.net/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alchemillahq/sylve-api/revisions/7a7bea85004e/schema)
