Update ClickHouse settings
Changed onDisclaimer: 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.
Request
- Base URLhttps://api.clickhouse.cloud
- AuthHTTP basic
Path parameters
ID of the organization that owns the service.
ID of the service.
Request body
Nonempty object mapping configurable setting names to their values. To reset a setting, list it in resetSettings or use DELETE.
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
HTTP status code.
Unique id assigned to every request. UUIDv4
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
settingsbecame optional
- info