Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

Upsert the service query endpoint for a given instance

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

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

Authorizations

Path parameters

  • organizationIdstringrequired

    ID of the requested organization.

    format: uuid
  • serviceIdstringrequired

    ID of the requested service.

    format: uuid

Request bodyJSON

  • rolesoptionalarray ofsql_console_read_onlyorsql_console_admin

    The roles

  • openApiKeysoptionalarray ofstring

    The version of the service query endpoint

  • allowedOriginsoptionalstring

    The allowed origins as comma separated list of domains

Response

JSON

200

Successful response

JSON
  • statusoptionalnumber

    HTTP status code.

    Example: 200
  • requestIdoptionalstring

    Unique id assigned to every request. UUIDv4

    format: uuid
  • resultoptionalobject
    4 properties
    • idoptionalstring

      The id of the service query endpoint

    • openApiKeysoptionalarray ofstring

      List of OpenAPI keys that can access the service query endpoint

    • rolesoptionalarray ofsql_console_read_onlyorsql_console_admin

      List of roles that can access the service query endpoint

    • allowedOriginsoptionalstring

      The allowed origins as comma separated list of domains

Navigation