POST
/pages/duplicateDuplicate a page
Duplicates a page, creating a copy with a new ID and optionally duplicating all its descendants. Supply pageId to identify the page; use spaceId to place the copy in a different space.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Page duplication request specifying the page and optional destination space.
pageIdstringrequired
ID of the page to duplicate. All child pages are recursively duplicated.
spaceIdstringoptional
ID of the destination space. If omitted, duplicates into the same space as the original.
200Returns the duplicated page. The copy and its duplicated descendants have new IDs.
dataobjectoptional
statusintegeroptional
successbooleanoptional
403Returned when the request is forbidden.
errorstringoptional
Reason phrase, for example `Bad Request`.
messagestringoptional
statusCodeintegeroptional
404Returned when the page is not found.
errorstringoptional
Reason phrase, for example `Bad Request`.
messagestringoptional
statusCodeintegeroptional
Error handling
A 403 is returned when the request is forbidden, and a 404 when the page is not found. pageId is required; spaceId defaults to the original page's space when omitted.