---
title: "Get service upgrade window"
method: GET
path: "/v1/organizations/{organizationId}/services/{serviceId}/upgradeWindow"
tags: ["Service"]
---

# Get service upgrade window

`GET /v1/organizations/{organizationId}/services/{serviceId}/upgradeWindow`

## Request

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

Returns the configured upgrade window for a service.

Errors:
- 401: missing, invalid, or disabled API key.
- 403: caller lacks `control-plane:service:view` on the service.
- 404: service does not exist, is not visible to the caller, or no upgrade window has been configured.

## Path parameters

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

## Response `200`

Successful response

- object
  - `status` number: HTTP status code.
  - `requestId` string, uuid: Unique id assigned to every request. UUIDv4
  - `result` UpgradeWindow
    - `weekday` integer, required: Day of the week the upgrade window starts. 0 = Sunday, 1 = Monday, …, 6 = Saturday.
    - `startHourUtc` 0 | 6 | 12 | 18, required: UTC hour when the upgrade window starts. Must be one of 0, 6, 12, or 18.
    - `duration` 6, required: Length of the upgrade window in hours. Currently only a 6-hour window is supported.

## 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)
