Click or drag to resize

PresentationsAdminServicesSaveContentUnit Method


Updates details of a content unit

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.5.94
Syntax
public XHRServiceResponseGeneric<UniqueObject> SaveContentUnit(
	PagePresentation_GlobalContentUnitSaveData data
)

Parameters

data
Type: PagePresentation_GlobalContentUnitSaveData

Updated details of the content unit

Examples

Sample JSON input

JavaScript
{
    "Name": "Right Image",
    "ElementName": "RightImage",
    "IsComponentUnit": false,
    "ElementSchemaType": "30",
    "ComponentSchemaId": "",
    "IconName": 3,
    "Reusable": false,
    "AllowedSchemas": [],
    "Id": "ContentUnits/65",
    "ElementSaveData": {
        "nodeName": "RightImage",
        "nodeValue": "",
        "nodePosition": 0,
        "attributes": [
            {
                "Key": "Asset",
                "Value": ""
            },
            {
                "Key": "AssetTypes",
                "Value": "Image"
            },
            {
                "Key": "Type",
                "Value": "asset"
            },
            {
                "Key": "label",
                "Value": "Right Image"
            },
            {
                "Key": "required",
                "Value": "false"
            },
            {
                "Key": "readonly",
                "Value": "false"
            },
            {
                "Key": "hidden",
                "Value": "false"
            }
        ],
        "deletedAttributes": [],
        "childElements": [],
        "metaData": {},
        "childSchemaName": "",
        "childParentId": "",
        "pageBuilderTemplateName": "",
        "uniqueId": "8f3d028f689e46d59eae59c9183a594b",
        "groupProp": "",
        "childAttributes": []
    }
}

Return Value

Type: XHRServiceResponseGenericUniqueObject

Name and id of the updated content unit

Examples

Sample JSON return

JavaScript
{
    "ContentFreezeEndTime": "",
    "ContentFreezeStartTime": "",
    "code": 0,
    "error": null,
    "message": {
        "name": "Right Image",
        "id": "ContentUnits\/65"
    }
}
See Also