---
title: "Create database schema"
method: POST
path: "/orgs/{organization}/servers/{server}/database/schemas"
tags: ["Databases"]
---

# Create database schema

`POST /orgs/{organization}/servers/{server}/database/schemas`

Add a new database schema to the server.

Processing mode: <small><code>async</code></small>

## Path parameters

- `organization` string, required
- `server` integer, required

## Request body

- CreateDatabaseRequest
  - `name` string, required — The name of the database to create.
  - `user` string, nullable — The name of the database user to create. Only needed if a new user should be created alongside the database.
  - `password` string, nullable — The password for the database user. Only used if the user is provided.

## Response `202`

`DatabaseResource`

## Other responses

- `403` — Authorization error
- `404` — Not found
- `422` — Validation error

---

[API](https://skmtc.dev/mfullbrook/apis/forge.md) · [All operations](https://skmtc.dev/mfullbrook/apis/forge/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mfullbrook/forge/revisions/24ad66d99f93/schema)
