---
title: "Migrate to Server"
method: POST
path: "/databases/{uuid}/migrate"
tags: ["Databases"]
---

# Migrate to Server

`POST /databases/{uuid}/migrate`

Migrate a database to another destination/server owned by the authenticated team. Stops the database, optionally transfers persistent volume data when both servers are managed by Coolify, and updates database records. Redeploy after migration completes.

## Path parameters

- `uuid` string, required

## Request body

- object
  - `destination_uuid` string, required — UUID of the target destination.
  - `migrate_volumes` boolean — Whether to transfer persistent volume data when migrating across servers.

## Response `200`

Database migration started or completed.

## Other responses

- `400` — Invalid token.
- `401` — Unauthenticated.
- `404` — Resource not found.
- `422` — Validation error.

---

[API](https://skmtc.net/coollabsio/apis/coolify.md) · [All operations](https://skmtc.net/coollabsio/apis/coolify/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coollabsio/coolify/revisions/789e6ad3796c/schema)
