Create Page
POST
/pages
Create a new page.
Parameters
| Name | Type | Description |
|---|---|---|
| route required | string | The route where the page will be created |
| title required | string | The page title |
| template optional | string |
Page template to use
Default:
default |
| content optional | string | Markdown content for the page body |
| header optional | object | Page header/frontmatter values |
| order optional | integer | Numeric ordering prefix for the page |
| lang optional | string | Language code for multi-language sites |
JSON
{"route": "/blog/new-post", "title": "New Post", "template": "post", "content": "# New Post\nContent here"}
JSON
{"data": {"route": "/blog/new-post", "title": "New Post"}}
Response Codes
201
Page created
401
Unauthorized
422
Validation error