---
title: "Create database"
method: POST
path: "/databases"
tags: ["Database"]
---

# Create database

`POST /databases`

Creates a database in the space.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
Permission to view the corresponding space. Permission to create a database in the space.

## Query parameters

- `private` boolean

## Request body

- object
  - `spaceId` string, required — ID of the space.
  - `title` string — Title of the database.
  - `parentId` string — The parent content ID of the database.

## Response `200`

Returned if the database was successfully created.

- object
  - `id` string — ID of the database.
  - `type` string — The content type of the object.
  - `status` 'current' | 'draft' | 'archived' | 'historical' | 'trashed' | 'deleted' | 'any' — The status of the content.
  - `title` string — Title of the database.
  - `parentId` string — ID of the parent content, or null if there is no parent content.
  - `parentType` 'page' | 'whiteboard' | 'database' | 'embed' | 'folder' — Content type of the parent, or null if there is no parent.
  - `position` integer, nullable — Position of the database within the given parent page tree.
  - `authorId` string — The account ID of the user who created this database originally.
  - `ownerId` string — The account ID of the user who owns this database.
  - `createdAt` string, date-time — Date and time when the database was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ".
  - `spaceId` string — ID of the space the database is in.
  - `version` Version
    - `createdAt` string, date-time — Date and time when the version was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ".
    - `message` string — Message associated with the current version.
    - `number` integer — The version number.
    - `minorEdit` boolean — Describes if this version is a minor version. Email notifications and activity stream updates are not created for minor versions.
    - `authorId` string — The account ID of the user who created this version.
  - `_links` object
    - `webui` string — Web UI link of the content.
    - `base` string — Base url of the Confluence site.

## Other responses

- `400` — Returned if an invalid request is provided.
- `401` — Returned if the authentication credentials are incorrect or missing from the request.
- `404` — Returned if: - The space does not exist - The user does not have permissions to view the space - The user does not have the needed permissions to create a database in the provided space
- `413` — Returned if the request is too large in size (over 5 MB).

---

[API](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api-v2.md) · [All operations](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-confluence-cloud-rest-api-v2/revisions/c4bd1ed570f2/schema)
