How can I update parsys rich text content using curl? | Community
Skip to main content
Level 3
October 16, 2015
Solved

How can I update parsys rich text content using curl?

  • October 16, 2015
  • 1 reply
  • 655 views

Hi,

   After observing the jcr content structure,I am using curl to update the parsys rich text content for  content/<mywebsite>/<myPage>/jcr:content/par/text/text.

 

   This is the curl command I am using.

   curl -u admin:admin -F"par/jcr:primaryType=nt:unstructured" -F"par/sling:resourceType=foundation/components/parsys" -F"par/text/text=not rich text" http://localhost:4502/content/mywebsite/en/Products/jcr:content

 

   This only works if I put plain text for par/text/text="not rich text", How can i embed html tags in the curl such as -F"par/text/text=<tag>some rich text</tag>"?

   [img]2014-06-08_17-04-30.png[/img]

   Thank you

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 Sham_HC

curl -u admin:admin -X POST -d "sling:resourceType=foundation/components/text&textIsRich=true&text=<p>Sometest</p>" http://localhost:4502/content/geometrixx/en/jcr:content/par/text

1 reply

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

curl -u admin:admin -X POST -d "sling:resourceType=foundation/components/text&textIsRich=true&text=<p>Sometest</p>" http://localhost:4502/content/geometrixx/en/jcr:content/par/text