Update Database Row
update_database_rowBatch updates multiple cells in an existing AFFiNE database row; include the title cell to change the Kanban row title.
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 |
|---|---|---|---|
| cells | Yes | Map of column name (or column ID) to new cell value. Rich-text and title values accept strings or delta arrays. For LinkedPage references, use insert: " " with reference.type="LinkedPage" and the target pageId; visible labels are resolved by AFFiNE. Use `title` for the built-in row title. | |
| docId | Yes | Document ID containing the database | |
| rowBlockId | Yes | Row paragraph block ID | |
| linkedDocId | No | Link this row to an existing doc by ID. The row will open the linked doc in center peek when clicked. | |
| workspaceId | No | Workspace ID (optional if default set) | |
| createOption | No | For select and multi-select columns, create the option label if it does not exist (default true) | |
| databaseBlockId | Yes | Block ID of the affine:database block | |
| expectedRevision | No | Optional read_doc revision of this primary document. Reject stale content before writing. Covers document content, not workspace metadata; requires all writers to share one MCP server. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| error | No | ||
| details | No | ||
| updated | No | ||
| causeCode | No | ||
| cellCount | No | ||
| retryable | No | ||
| rowBlockId | No | ||
| recoveryGuidance | No |