Databases

Create database

Creates a new database for the given project.

post/v1/projects/{projectId}/databases

Request

  • Base URL: https://api.prisma.io
  • URL: https://api.prisma.io/v1/projects/{projectId}/databases
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://auth.prisma.io/authorize, token URL https://auth.prisma.io/token, scopes: workspace:admin, offline_access)
    • HTTP bearer

Path parameters

projectIdstring required

Request body

region'us-east-1' | 'us-west-1' | 'eu-west-3' | 'eu-central-1' | 'ap-northeast-1' | 'ap-southeast-1' | 'inherit'

Use "inherit" to use the project's default region (falls back to the default database's region for projects without one).

namestring
isDefaultboolean

Response

Created a new database for the project.

Changes

No recorded changes to this operation across all 1 revision of this API.