SiteTreeServicesCreateNewPage Method

Ingeniux CMS Web Services API

Creates a new Page or Components, from either Page Creation Rule or Schema specified.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.70

public XHRServiceResponseGeneric<PageActionOutput> CreateNewPage(
	string parentId,
	string pageName,
	string ruleId,
	string schemaId,
	string ss,
	string userID,
	string pubTargetId,
	bool useSchemaName = false,
	bool insertAtEnd = false


Type: SystemString
Id of the parent Page to create the new Page under
Type: SystemString
Name of the new Page
Type: SystemString
Id of the Page Creation Rule to use for Page Creation. Page Creation Rule is higher priority over Schema on this operation
Type: SystemString
Id of the Schema to use for Page creation
Type: SystemString
Name of the XSLT stylesheet file to assign to created Page. Only applies in Page Creation Rule scenario
Type: SystemString
Id of the User to assign the Page to after creation. If left null or empty, Page will be assigned to current User
Type: SystemString
Id of the current Publishing Target
useSchemaName (Optional)
Type: SystemBoolean

[Missing <param name="useSchemaName"/> documentation for "M:IngeniuxCMService.SiteTreeServices.CreateNewPage(System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.Boolean,System.Boolean)"]

insertAtEnd (Optional)
Type: SystemBoolean

[Missing <param name="insertAtEnd"/> documentation for "M:IngeniuxCMService.SiteTreeServices.CreateNewPage(System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.Boolean,System.Boolean)"]

Return Value

Type: XHRServiceResponseGenericPageActionOutput

Object containing information of the action and property of the created Page


Sample JSON return
    "code": 0,
    "error": null,
    "message": {
        "pageAction": "newpage",
        "pageProperties": {
            "name": "Detail",
            "allowedCategoryRoots": [],
            "ancestors": ["x1", "x2", "x112", "x116"],
            "assignedGroup": null,
            "assignedUser": {
                "name": "Turtle Master",
                "email": "",
                "userId": "INGENIUX\\awang"
            "canClaimPage": false,
            "canTranslate": false,
            "checkedOut": true,
            "error": null,
            "icon": 2,
            "isAssignedToOtherUser": false,
            "isEditable": true,
            "isInWorkflow": false,
            "justRecycled": false,
            "languageRootId": "x112",
            "lingualMaps": {
                "clones": [],
                "master": null
            "locale": "en-us",
            "localeInherited": true,
            "markedForPublish": false,
            "markedForPublishAny": false,
            "markedForPublishPropagated": false,
            "nextPageId": null,
            "nextPageIndex": 0,
            "noDnd": false,
            "numChildPages": 0,
            "pageId": "x124",
            "parentId": null,
            "pendingMasterVersion": 0,
            "referenceProps": {
                "created": "20140130T19:04:22",
                "createdBy": "INGENIUX\\awang",
                "endDate": "00010101T00:00:00",
                "lastModified": "20140130T19:04:22",
                "lastModifiedBy": "User\/INGENIUX___awang",
                "publishAs": "",
                "startDate": "00010101T00:00:00"
            "remoteServer": "",
            "schemaFriendlyName": null,
            "schemaName": "Details",
            "schemaOnLatestVersion": false,
            "securityLevel": 2,
            "userCanCopyPage": true,
            "workflow": null
        "queryString": {
            "pageName": "Detail",
            "parentPageId": "x116",
            "schemaFile": "schemas\/194"

If Page doesn't exist, returns error status

If Page Creation Rule or Schema Id is specified, but don't exist, returns error status

If Page Creation Id is specified, uses Page Creation Rule to create the Page; Otherwise, uses Schema to create the Page

Specified "ss" XSLT stylesheet doesn't affect Page creation with Schema at all

Created new Page is checked out and assigned to specified User

If "userId" is not specified, Page will be assigned to current User

See Also