Display page missing from API call when creating a new StructuredContent

thumbnail
Jamie Sammons, modified 2 Years ago. New Member Posts: 3 Join Date: 11/25/20 Recent Posts

Hello all,

We are trying to create a new StructuredContent (asset) with our headless-delivery API : 

https://app.swaggerhub.com/apis/liferayinc/headless-delivery/v1.0#/StructuredContent/postSiteStructuredContent

So far, so good. The only thing that is missing from our API call is the display page the content should be displayed in.

In the JSON request body, I tried to add a "layoutUuid", or "displayTemplateKey" attribute only for me to receive this callback from the API  { "status" : "BAD_REQUEST", "title" : "The property "layoutUuid" is not defined in StructuredContent." }

Is there any way we can set the display page of an asset through the API?

Thanks


Jonathan.