Six Apart Developer Center

Developer Center Home » XML-RPC » Pages API »

wp.newPage

Posted by Mark Paschal on May 29, 2007

Creates a new page, and optionally publishes it. If the post is successful, this method will return the ID assigned to the page by the publishing system. Otherwise, it will return a fault.

Parameters

  • String blogid
  • String username
  • String password
  • struct content
  • boolean publish

Notes

The struct content can contain the following standard keys:

  • title, for the title of the page;
  • description, for the body of the page;
  • dateCreated, to set the created-on date of the page;
  • permaLink, the desired URL for the page;

In addition, TypePad’s implementation allows you to pass in values for one other key:

  • String mt_convert_breaks, the value for the convert_breaks field;

If specified, dateCreated should be in ISO.8601 format.

Sample Request

Sample Response

Perl Code Sample

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Related Categories

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.