POST
/pages/moveMove a page within its space hierarchy
Moves a page to a new position within its space hierarchy. Supply pageId and a fractional-index position; optionally set parentPageId to change the parent or to null to move the page to the root level.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Page position and optional parent for moving a page within its space hierarchy.
pageIdstringrequired
ID of the page to move.
parentPageIdstringoptional
New parent page ID. Set to `null` to move the page to root level. If omitted, the page keeps its current parent.
positionstringrequired
Fractional index string that determines sort order among siblings. Generated by the client using fractional indexing.
200Returns a successful response containing the moved page.
dataobjectoptional
statusintegeroptional
successbooleanoptional
403Returned when the authenticated user is forbidden from moving the page.
errorstringoptional
Reason phrase, for example `Bad Request`.
messagestringoptional
statusCodeintegeroptional
404Returned when the page to move does not exist.
errorstringoptional
Reason phrase, for example `Bad Request`.
messagestringoptional
statusCodeintegeroptional
Error handling
A 403 is returned when the authenticated user is not permitted to move the page. A 404 is returned when the page identified by pageId does not exist. pageId and position are required, and position must be 5 to 12 characters.