Update Multi-Value Node JCR properties in AEM with CURL

This is a simple way to update or write multi-value Node JCR properties inside of AEM using curl.

curl command:

1
2
3
4
5
curl -v "http://localhost:4502/crx/server/crx.default/jcr%3aroot" \
  -u admin:admin \
  -H 'Content-Type: multipart/form-data; boundary=crxde' \
  --data-raw $'--crxde\r\nContent-Disposition: form-data; name=":diff"\r\nContent-Type: text/plain; charset=utf-8\r\n\r\n^/content/sourcedcodeaem/jcr:content/stringArray : ["one","two","three"]\r\n--crxde-- ' \
  --compressed

Result:
result of the curl command

If you wish to learn how to Update a Node JCR property in AEM with CURL, click here.

Was this post helpful?

Hello, I am an Adobe AEM MVP & a certified Lead AEM Developer who is currently working as a Senior AEM Full Stack Developer at Whitbread, UK, London. I have 10 years of overall web engineering experience and 6 years of AEM experience in practice. I hope to give back to the AEM Full Stack Development community by sharing my knowledge with the world.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top