Skip to main content
POST
Create database schema

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Scopes

server:create-databases

Allow members to create databases and database users

Path Parameters

organization
string
required

The organization slug

server
integer
required

The server ID

Body

application/json
name
string
required

The name of the database to create.

Maximum string length: 63
Example:

"forge"

user
string | null

The name of the database user to create. Only needed if a new user should be created alongside the database.

Example:

"james"

password
string | null

The password for the database user. Only used if the user is provided.

Maximum string length: 255
Example:

"password"

backup_configuration_ids
integer[]

The backup configurations the database should be added to.

Example:

Response

DatabaseResource

data
DatabaseResource · object
required