Click or drag to resize

PageCreationRulesAdminServicesSave Method


Saves the updates on an existing Page Creation Rule

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.5.94
Syntax
public XHRServiceResponseGeneric<PageCreationRuleEditorData> Save(
	PcrSaveInput data
)

Parameters

data
Type: PcrSaveInput

The updated information on the Page Creation Rule

Examples
Sample JSON input
JavaScript
{
    "data": {
        "info": {
            "name": "Image",
            "id": "PageCreationRules/1",
            "englishName": null,
            "groupsCount": 2,
            "isDefault": false,
            "workflowEnglishName": null,
            "workflowName": "",
            "autoSelectParent": true,
            "isSchemaComponent": true,
            "parentsCount": 1,
            "schema": "Image%20File",
            "schemaEnglishName": "Image File",
            "stylesheet": "~default~",
            "usersCount": 0,
            "workflowId": "",
            "groups": ["UserGroup/1", "UserGroups/1"],
            "users": ["INGENIUX\\awang"],
            "newEntry": false
        },
        "members": [{
            "pageId": "x112",
            "isParent": false
        }, {
            "pageId": "x3",
            "isParent": false
        }]
    }
}

Return Value

Type: XHRServiceResponseGenericPageCreationRuleEditorData

Updated Page Creation Rule Data

Examples
Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "info": {
            "name": "Image",
            "id": "PageCreationRules\/1",
            "englishName": null,
            "groupsCount": 2,
            "isDefault": false,
            "workflowEnglishName": null,
            "workflowName": "",
            "autoSelectParent": true,
            "isSchemaComponent": true,
            "parentsCount": 2,
            "schema": "Image File",
            "schemaEnglishName": "Image File",
            "stylesheet": "~default~",
            "usersCount": 1,
            "workflowId": "",
            "groups": [{
                "name": "Administrators",
                "id": "UserGroup\/1"
            }, {
                "name": "Authors",
                "id": "UserGroups\/1"
            }],
            "users": [{
                "name": "INGENIUX\\awang (Turtle Master)",
                "id": "User\/INGENIUX___awang"
            }]
        },
        "parents": [{
            "name": "Listing",
            "id": "x112",
            "accessible": true,
            "icon": 99,
            "parentOnly": false,
            "path": "Site\/Listing"
        }, {
            "name": "Internal Components",
            "id": "x3",
            "accessible": true,
            "icon": 1,
            "parentOnly": false,
            "path": "Site\/Internal Components"
        }]
    }
}
Remarks

If Page Creation Rule with given id doesn't exist, returns error status

If Schema with given friendly name doesn't exis, returns error status

See Also