Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Add a new/update structure through the Liferay Headless API
There is a headless api call to fetch the definition of the structure:
http://localhost:8080/o/headless-delivery/v1.0/content-structures/<structure id>
Unfortunately I could not find anything what could be used for updating/creating a new structure. Possibly
http://localhost:6080/o/headless-delivery/v1.0/sites/41582/content-structures/export-batch
could be used, but I do not know how to use this call. What callbackURL does? I need something like:
http://localhost:6080/api/jsonws/ddm.ddmstructure/add-structure
in the old legacy implementation. Could somebody help me with this please? Thanks in advance.
Hi Wojciech, check out this documentation and see if it answers your question: Web Content API Basics
In the API explorer, you should look at the Headless Delivery/Structured Contents endpoints.