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
Example request
{
"name": "alpha"
}Response
A JSON object with a key of db.
Example response
{
"db": {
"name": "alpha"
}
}