---
title: "Clone Database"
method: POST
path: "/internal/databases/{database_id}/clone"
tags: ["internal"]
---

# Clone Database

`POST /internal/databases/{database_id}/clone`

## Request

- Base URL: `https://api.mengi.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mengi.cloud/internal/databases/{database_id}/clone`
- Auth: none declared. Required headers: `x-service-token`

Copy a database onto another cluster, restored from its backups (worker only).

A deployment migration calls this for every managed database the moved
deployment uses. The copy is provisioned right away; the caller polls
its status through the provisioning list.

## Path parameters

- `database_id` string, uuid, required

## Headers

- `x-service-token` string, required

## Request body

- DatabaseCloneRequest
  - `target_cluster_id` string, uuid, required
  - `name` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengi/apis/mengi-cloud.md) · [All operations](https://skmtc.dev/mengi/apis/mengi-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/mengi/apis/mengi-cloud/revisions/4ae9b375cdbb?raw)
