Create Page

A filename will be created based on the title of the page. This will be in lowercase, and all spaces will be replaced with hypens and have the .md extension appended to the end. E.g. Lorem Ipsum -> lorem-ipsum.md

If a file already exists with that filename, a number will be appended to it. E.g. lorem-ipsum.md -> lorem-ipsum-1.md -> lorem-ipsum-2.md

$.post('/api/page/foo/bar', {
  meta: JSON.stringify({
    title: 'My Amazing Page',
    description: 'A short description'
  }),
  content: '# Hello World'
});
Path Params
string
required

Directory where the new page will be created

Form Data
page
object
Responses

Language
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json