---
title: "Update"
method: PATCH
path: "/databases/{uuid}/backups/{scheduled_backup_uuid}"
tags: ["Databases"]
---

# Update

`PATCH /databases/{uuid}/backups/{scheduled_backup_uuid}`

Update a specific backup configuration for a given database, identified by its UUID and the backup ID

## Path parameters

- `uuid` string, required
- `scheduled_backup_uuid` string, required

## Request body

- object
  - `save_s3` boolean — Whether data is saved in s3 or not
  - `s3_storage_uuid` string — S3 storage UUID
  - `backup_now` boolean — Whether to take a backup now or not
  - `enabled` boolean — Whether the backup is enabled or not
  - `databases_to_backup` string — Comma separated list of databases to backup
  - `dump_all` boolean — Whether all databases are dumped or not
  - `frequency` string — Frequency of the backup
  - `database_backup_retention_amount_locally` integer — Retention amount of the backup locally
  - `database_backup_retention_days_locally` integer — Retention days of the backup locally
  - `database_backup_retention_max_storage_locally` number — Max storage of the backup locally
  - `database_backup_retention_amount_s3` integer — Retention amount of the backup in s3
  - `database_backup_retention_days_s3` integer — Retention days of the backup in s3
  - `database_backup_retention_max_storage_s3` number — Max storage of the backup in S3
  - `timeout` integer — Backup job timeout in seconds (min: 60, max: 36000)

## Response `200`

Database backup configuration updated

## 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/versions/08be5dc8e729/schema)
