Skip to main content
POST
Upsert the service query endpoint for a given instance
Create the service query endpoint that allows executing queries via API.

Autorizações

Authorization
string
header
obrigatório

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

Parâmetros de caminho

organizationId
string<uuid>
obrigatório

ID of the requested organization.

serviceId
string<uuid>
obrigatório

ID of the requested service.

Corpo

application/json
roles
enum<string>[]

The roles

Opções disponíveis:
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

Resposta

Successful response

status
number

HTTP status code.

Exemplo:

200

requestId
string<uuid>

Unique id assigned to every request. UUIDv4

result
object
Última modificação em 24 de julho de 2026