---
title: "POST /backup.create"
method: POST
path: "/backup.create"
tags: ["backup"]
---

# POST /backup.create

`POST /backup.create`

## Request body

- object
  - `schedule` string, required
  - `enabled` boolean, nullable
  - `prefix` string, required
  - `destinationId` string, required
  - `keepLatestCount` number, nullable
  - `database` string, required
  - `mariadbId` string, nullable
  - `mysqlId` string, nullable
  - `postgresId` string, nullable
  - `mongoId` string, nullable
  - `libsqlId` string, nullable
  - `databaseType` 'postgres' | 'mariadb' | 'mysql' | 'mongo' | 'web-server' | 'libsql', required
  - `userId` string, nullable
  - `backupType` 'database' | 'compose'
  - `composeId` string, nullable
  - `serviceName` string, nullable
  - `includeEncryptionKey` boolean
  - `metadata` unknown

## Response `200`

Successful response

- object

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `500` — Internal server error

---

[API](https://skmtc.net/dokploy/apis/dokploy-api.md) · [All operations](https://skmtc.net/dokploy/apis/dokploy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dokploy/dokploy-api/versions/e43061d02faa/schema)
