---
title: "Run a migration: dry run by default; `dryRun:false` needs `confirm:true`"
method: POST
path: "/api/admin/migrations/{id}"
tags: ["admin"]
---

# Run a migration: dry run by default; \`dryRun:false\` needs \`confirm:true\`

`POST /api/admin/migrations/{id}`

## Request

- Base URL: `https://api.wizbi.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wizbi.ai/api/admin/migrations/{id}`
- Auth: none declared

## Path parameters

- `id` string, required

## Request body

- object
  - `dryRun` boolean
  - `confirm` boolean
  - `restart` boolean

## Response `200`

The run state (status `paused` = call again).

- object

## Other responses

- `400`: Invalid.
- `403`: Not a super_admin.
- `404`: Not found.
- `409`: Conflict.
- `503`: Disabled.

---

[API](https://skmtc.dev/wizbi/apis/wizbi-core-api.md) · [All operations](https://skmtc.dev/wizbi/apis/wizbi-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wizbi/apis/wizbi-core-api/revisions/5a47416c82ec?raw)
