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?
@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).
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 NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.