Skip to main content
POST
Clone database.

Authorizations

Authorization
string
header
required

Bearer JWT token or API Key (sk-*).

Path Parameters

databaseId
string
required

Provide databaseId.

Body

application/json
metadata
object | null

Replacement user metadata for the root clone only. Omit to inherit source metadata; pass {} to clear user metadata. Maximum 16 KiB and 64 top-level keys. Keys starting with "__" are reserved for backend use.

audit
boolean | null

Optional audit override. Defaults to the source logical table setting.

name
string | null

Optional target root database name. Defaults to the source database name with "_Clone" suffix.

Required string length: 1 - 60
suffix
string | null

Suffix used for automatically generated clone names. Defaults to "Clone".

Required string length: 1 - 30
includeItems
boolean | null

Whether to copy existing rows/items into the clone. Defaults to false.

includeData
boolean | null

Alias for includeItems. Defaults to false.

includePartitions
boolean | null

Whether to clone connected table partitions. Defaults to true.

category
string | null

Optional cloned database category override.

Maximum string length: 30
desc
string | null

Optional cloned database description override.

Maximum string length: 1000
tags
string[] | null

Optional cloned database tags override.

restricted
boolean | null

Optional cloned database restricted flag override.

groups
string[] | null

Optional cloned database group access override.

users
string[] | null

Optional cloned database user access override.

Response

accepted
boolean
required
databaseId
string<uuid>
required
sourceDatabaseId
string<uuid>
required
cloneId
string<uuid>
required
name
string
required
includeItems
boolean
required
includePartitions
boolean
required
audit
boolean
required

Resolved audit setting applied to the cloned logical table.

message
string
required