Update Database Row
update_database_rowBatch update multiple cells in an existing AFFiNE database row by specifying column names or IDs and new values. Optionally update the row title or link to a document.
Instructions
Batch update multiple cells on an existing AFFiNE database row. Include title in the cells map to update the Kanban row title.
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 | |
| rowBlockId | Yes | Row paragraph block ID | |
| cells | Yes | Map of column name (or column ID) to new cell value. Use `title` for the built-in row title. | |
| createOption | No | For select and multi-select columns, create the option label if it does not exist (default true) | |
| linkedDocId | No | Link this row to an existing doc by ID. The row will open the linked doc in center peek when clicked. |