---
title: "[BETA] Create a DBaaS ClickHouse user"
method: POST
path: "/dbaas-clickhouse/{service-name}/user"
tags: ["dbaas"]
---

# \[BETA\] Create a DBaaS ClickHouse user

`POST /dbaas-clickhouse/{service-name}/user`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/dbaas-clickhouse/{service-name}/user`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/dbaas-clickhouse/:service-name/user/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `service-name` string, required

## Request body

- object
  - `username` string, required
  - `password` string
  - `roles` DbaasClickhouseUserRoleInput[]: ClickHouse roles to grant to the user
    - `uuid` string, uuid, required: Role UUID

## Response `200`

200

- DbaasUserClickhouseSecrets: ClickHouse User secrets
  - `username` string: ClickHouse username
  - `password` string: ClickHouse password

## Changes

- **2026-11-06** `63da6f74c845`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/dbaas-clickhouse/:service-name/user/post.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
