RE: Add a new/update structure through the Liferay Headless API

thumbnail
Jamie Sammons, modified 2 Years ago. New Member Posts: 6 Join Date: 6/17/08 Recent Posts

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. 

thumbnail
Russell Bohl, modified 2 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts

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.