Create a new scheduled backup configuration for a database
Authorization
bearerAuth Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.
In: header
Path Parameters
UUID of the database.
Request Body
application/json
Backup configuration data
TypeScript Definitions
Use the request body type in TypeScript.
Backup frequency (cron expression or: every_minute, hourly, daily, weekly, monthly, yearly)
Whether the backup is enabled
trueWhether to save backups to S3
falseS3 storage UUID (required if save_s3 is true)
Comma separated list of databases to backup
Whether to dump all databases
falseWhether to trigger backup immediately after creation
Number of backups to retain locally
Number of days to retain backups locally
Max storage (MB) for local backups
Number of backups to retain in S3
Number of days to retain backups in S3
Max storage (MB) for S3 backups
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://app.coolify.io/api/v1/databases/string/backups" \ -H "Content-Type: application/json" \ -d '{ "frequency": "string" }'{ "uuid": "550e8400-e29b-41d4-a716-446655440000", "message": "Backup configuration created successfully."}{ "message": "Invalid token."}{ "message": "Unauthenticated."}{ "message": "Resource not found."}{ "message": "Validation error.", "errors": { "name": [ "The name field is required." ], "api_url": [ "The api url field is required.", "The api url format is invalid." ] }}