Create a ClickHouse snapshot schedule

Create a snapshot schedule for a ClickHouse instance. The instance must be running or degraded. Each schedule counts toward the organization's quota of snapshot schedules.

POST https://{availability_zone}.betterstackcloud.com/v1/clickhouse/{clickhouse_id}/scheduled-snapshots
clickhouse_id string required

The ID of the ClickHouse instance.

Authorization string required

Bearer $TOKEN

Content-Type string

application/json

frequency string required

How often we create a snapshot. Possible values: hourly, daily, weekly, monthly.

201 Created
{
  "id": "example",
  "clickhouse_id": "123456789",
  "server_id": "123456789",
  "frequency": "hourly",
  "last_run_at": "2026-07-01T12:00:00.000Z",
  "created_at": "2026-07-01T12:00:00.000Z",
  "updated_at": "2026-07-01T12:00:00.000Z"
}

Returns the newly created ClickHouse scheduled snapshot.

id string

The schedule's ID, a UUID.

clickhouse_id string

The ID of the ClickHouse instance the schedule belongs to.

server_id string

The ID of the server that runs the instance.

frequency string

How often we create a snapshot. Possible values: hourly, daily, weekly, monthly.

last_run_at datetime or null

When the schedule last created a snapshot, or null until the first one. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

created_at datetime

When the schedule was created. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

updated_at datetime

When the schedule was last updated. In ISO 8601 format, such as 2026-07-01T12:00:00Z.