POST
/
workspaces
/
{workspaceSlug}
/
databases

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceSlug
string
required

Body

application/json

Parameters for creating a new database, including the name and region.

databaseName
string
required

The name of the database to be created. Database names must be less than 64 characters, and unique within a workspace. Names may contain letters (lower or uppercase), numbers, and underscores, and must begin with a letter or underscore.

region
enum<string>
required

The region where the database will be hosted. Nile currently supports the following values:

  • AWS_US_WEST_2 - AWS in US West (Oregon)
  • AWS_EU_CENTRAL_1 - AWS in Europe (Frankfurt)
Available options:
AWS_US_WEST_2,
AWS_EU_CENTRAL_1

Response

201 - application/json
apiHost
string
required
id
string
required
name
string
required
region
enum<string>
required
Available options:
AWS_US_WEST_2,
AWS_EU_CENTRAL_1
status
enum<string>
required
Available options:
PENDING,
REQUESTED,
BUILT,
READY
workspace
object
required
dbHost
string