PublishingSystemManagerServicesCreatePubProfile Method Ingeniux CMS Web Services API

Creates a new Publishing Profile

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

public XHRServiceResponseGeneric<PublishingProfileEditorData> CreatePubProfile(
	PublishingProfileSaveInput data
)

Parameters

data
Type: PublishingProfileSaveInput

Object containing information of new Publishing Profile

Examples

Sample JSON input
JavaScript
{
    "data": {
        "info": {
            "newEntry": true,
            "name": "Live",
            "pubTargets": ["PublishingTargets/1", "PublishingTargets/35"]
        },
        "members": ["UserGroup/1", "UserGroups/1"]
    }
}

Return Value

Type: XHRServiceResponseGenericPublishingProfileEditorData

Object containing detailed information of newsly created Publishing Profile

Examples

Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "info": {
            "name": "Live",
            "id": "PublishingProfiles\/33",
            "targetsCount": 2,
            "excludeTargets": [["PublishingTargets\/33", "PublishingTargets\/34"]],
            "pubTargets": [{
                "name": "Live",
                "id": "PublishingTargets\/1"
            }, {
                "name": "Live2",
                "id": "PublishingTargets\/35"
            }]
        }
    }
}
See Also

Reference