Copy page hierarchy allows the copying of an entire hierarchy of pages and their associated properties, permissions and attachments. The id path parameter refers to the content id of the page to copy, and the new parent of this copied page is defined using the destinationPageId in the request body. The titleOptions object defines the rules of renaming page titles during the copy; for example, search and replace can be used in conjunction to rewrite the copied page titles. Response example:

{
  "id" : "1180606",
  "links" : {
       "status" : "/rest/api/longtask/1180606"
  }
}

Use the /longtask/taskId REST API to get the copy task status.

External Documentation

To learn more, visit the Confluence documentation.

Parameters

ParameterDescription
Copy AttachmentsIf set to true, attachments are copied to the destination page.
Copy Custom ContentsIf set to true, custom contents are copied to the destination page.
Copy LabelsIf set to true, labels are copied to the destination page.
Copy PermissionsIf set to true, page permissions are copied to the destination page.
Copy PropertiesIf set to true, content properties are copied to the destination page.
Destination Page IDThe unique identifier of the new parent of the copied page.
IDThe unique identifier of the content of the page to copy.
Title Options PrefixA text that will be added to the beginning of all copied page titles.
Title Options ReplaceThe replacement string that will be substituted for any matches of the search pattern in the copied page titles.
Title Options SearchThe string pattern to search for in the original page titles that will be replaced during copying.

Workflow Library Example

Copy Page Hierarchy with Confluence and Send Results Via Email

Preview this Workflow on desktop