This function creates a new page with the content attached. A future version may support "transloading" of content, whereby you can supply a URL behind which sits the content you'd like on the new page. You must have write access to the wiki for this function to succeed and the page must not yet exist.
page Required
Specifies what new page you'd like to create. If this page already exists, the function will fail. Since it is a GET parameter, it must be URI encoded.
email
Specifies the email address that this page creation should be attributed to. If using the Javascript API, this parameter is ignored and the user's logged-in email address is used instead.
name
Specifies the name that this page creation should be attributed to. If using the Javascript API, this parameter is ignored and the user's logged-in name is used instead.
locked optional (0 or 1)
Whether or not the new page should be locked for edits. Only honored if the current user is an admin. Pages are not locked by default.
hidden optional (0 or 1)
Whether or not the new page should be hidden from non-admins. Only honored if the current user is an admin. Pages are not hidden by default.
ip optional
The IP of the user responsible for this change. Note that the IP of the computer that made the API call is also separately logged in addition to being the default for this value.
note optional
A note you'd like to privately attach to the page, such as for use in your script during a subsequent GetPage.
POST data Required
The entire content of the POSTed data will be treated as the new page content. This data is not assumed to be escaped in any way and may contain Unicode. If the posted data is more than 100KB, the request will fail. For debugging purposes, you may provide a "data" parameter in the GET query string - this will override the POST body if given. This is not recommended for production use, however, as GET string length is quite limited.
The response will indicate the success or failure of the page creation; if successful, the URL of the new page is returned.
REQUEST
RESPONSE
{ "v1": {
"pageURL": "http://YOURWIKI.pbwiki.com/SomeNewPage"
}}
Page Information
|
Wiki Information
|
Recent PBwiki Blog Posts |