PublishingSystemManagerServicesSavePubProfile Method

Ingeniux CMS Web Services API

Saves a single Publishing Profile with updated information

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.70
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