Update Collection Rules
update_collection_rulesReplace an AFFiNE collection's rules and rebuild its document allow-list from current workspace docs, changing which documents appear in the collection.
Instructions
Replace an AFFiNE collection's rules and rebuild its allow-list from current workspace documents. This can change which docs appear in the collection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | Rule set used to rebuild the collection allow-list. | |
| 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 |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| error | No | ||
| rules | No | ||
| details | No | ||
| allowList | No | ||
| causeCode | No | ||
| retryable | No | ||
| workspaceId | No | ||
| collectionId | No | ||
| matchedCount | No | ||
| matchedDocIds | No | ||
| recoveryGuidance | No |