Update Collection Rules
update_collection_rulesUpdate a collection's rules to rebuild its allow-list and control which documents appear.
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 |
|---|---|---|---|
| rules | Yes | ||
| allowList | Yes | ||
| workspaceId | Yes | ||
| collectionId | Yes | ||
| matchedCount | Yes | ||
| matchedDocIds | Yes |