Add Database Row
add_database_rowAdd a new row to an AFFiNE database block by specifying cell values for each column. Automatically creates select options from labels and supports linking to an existing document.
Instructions
Add a row to an AFFiNE database block. Provide cell values mapped by column name or column ID. Title column text is stored on the row paragraph block. Select columns auto-create options by label.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | No | Workspace ID (optional if default set) | |
| docId | Yes | Document ID containing the database | |
| databaseBlockId | Yes | Block ID of the affine:database block | |
| cells | Yes | Map of column name (or column ID) to cell value. For select columns, pass the display label (option auto-created if new). | |
| linkedDocId | No | Link this row to an existing doc by ID. The row will open the linked doc in center peek when clicked. |