yuque_web_copy_catalog_node
Copy a catalog node (doc or dir) to a target repo or node, re-uploading attachments server-side while preserving the original and file cards.
Instructions
Cookie-based: Copy a catalog node (doc or dir) to a target catalog node / target repo, server-side with attachment re-upload. PUT /api/catalog_nodes/copy. The source node is kept; a copy is created in the target repo and attachments re-uploaded there (preserves file cards). node_uuid must be from the web catalog (/api/catalog_nodes), not the v2 TOC. 详见 references/api/web_doc_api.md
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Copy action. Default 'prependChild'. Common values: prependChild (as first child), appendChild (as last child). | |
| book_id | Yes | Source repository ID (numeric, required). The repo the node currently lives in. | |
| node_uuid | Yes | Source catalog node UUID to copy (required). Must exist in the web catalog (/api/catalog_nodes). | |
| target_uuid | No | Target catalog node UUID to copy into. Leave empty / null to copy to the root of the target repo. | |
| with_children | No | Copy the whole subtree (all descendant nodes) together. Default false. | |
| target_book_id | Yes | Target repository ID (numeric, required). The repo to copy into. | |
| insert_to_catalog | No | Whether to insert into the catalog/TOC. Default true. |