Service

Update ClickHouse settings

Changed on

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 to discover which settings are configurable.

patch/v1/organizations/{organizationId}/services/{serviceId}/clickhouseSettings

Request

  • Base URL
    https://api.clickhouse.cloud
  • Auth
    HTTP basic

Path parameters

organizationId, string uuid required

ID of the organization that owns the service.

serviceId, string uuid required

ID of the service.

Request body

ServiceClickhouseSettingsPatchRequest required
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.

Example request

{
  "settings": {
    "compatibility": "26.2",
    "max_query_size": 262144
  },
  "resetSettings": [
    "compatibility",
    "keep_alive_timeout"
  ]
}

Response

Successful response

object required
status, number

HTTP status code.

requestId, string uuid

Unique id assigned to every request. UUIDv4

result, ServiceClickhouseSettingsPatchResponse

Example response

{
  "status": 200,
  "result": {
    "settings": {
      "compatibility": "26.2",
      "max_query_size": 262144
    },
    "warnings": [
      {
        "name": "compatibility",
        "message": "Changing the compatibility version without comprehensive testing can cause query failures or instability."
      }
    ]
  }
}

Changes

    • info

      added the new optional request property resetSettings

    • info

      the request property settings became optional