Redirecting…

Create a Page

Creates a page on the API key owners account.

Parameters

Name Type Description
api_key string your API key (required)
page[name] string name of the page (required)
page[body] string content of the page
page[parent_id] string places this page as a sub–page of the page with this ID (leave this parameter blank to make a root level page)
page[is_hidden] boolean flag this page to be hidden from navigation or not
page[description] text an excerpt of the page to appear as meta–data
page[body_format] string (either markdown_format or wysiwyg_format, if not set, defaults to the editor set on Account Settings) format used to edit this page

JSON Example

POST https://api.yikesite.com/api/pages.json?api_key=<api_key>
  &page[name]=Foo
  &page[body]=<h1>Foo</h1><p>Coming soon...</p>
  &page[parent_id]=000_01
  &page[is_hidden]=false
  &page[description]=foobar
  &page[body_format]=wysiwyg_format

On success:

{
  "response":true,
  "errors":[]
}

On failure:

{
  "response":false,
  "errors":[["name", "has already been taken"]]
}

Invalid format:

{
  "response":false,
  "errors":"Invalid format"
}