Skip to main content
PUT
Set service upgrade window
Creates or fully replaces the upgrade window for a service. The upgrade window currently lasts 6 hours from startHourUtc. The upgrade window can only be set on primary services; secondary services inherit the primary service window. Errors:
  • 400: invalid field values (weekday not in 0–6, startHourUtc not in {0, 6, 12, 18}), or the service is a secondary service.
  • 401: missing, invalid, or disabled API key.
  • 403: caller lacks control-plane:service:manage on the service, or the organization does not have the scheduled upgrades feature enabled.
  • 404: service does not exist or is not visible to the caller.

授权

Authorization
string
header
必填

Use key ID and key secret obtained in ClickHouse Cloud console: https://clickhouse.com/docs/cloud/manage/openapi

路径参数

organizationId
string<uuid>
必填

ID of the organization that owns the service.

serviceId
string<uuid>
必填

ID of the service.

请求体

application/json
weekday
integer
必填

Day of the week the upgrade window starts. 0 = Sunday, 1 = Monday, …, 6 = Saturday.

必填范围: 0 <= x <= 6
示例:

3

startHourUtc
enum<integer>
必填

UTC hour when the upgrade window starts. Must be one of 0, 6, 12, or 18. The upgrade window currently lasts 6 hours from this start time.

可用选项:
0,
6,
12,
18
示例:

12

响应

Successful response

status
number

HTTP status code.

示例:

200

requestId
string<uuid>

Unique id assigned to every request. UUIDv4

result
object
最后修改于 2026年7月24日