---
title: "Create Backup"
method: POST
path: "/databases/{database_id}/backups"
tags: ["databases"]
---

# Create Backup

`POST /databases/{database_id}/backups`

## 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/databases/{database_id}/backups`
- Auth: none declared

Trigger a manual backup of a database instance.

## Path parameters

- `database_id` string, uuid, required

## Request body

- BackupCreateRequest
  - `backup_type` string

## Response `201`

Successful Response

- DatabaseBackupResponse
  - `id` string, uuid, required
  - `database_instance_id` string, uuid, required
  - `backup_type` string, required
  - `status` string, required
  - `size_bytes` integer, nullable
  - `s3_path` string, nullable
  - `error_message` string, nullable
  - `started_at` string, date-time, nullable
  - `completed_at` string, date-time, nullable
  - `created_at` string, date-time, required

## 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)
