---
title: "Create a Postgres database owned by the instance's role"
method: POST
path: "/instances/{instance_id}/postgres/databases"
tags: ["engines"]
---

# Create a Postgres database owned by the instance's role

`POST /instances/{instance_id}/postgres/databases`

## Request

- Base URL: `https://app.lathe.live/api/v1`
- URL: `https://app.lathe.live/api/v1/instances/{instance_id}/postgres/databases`
- Auth: none declared

## Path parameters

- `instance_id` string, required

## Request body

- NameIn
  - `name` string, required: Lowercase letters, digits and underscores, starting with a letter.

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/lathe/apis/lathe-customer-api.md) · [All operations](https://skmtc.dev/lathe/apis/lathe-customer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lathe/apis/lathe-customer-api/revisions/68cfd9bb71c1?raw)
