---
title: "Create a database"
method: POST
path: "/v1/databases"
tags: ["Databases"]
---

# Create a database

`POST /v1/databases`

create a database that user owns

## Request body

- CreateDatabases
  - `hostname` string — The hostname of databases that you want to create
  - `options` object
    - `standaloneReplicaSet` boolean
  - `publicNetwork` boolean — The publicNetwork of databases that you want to create
  - `type` string — The type of databases that you want to create
  - `planID` string — The planID of databases that you want to create
  - `version` string — The version of databases that you want to create

## Response `200`

Successful operation

- object
  - `databaseID` string

## Other responses

- `400` — Bad request
- `401` — Missing authentication
- `409` — Conflict

---

[API](https://skmtc.net/liara-cloud/apis/dbaas.md) · [All operations](https://skmtc.net/liara-cloud/apis/dbaas/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/liara-cloud/dbaas/versions/6423b3e16f16/schema)
