Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy page hierarchy and replace content

Mihail Chatlabashev February 12, 2025 edited

Is there a way to copy page hierarchy and search and replace strings in content using REST API? I am aware of the call

 

POST 

wiki/rest/api/content/{id}/pagehierarchy/copy

 

where we can specify search and replace in the title options. 

{

"copyAttachments": true,

"copyPermissions": true,

"copyProperties": true,

"copyLabels": true,

"copyCustomContents": true,

"copyDescendants": true,

"destinationPageId": "<string>",

"titleOptions": {

                        "prefix": "<string>",

                        "replace": "<string>",

                        "search": "<string>"

                          }

}

My question is if there is a way to mimic the Advanced Options of the GUI Copy Page Tree using REST API and replace strings in the content of the pages instead of the title only?

Confluence.png

1 answer

1 accepted

0 votes
Answer accepted
Barbara Szczesniak
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2025

@Mihail Chatlabashev I was going to thank you for posting this screenshot, as I was not aware that you could replace content in pages with a copy. On further investigation, though, I see that this comes from the Copy Page Tree app by Appfire (https://marketplace.atlassian.com/apps/22929/copy-page-tree?tab=overview&hosting=cloud). You might want to review their documentation or contact their support (or maybe someone will reply to you here).

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events