cURL command to update multivalue property. | Community
Skip to main content
chamu0003
Level 2
September 13, 2016
Solved

cURL command to update multivalue property.

  • September 13, 2016
  • 4 replies
  • 2851 views

Hi 

I'm new to cURL commands use, can anyone help me please.

  • Is it possible copy one node property to another node.
  • how to add new value in existing multivalue property node.
  • is it possible to update multiple nodes at a time.

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by chamu0003

Thanks all,

 

working curl command.

curl -u admin:admin  -Ftest@Patch=true -Ftest=+test3 http://localhost:4502/content/geometrixx/en/jcr:content

4 replies

smacdonald2008
Level 10
September 13, 2016

Here is a good community article on CURL: 

http://www.aemcq5tutorials.com/tutorials/adobe-cq5-aem-curl-commands/

Sounds like you want to do a lot of Node manipulate. YOu should look at writing JCR API code and deploy to AEM as a Sling servlet. Then you can interact with it via GET requests. 

kautuk_sahni
Community Manager
Community Manager
September 14, 2016

Hi Please have a look at these community articles:-

Link:- https://gist.github.com/sergeimuller/2916697

Link:- https://hashimkhan.in/2015/05/27/aem-with-curl/

This will help you.

~kautuk

Kautuk Sahni
chamu0003
chamu0003Author
Level 2
September 14, 2016

I need to add new value in multivalue property without overriding existing values.

is it possible ?

chamu0003
chamu0003AuthorAccepted solution
Level 2
September 14, 2016

Thanks all,

 

working curl command.

curl -u admin:admin  -Ftest@Patch=true -Ftest=+test3 http://localhost:4502/content/geometrixx/en/jcr:content