Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

Update service snapshot configuration

PATCH/v1/organizations/{organizationId}/services/{serviceId}/snapshotConfiguration

This endpoint is in beta. API contract is stable, and no breaking changes are expected in the future.

Updates the service snapshot configuration. Requires ADMIN auth key role. Enables or disables scheduled snapshots and sets the cadence; when enabled, gap and timeFrame (in minutes) must together be one of the supported (gap, timeFrame) pairs: (30, 1440), (60, 2880). Provide at least one of enabled, gap, timeFrame; omit a field to leave it unchanged (null is not accepted).

Authorizations

Path parameters

  • organizationIdstringrequired

    ID of the organization that owns the service.

    format: uuid
  • serviceIdstringrequired

    ID of the service.

    format: uuid

Request bodyJSON

  • enabledoptionalboolean

    Whether scheduled snapshots are enabled for the service.

  • gapoptionalnumber

    Interval between snapshots, in minutes. Set together with timeFrame; only supported preset pairs are accepted.

  • timeFrameoptionalnumber

    Retention window the snapshots cover, in minutes. Set together with gap; only supported preset pairs are accepted.

Response

JSON

200

Successful response

JSON
  • statusoptionalnumber

    HTTP status code.

    Example: 200
  • requestIdoptionalstring

    Unique id assigned to every request. UUIDv4

    format: uuid
  • resultoptionalobject
    3 properties
    • enabledoptionalboolean

      Whether scheduled snapshots are enabled for the service.

    • gapoptionalnumber

      Interval between snapshots, in minutes. Set together with timeFrame; only supported preset pairs are accepted.

    • timeFrameoptionalnumber

      Retention window the snapshots cover, in minutes. Set together with gap; only supported preset pairs are accepted.

Navigation