How rename JCR node name using curl command.
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.
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.
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?lang=en#common-content-manipulation-aem-curl-commands
curl -u <user>:<password> -F":operation=move" -F":applyTo=/sourceurl/oldname" -F":dest=/sourceurl/newname" https://localhost:4502/content
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.