Add Organize Link
add_organize_linkAdds a doc, tag, or collection link under an AFFiNE organize folder; use move_organize_node to relocate an existing link instead of creating a duplicate.
Instructions
Experimental: add a doc, tag, or collection link under an AFFiNE organize folder. Use move_organize_node for an existing link node instead of creating a duplicate link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type of target represented by the organize link. | |
| index | No | Optional fractional index. Defaults to append-after-last. | |
| folderId | Yes | AFFiNE organize folder node id. | |
| targetId | Yes | Target doc/tag/collection id | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| ok | No | ||
| code | No | ||
| data | No | ||
| type | No | ||
| error | No | ||
| index | No | ||
| details | No | ||
| parentId | No | ||
| causeCode | No | ||
| retryable | No | ||
| recoveryGuidance | No |