Expand my Community achievements bar.

SOLVED

How can I update parsys rich text content using curl?

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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