---
title: pydo.databases.add()
description: Add a New Database
product: Reference
url: https://docs.digitalocean.com/reference/pydo/reference/databases/add/
last_updated: "2026-11-06"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# pydo.databases.add()

Generated on 6 Nov 2026 from `pydo` version [`v0.45.0`](https://github.com/digitalocean/pydo/releases/tag/v0.45.0)

## Usage

```python
client.databases.add(
    database_cluster_uuid="9cc10173-e9ea-4176-9dbc-a4cee4c4ff30",
    body={
        "name": "alpha",
    },
)
```

Returns `JSON` Raises `HttpResponseError`

## Description

To add a new database to an existing cluster, send a POST request to [`/v2/databases/{database_cluster_uuid}/dbs`](https://docs.digitalocean.com/reference/api/reference/databases/index.html.md).

Note: Database management is not supported for Caching or Valkey clusters.

The response will be a JSON object with a key called `db`. The value of this will be an object that contains the standard attributes associated with a database.

## Parameters

`database_cluster_uuid` string required

A unique identifier for a database cluster.

`name` string required

Example: `alpha`

The name of the database.

## Request Sample

## Show Request Sample

```python
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

add_resp = client.databases.add(database_cluster_uuid="9cc10173", body={"name": "alpha"})
```

## Response Example

## Show Response Example

```json
{
  "db": {
    "name": "alpha"
  }
}
```

## More Information

See [`/v2/databases/{database_cluster_uuid}/dbs`](https://docs.digitalocean.com/reference/api/reference/databases/index.html.md#databases_add) in the API reference for additional detail on responses, headers, parameters, and more.