move_collective_page
Move or copy a collective page and all its subpages under another parent within the same or a different collective. Use to reorganize content across collectives.
Instructions
Move or copy a page, with its subpages, under another page, in this or another collective.
The page lands first among its new siblings. Needs edit rights in both collectives; a page cannot go under itself or its own subpages.
Args: collective_id: The collective the page is in now. page_id: The page to move or copy. parent_id: The page to put it under, in the target collective; 0 or the landing page ID for the top level. to_collective_id: Another collective to move or copy it to (default 0 = stay in this one). copy: True to copy and leave the original where it is. Every call makes another copy.
Returns: JSON with the page afterwards (the copy, when copying).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copy | No | ||
| page_id | Yes | ||
| parent_id | Yes | ||
| collective_id | Yes | ||
| to_collective_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |