Skip to content

Kirby 4.1.2

POST /api/pages/:id/children

Create a new subpage

Creating translated pages

A request to this endpoint will always create a page with the default language. The x-language header setting will have no effect on this endpoint. To create a new page with translations, create the default language version first and then make another PATCH request on the newly created page including the proper x-language header to update its translated content.

Post parameters

Parameter Type Required Description
slug string required Needs to be unique slug/folder name for the new subpage
template string The name of the page template. If not passed, the default template will be used
content array Additional content fields. Must be defined as key/value array. Pass title as key, otherwise the slug will be used as page title.