Service

Create or replace service autoscaling schedule

Creates or fully replaces the autoscaling schedule for a service. Pass an empty entries array to clear the schedule — a subsequent GET will return 404, and the response will contain an empty baseConfig (all fields absent). The base scaling config (applied when no entry is active) is managed separately via the replicaScaling endpoint. Requires the scheduled autoscaling feature to be enabled for the organization.

post/v1/organizations/{organizationId}/services/{serviceId}/scalingSchedule

Request

  • Base URL: https://api.clickhouse.cloud
  • URL: https://api.clickhouse.cloud/v1/organizations/{organizationId}/services/{serviceId}/scalingSchedule
  • Auth: HTTP basic

Path parameters

organizationIdstring uuid required

ID of the organization that owns the service.

serviceIdstring uuid required

ID of the service.

Request body

Example request

{
  "entries": [
    {
      "name": "Business hours",
      "weekdays": [
        1,
        2,
        3,
        4,
        5
      ],
      "startHourUtc": 9,
      "endHourUtc": 17,
      "autoscalingMode": "vertical",
      "minReplicaMemoryGb": 16,
      "maxReplicaMemoryGb": 16,
      "numReplicas": 3,
      "minReplicas": 2,
      "maxReplicas": 3
    }
  ]
}

Response

Successful response

statusnumber

HTTP status code.

requestIdstring uuid

Unique id assigned to every request. UUIDv4

Example response

{
  "status": 200
}

Changes

No recorded changes to this operation across all 1 revision of this API.