Hi,
I use the rest api call to duplicate page hierarchy (parent & child pages) from a origin space to destination space.
curl --request POST \
--url 'https://your-domain.atlassian.net/wiki/rest/api/content/{id}/pagehierarchy/copy' \ --user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \ --header 'Content-Type: application/json' \
--data '{
"copyAttachments": true,
"copyPermissions": true,
"copyProperties": true,
"copyLabels": true,
"copyCustomContents": true,
"copyDescendants": true,
"destinationPageId": "<string>",
"titleOptions": {
"prefix": "<string>",
"replace": "<string>",
"search": "<string>"
}
}'
I use example from Confluence rest api catalog and in the part titleOptions it has 3 properties:
prefix --> I understand that I that to prefix title to allow to copy parent and child pages
Could you explain me what is the purpose of "Search" and "replace" properties?
Thank you
Cedric