# Create Database (/postgres-clusters/Postgres_databases_create)

Create a database within a specific cluster.

`POST /v1/postgres/{postgres_cluster_id}/databases`

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `postgres_cluster_id` | path | `string` | Yes | Managed Postgres Cluster ID |

## Request Body

Type: `createPostgresDatabaseRequest`

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | `string` | Yes | Name of the database to create. |

## Responses

| Status | Description | Schema |
| --- | --- | --- |
| `201` | Created | `postgresDatabaseResponse` |
| `400` | Database name is reserved, a system database, or malformed | `PostgresErrorResponse` |
| `404` | Cluster not found | `PostgresErrorResponse` |
| `422` | name is required | `PostgresErrorResponse` |

The full machine-readable OpenAPI spec is available at /openapi.json.