xtiles_move_pages
Move and/or reorder pages in the tab bar: into a group, out to the top level, or to a new position within their current context. Get view_ids and group_id from xtiles_get_project_structure. Set group_id to a group id to move the pages into that group, or to null to move them to the top level of the tab bar (out of any group). Never target a group whose system flag is true (the planner) — the API refuses it with a 409. Pages already inside a system group cannot be moved at all — the API answers 409. position is OPTIONAL: omit it and the moved pages are appended to the end of the target (the group, or the tab bar when group_id is null) — this is almost always what "add this page to that group" or "move this page out" means, so do not invent a position for those requests. Pass position only when precise placement matters: relative_to_id must be an existing PAGE id (never a group id) and direction is BEFORE or AFTER it. The API answers with no body on success — call xtiles_get_project_structure afterwards if you need to see the resulting tab bar.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group_id | Yes | Group the pages should END UP in: a group id to put them there, or null for the top level of the tab bar (out of any group). This is the destination, never “where they are now” — when you are only reordering pages that already sit inside a group, pass THAT group’s id, because null would move them out of it and still report success. Never a group whose `system` flag is true — see xtiles_get_project_structure. | |
| position | No | Where within the target (the group, or the top-level tab bar when group_id is null) to place the moved pages. Omit to append to the end of the target — do not invent a position when the user just wants the page(s) added or moved without saying exactly where. | |
| view_ids | Yes | IDs of the pages to move (from xtiles_get_project_structure). | |
| projectId | Yes | Project ID (use xtiles_list_projects to discover). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| moved | Yes | ||
| group_id | Yes | ||
| view_ids | Yes |