databases

Create database instance

Changed on

Create a new database instance owned by the organization. Supported engines: postgresql (bring-your-own server), denokv (Deno-managed key-value), and prisma (Prisma-managed Postgres).

post/v2/database_instances

Request

  • Base URL
    https://api.deno.com
  • Auth
    HTTP bearer

Request body

slugstring required

Slug for the new database instance

Response

OK

idstring uuid required

Unique database instance identifier

slugstring required

Human-readable instance slug

engine'postgresql' | 'denokv' | 'prisma' required

Database engine type

created_atstring required

ISO 8601 timestamp of creation

Example response

{
  "databases": [
    {
      "timelines": [
        {
          "partition": {
            "git.branch": "main"
          }
        }
      ]
    }
  ]
}

Changes

    • breaking

      the // response's property type changed from no type to string for status

    • breaking

      the response's property type changed from no type to string for status