CreateDatabaseBody
Request body for creating a Database.
Definition
TypeScript
interface CreateDatabaseBody {
workspaceId: string;
name: string;
slug?: string | undefined;
description?: string | undefined;
kind?: "d1" | undefined;
}Fields
| Field | Type | Notes |
|---|---|---|
workspaceId | string | required — Workspace that will own the new database. |
name | string | required — Human-friendly database name |
slug | string | undefined | optional — URL/code-friendly slug (auto-generated from name if omitted) |
description | string | undefined | optional — Optional description |
kind | "d1" | undefined | optional — Backend kind. Defaults to d1. |