Pages
Move Page
This api allows the user to move a page within the page tree using the parameters parent_page_id and index. If parent_page_id is not provided, the page will be placed at the top level of the page tree. index represents a zero-indexed page order relative to its siblings under the same parent. For example, if we want to put the page at top level in first position we would send parent_page_id: null and index: 0. This api also supports using a negative index to count backwards from the end of the page list, which means you can put the page in last position by using index: -1.
post/v3/portals/{portalId}/pages/{pageId}/move
Path parameters
portalIdstring uuid required
Example:f32d905a-ed33-46a3-a093-d8f536af9a8a
ID of the portal.
pageIdstring uuid required
Example:ebbac5b0-ac89-45c3-9d2e-c4542c657e79
ID of the page.
Request body
Example request
{
"parent_page_id": "dd4e1b98-3629-4dd3-acc0-759a726ffee2",
"index": 1
}Response
The document has been moved