Service

Upsert the service query endpoint for a given instance

Create the service query endpoint that allows executing queries via API.

post/v1/organizations/{organizationId}/services/{serviceId}/serviceQueryEndpoint

Request

  • Base URL
    https://api.clickhouse.cloud
  • Auth
    HTTP basic

Path parameters

organizationId, string uuid required

ID of the requested organization.

serviceId, string uuid required

ID of the requested service.

Request body

InstanceServiceQueryApiEndpointsPostRequest required
roles, string[] required

The roles

openApiKeys, string[] required

The version of the service query endpoint

allowedOrigins, string

The allowed origins as comma separated list of domains

Response

Successful response

object required
status, number

HTTP status code.

requestId, string uuid

Unique id assigned to every request. UUIDv4

result, ServiceQueryAPIEndpoint

Example response

{
  "status": 200
}

Changes

No recorded changes to this operation across all 35 revisions of this API.