Add Doc To Collection
add_doc_to_collectionAdds an existing document ID to an AFFiNE collection allow-list so specific docs become members; use rule-based updates instead when membership should follow rules.
Instructions
Add an existing document id to an AFFiNE collection allow-list. Use update_collection_rules instead when membership should be rule-driven.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | AFFiNE document id. | |
| 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 |