# Create a Database

To create a new database in your PostgreSQL cluster send a `POST` request. It must specify both the name and the owner.

{% hint style="info" %}
**Note:** The sample UUID in all following request examples is `498ae72f-411f-11eb-9d07-046c59cc737e`.
{% endhint %}

## Endpoint

Use the following endpoint to create a new database in your PostgreSQL cluster:

`https://api.ionos.com/databases/postgresql/clusters/{clusterId}/databases`

{% hint style="info" %}
**Note:** The sample UUID is `498ae72f-411f-11eb-9d07-046c59cc737e`.
{% endhint %}

## Request

```bash
curl --request POST \
    --user "clientname@ionos.com:Mb2.r5oHf-0t" \
    --header "Content-Type: application/json" \
    --data-binary '{
        "properties": {
          "databasename": "newdb",
          "databaseowner":"someuser"
        }
    }' \
```

## Response

```json
{
  "id":"57a27d14-3966-5f2d-94ea-2a21086e9d76",
  "properties": {
    "databasename": "newdb",
    "databaseowner":"someuser"
  },
  "type":"database"
}
```
