Skip to main content
POST
Upsert the service query endpoint for a given instance

Authorizations

Authorization
string
header
required

Use key ID and key secret obtained in ClickHouse Cloud console: https://clickhouse.com/docs/cloud/manage/openapi

Path Parameters

organizationId
string<uuid>
required

ID of the requested organization.

serviceId
string<uuid>
required

ID of the requested service.

Body

application/json
roles
enum<string>[]

The roles

Available options:
sql_console_read_only,
sql_console_admin
openApiKeys
string[]

The version of the service query endpoint

allowedOrigins
string

The allowed origins as comma separated list of domains

Response

Successful response

status
number

HTTP status code.

Example:

200

requestId
string<uuid>

Unique id assigned to every request. UUIDv4

result
object
Last modified on July 1, 2026