Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Curl command to copy just one node property to another node

Avatar

Level 4

Hi all,

My requirement is to copy a node property from one node1 to other node2. I see there are curl commands for copying the entire node but i do not see anything where we can copy a specific property from node1 to node2

Copy Command
curl -u admin:admin -F:operation=copy -F:dest=/path/to/destination http://localhost:4505/path/to/source

Is there any modification i can do for just copying one property instead of entire node ?

 

Thanks in advance.

1 Accepted Solution

Avatar

Correct answer by
Level 10

As discussed in this Apache topic - it will move the node.                     

https://sling.apache.org/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-po...

You use Curl to move content; you cannot move just a property

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

As discussed in this Apache topic - it will move the node.                     

https://sling.apache.org/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-po...

You use Curl to move content; you cannot move just a property