PublishingSystemManagerServicesSavePubProfile Method Ingeniux CMS Web Services API

Saves a single Publishing Profile with updated information

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

public XHRServiceResponseGeneric<PublishingProfileEditorData> SavePubProfile(
	PublishingProfileSaveInput data
)

Parameters

data
Type: PublishingProfileSaveInput

The updated information of the Publishing Profile

Examples

Sample JSON input
JavaScript
{
    "data": {
        "info": {
            "name": "Staging",
            "id": "PublishingProfiles/1",
            "targetsCount": 2,
            "excludeTargets": [["PublishingTargets/33", "PublishingTargets/34"], ["PublishingTargets/1"]],
            "pubTargets": ["PublishingTargets/33", "PublishingTargets/34"],
            "newEntry": false
        },
        "members": ["UserGroup/1"]
    }
}

Return Value

Type: XHRServiceResponseGenericPublishingProfileEditorData

Updated information of the Publishing Profile after save.

Examples

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

If Publishing Profile doesn't exist, returns error status.

See Also

Reference