Hi All,
Is there any headless api available for page creation which allows me to create that page using page template??. I am using Liferay DXP 2025 Q1.19
Thanks
Hi All,
Is there any headless api available for page creation which allows me to create that page using page template??. I am using Liferay DXP 2025 Q1.19
Thanks
Not Available.
Page Creation can be create Programmatically using LayoutLocalService. you can create custom api as required.
You could try using the /v1.0/sites/{siteId}/site-pages endpoint to create site pages. Depending on your Liferay version, you may need to enable the feature flag:
feature.flag.LPS-178052=true
Currently, this API allows you to assign a Master Page Template to a page, but not a Display Page Template. Depending on the template you want to use, this may not fully meet your requirements. You can test it out in the API Explorer.
The relevant portion of the payload looks like this:
"pageDefinition": {
"settings": {
"masterPage": {
"key": "string",
"name": "string"
}
}
}
Best of Luck,
Ally