Service

Update service basic details

Changed on

Updates basic service details like service name or IP access list.

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

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 to update.

Request body

ServicePatchRequest required
name, string

Name of the service. Alphanumerical string with whitespaces up to 50 characters.

ipAccessList, IpAccessListPatch
privateEndpointIds, InstancePrivateEndpointsPatch
releaseChannel, 'slow' | 'default' | 'fast'

Select fast if you want to get new ClickHouse releases as soon as they are available. You'll get new features faster, but with a higher risk of bugs. Select slow if you would like to defer releases to give yourself more time to test. This feature is only available for production services. default is the regular release channel. All services in a warehouse share one release channel, so changing it on one service changes it for all of them. Changing it through a secondary service also requires the control-plane:service:manage permission on the warehouse's primary service.

endpoints, ServiceEndpointChange[]

List of service endpoints to change

transparentDataEncryptionKeyId, string

The id of the key to rotate

tags, InstanceTagsPatch
enableCoreDumps, boolean

If true, the underlying infra is enabled for collecting core dumps.

deletionProtection, boolean

When true, the service cannot be deleted: the delete endpoint returns 409 until deletion protection is turned off. Changing it in either direction requires the control-plane:service:delete permission on the service, in addition to control-plane:service:manage; sending the current value changes nothing and needs no extra permission. ClickStack services can't be updated through the API; manage their deletion protection in the console.

Example request

{
  "endpoints": [
    {
      "protocol": "mysql"
    }
  ],
  "tags": {
    "add": [
      {
        "key": "Environment",
        "value": "staging"
      }
    ],
    "remove": [
      {
        "key": "Environment",
        "value": "staging"
      }
    ]
  }
}

Response

Successful response

object required
status, number

HTTP status code.

requestId, string uuid

Unique id assigned to every request. UUIDv4

result, Service

Example response

{
  "status": 200,
  "result": {
    "endpoints": [
      {
        "protocol": "mysql"
      }
    ],
    "minTotalMemoryGb": 48,
    "maxTotalMemoryGb": 360,
    "minReplicaMemoryGb": 16,
    "maxReplicaMemoryGb": 120,
    "numReplicas": 3,
    "minReplicas": 1,
    "maxReplicas": 5,
    "autoscalingMode": "vertical",
    "replicaMemoryGb": 32,
    "createdAt": "2026-03-26T20:51:16Z",
    "tags": [
      {
        "key": "Environment",
        "value": "staging"
      }
    ]
  }
}

Changes

    • info

      added the new optional request property deletionProtection

    • info

      added the optional property result/deletionProtection to the response with the status