---
title: "Update ClickHouse settings"
method: PATCH
path: "/v1/organizations/{organizationId}/services/{serviceId}/clickhouseSettings"
tags: ["Service"]
---

# Update ClickHouse settings

`PATCH /v1/organizations/{organizationId}/services/{serviceId}/clickhouseSettings`

## Request

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

**Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Sets and resets ClickHouse settings for the service. `settings` sets values; `resetSettings` reverts the named settings to their platform default. A request must include at least one of them, and a setting cannot appear in both. All changes in one request are applied to the service in a single write, so settings that trigger a ClickHouse server rollout restart cause at most one restart for that write. A name in `resetSettings` that is not configurable returns 400 Bad Request. The response echoes `settings` (omitted when the request only resets) and returns one warning per set setting and per reset setting that was configured. Use the [schema endpoint](#tag/Service/operation/serviceClickhouseSettingsSchemaGet) to discover which settings are configurable.

## Path parameters

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

## Request body

- ServiceClickhouseSettingsPatchRequest
  - `settings` ServiceClickhouseSettingsMap: Nonempty object mapping configurable setting names to their values. To reset a setting, list it in `resetSettings` or use DELETE.
  - `resetSettings` string[]: Nonempty list of setting names to reset to their platform default. A setting that is not configured returns no warning; the reset is still applied so it can finish an earlier failed update.

## Response `200`

Successful response

- object
  - `status` number: HTTP status code.
  - `requestId` string, uuid: Unique id assigned to every request. UUIDv4
  - `result` ServiceClickhouseSettingsPatchResponse
    - `settings` ServiceClickhouseSettingsMap: Nonempty object mapping configurable setting names to their values. To reset a setting, list it in `resetSettings` or use DELETE.
    - `warnings` ServiceClickhouseSettingWarning[]: Warnings about how each set setting, and each reset setting that was configured, takes effect.
      - `name` string: Name of the setting the warning applies to.
      - `message` string: Warning message.

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

## Changes

- **2026-12-02** `dd7b68280285`: 2 info
  - added the new optional request property `resetSettings`
  - the request property `settings` became optional

[Operation history](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/changes/v1/organizations/:organizationId/services/:serviceId/clickhouseSettings/patch.md)

---

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