Update Collection
update_collectionRename an existing AFFiNE sidebar collection while preserving its rules and allow-list, so you can update labels without altering collection membership or filters.
Instructions
Rename an existing AFFiNE sidebar collection without changing its rules or allow-list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Updated collection name | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. | |
| collectionId | Yes | AFFiNE collection id from list_collections or create_collection. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| ok | No | ||
| code | No | ||
| name | No | ||
| error | No | ||
| rules | No | ||
| details | No | ||
| allowList | No | ||
| causeCode | No | ||
| retryable | No | ||
| recoveryGuidance | No |