v8

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-165266542.4 MB
DigitalOcean-public.v2-new_Databases

Add a New Database

To add a new database to an existing cluster, send a POST request to /v2/databases/$DATABASE_ID/dbs.

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.

post/v2/databases/{database_cluster_uuid}/dbs

Path parameters

database_cluster_uuidstring uuid required

A unique identifier for a database cluster.

Request body

namestring required

The name of the database.

Example request

{
  "name": "alpha"
}

Response

A JSON object with a key of db.

Example response

{
  "db": {
    "name": "alpha"
  }
}