PageCreationRulesAdminServicesCreateNew Method Ingeniux CMS Web Services API

Creates a new Page Creation Rule with given data

Namespace: IngeniuxCMService
Assembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 9.0.565.0 (9.0.565)
Syntax

public XHRServiceResponseGeneric<PageCreationRuleEditorData> CreateNew(
	PcrSaveInput data
)

Parameters

data
Type: PcrSaveInput

Full details of the new Page Creation Rule to be created

Examples

Sample JSON input
JavaScript
{
    "data": {
        "info": {
            "newEntry": true,
            "id": "PageCreationRules/1",
            "name": "Document",
            "schema": "Binary%20Document",
            "workflowId": "",
            "isDefault": false,
            "stylesheet": "~default~",
            "autoSelectParent": true,
            "users": [],
            "groups": ["UserGroup/1", "UserGroups/1"]
        },
        "members": [{
            "pageId": "x3",
            "isParent": false
        }]
    }
}
Remarks

This operation doesn't check if there was already a Rule using the same name.
Remarks

All string parameters in the input must be URI encoded.

Return Value

Type: XHRServiceResponseGenericPageCreationRuleEditorData

New Page Creation Rule Data

Examples

Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "info": {
            "name": "Document",
            "id": "PageCreationRules\/65",
            "englishName": null,
            "groupsCount": 2,
            "isDefault": false,
            "workflowEnglishName": null,
            "workflowName": "",
            "autoSelectParent": true,
            "isSchemaComponent": true,
            "parentsCount": 0,
            "schema": "Binary Document",
            "schemaEnglishName": "Binary Document",
            "stylesheet": "~default~",
            "usersCount": 0,
            "workflowId": "",
            "groups": [{
                "name": "Administrators",
                "id": "UserGroup\/1"
            }, {
                "name": "Authors",
                "id": "UserGroups\/1"
            }],
            "users": []
        },
        "parents": []
    }
}
See Also

Reference