Pixelsilk API function to create a new page type based on an existing site page type or system page type--requires the advanced-admin-access permission
name: name of the new page type
baseId: the unique identifier of the base page type
image: the icon that will be used for the type

The function addNewPageType returns an object containing the id, the name, the image, and the groupName for the page type.

C# Example:
string name = "newPageTypeName";
Guid baseId = <base page type's id>;
string image = "selectedIcon.gif";
object newPageType = AddNewPageType(name, baseId, image);
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/addNewPageType HTTP/1.1
Content-Length: 202
Content-Type: application/x-www-form-urlencoded
Cookie: auth=7BD56AB559A9...9265DAE7DF2B

Request Data:
Unencoded Data:

Url-encoded Data:

Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=14EC04D08379...29515FD2B69; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 102

Response Data:

JavaScript Example:
Method Call:
pixelsilk2.addNewPageType(input, callback);

Input Object:

Returned Data:

Back to Page Types »