---
title: "(BETA) Create a new AILake Database instance"
method: POST
path: "/api/v1/ailake/database/instances"
tags: ["AI Lake - Databases"]
---

# (BETA) Create a new AILake Database instance

`POST /api/v1/ailake/database/instances`

## Request

- Base URL: `https://www.gooddata.ai`
- URL: `https://www.gooddata.ai/api/v1/ailake/database/instances`
- Auth: none declared

(BETA) Creates a new database in the organization's AI Lake. Returns an operation-id in the operation-id header the client can use to poll for the progress.

## Headers

- `operation-id` string

## Request body

- ProvisionDatabaseInstanceRequest: Request to provision a new AILake Database instance
  - `dataSourceId` string: Identifier for the data source created in metadata-api. Defaults to the database name.
  - `dataSourceName` string: Display name for the data source created in metadata-api. Defaults to the database name.
  - `name` string, required: Name of the database instance
  - `storageIds` string[], required: Set of ids of the storage instances this database instance should access. Each entry is a `storageId` from the ObjectStorages listing or, for backward compatibility, a storage name. Must contain exactly one entry.

## Response `202`

Accepted

---

[API](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api.md) - [All operations](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/revisions/c728ef303bfb?raw)
