How rename JCR node name using curl command.

Avatar

Avatar

cthantap1

Avatar

cthantap1

cthantap1

17-12-2020

How rename JCR node name using curl command. as we have almost 600 nodes should be renamed. please provide best way to rename the node name.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

shelly-goel

MVP

Avatar

shelly-goel

MVP

shelly-goel
MVP

20-12-2020

@cthantap1 

You would basically have to use the move command to rename the nodes.

Here's the CURL command to rename/ move a content node. You can create a script with all the nodes that needs to be renamed with their before and after content paths.
curl -u admin:admin --header "Referer:http://localhost:4502/" -F":diff=>/apps/test1 : /apps/test2" http://localhost:4502/crx/server/crx.default/jcr%3aroot

Below is the list of all the curl commands and you can refer to the move command in it:
https://experienceleague.adobe.com/docs/experience-manager-65/administering/operations/curl.html?lan...
curl -u <user>:<password> -F":operation=move" -F":applyTo=/sourceurl/oldname" -F":dest=/sourceurl/newname" https://localhost:4502/content

Answers (1)

Answers (1)

Avatar

Avatar

kunal23

MVP

Avatar

kunal23

MVP

kunal23
MVP

19-12-2020

You can use ACS common Page Relocator tool of ACS commons to rename pages in bulk https://adobe-consulting-services.github.io/acs-aem-commons/features/mcp/subpages/tools.html