PresentationsAdminServicesSaveContentUnit Method |
Namespace: IngeniuxCMService
public XHRServiceResponseGeneric<UniqueObject> SaveContentUnit( PagePresentation_GlobalContentUnitSaveData data )
Updated details of the content unit
Sample JSON input
{
"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": []
}
}Name and id of the updated content unit
Sample JSON return
{
"ContentFreezeEndTime": "",
"ContentFreezeStartTime": "",
"code": 0,
"error": null,
"message": {
"name": "Right Image",
"id": "ContentUnits\/65"
}
}