Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| collectionName | string | ✓ | Collection name must be unique within a project and the supported maximum length is 52 |
| indexConfigs | object | Field configuration for indexing. Required when creating from scratch | |
| sourceProjectName | string | Source project name for PITR or cloning operations | |
| sourceCollectionName | string | Source collection name for PITR or cloning operations | |
| sourceDatetime | string | ISO 8601 formatted datetime for PITR (e.g., “2024-01-15T10:30:00Z”) | |
| sourceProjectApiKey | string | API key for the source project |
Create a collection from scratch
The simplest way to create a collection is to provide the collection name and the field index configurations.Clone a collection with point-in-time recovery (PITR)
LambdaDB automatically maintains continuous backups at the collection level with a default retention period of 30 days. You can create a collection from a specific point in time using PITR functionality.PITR allows you to restore collections to any point within the configured retention period.
The
sourceDatetime parameter must be in ISO 8601 format (UTC timezone). If sourceDatetime is not specified, the collection will be restored from the most recent data available.Clone a collection with additional index configs
You can clone a collection based on an existing collection and extend it with additional indexConfigs. The original collection’s configuration will be preserved, and you can only add new fields.When cloning a collection, specifying
indexConfigs is optional. You can pass additional indexConfigs to extend the original collection’s configuration, but deleting or modifying the original collection’s indexConfigs is not allowed.