Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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