Service
Update service state
Changed onStarts, stops, or wakes a service. The start and stop commands require the control-plane:service:manage permission on the service. The awake command requires only control-plane:service:view and applies to an idle service; it does not start a stopped service.
patch/v1/organizations/{organizationId}/services/{serviceId}/state
Request
- Base URLhttps://api.clickhouse.cloud
- AuthHTTP 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 state.
Request body
Service State Patch Request required
command, 'start' | 'stop' | 'awake' required
Command to change the state: 'start', 'stop', 'awake'.
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 optional property
result/deletionProtectionto the response with the status
- info