---
title: "Update service backup configuration"
method: PATCH
path: "/v1/organizations/{organizationId}/services/{serviceId}/backupConfiguration"
tags: ["Backup"]
---

# Update service backup configuration

`PATCH /v1/organizations/{organizationId}/services/{serviceId}/backupConfiguration`

## Request

- Base URL: `https://api.clickhouse.cloud`
- URL: `https://api.clickhouse.cloud/v1/organizations/{organizationId}/services/{serviceId}/backupConfiguration`
- Auth: HTTP basic

Updates service backup configuration. Requires ADMIN auth key role. Setting the properties with null value, will reset the properties to theirs default values.

## Path parameters

- `organizationId` string, uuid, required
- `serviceId` string, uuid, required

## Request body

- BackupConfigurationPatchRequest
  - `backupPeriodInHours` number, nullable: The interval in hours between each backup.
  - `backupRetentionPeriodInHours` number, nullable: The minimum duration in hours for which the backups are available. Must be a whole number of days between 24 (1 day) and 1080 (45 days) — i.e. a multiple of 24.
  - `backupStartTime` string, nullable: The time in HH:MM format for the backups to be performed (evaluated in UTC timezone). When defined the backup period resets to every 24 hours.

## Response `200`

Successful response

- object
  - `status` number: HTTP status code.
  - `requestId` string, uuid: Unique id assigned to every request. UUIDv4
  - `result` BackupConfiguration
    - `backupPeriodInHours` number: The interval in hours between each backup.
    - `backupRetentionPeriodInHours` number: The minimum duration in hours for which the backups are available. Must be a whole number of days between 24 (1 day) and 1080 (45 days) — i.e. a multiple of 24.
    - `backupStartTime` string: The time in HH:MM format for the backups to be performed (evaluated in UTC timezone). When defined the backup period resets to every 24 hours.

## Other responses

- `400`: The request cannot be processed due to a client error. Please verify your request parameters and try again.
- `500`: An internal server error has occurred. If this issue persists, please contact ClickHouse Cloud support for assistance.

---

[API](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud.md) - [All operations](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/revisions/eac345053548?raw)
