Click or drag to resize

PresentationsAdminServicesGetContentUnitDetails Method


Retrieves the full details of one content unit

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<ContentUnitDetailsData> GetContentUnitDetails(
	string data
)

Parameters

data
Type: SystemString
Unique id of the content unit to retrieve

Return Value

Type: XHRServiceResponseGenericContentUnitDetailsData

Full details of the content unit, plus list of component schemas that can be used for creating content units

Examples

Sample JSON return

JavaScript
{
    "ContentFreezeEndTime": "",
    "ContentFreezeStartTime": "",
    "code": 0,
    "error": null,
    "message": {
        "ComponentUnitSchemas": [
            "FestivalExtra_Unit",
            "FormBuilder_Form",
            "FormField_Button",
            "FormField_Captcha",
            "FormField_Checkbox",
            "FormField_Selection",
            "FormField_Text",
            "Linkset_Unit",
            "NewDesign_Unit",
            "RightCopy_Unit"
        ],
        "ContentUnit": {
            "AllowedSchemas": [],
            "ComponentSchemaId": "",
            "ComponentSchemaName": "",
            "ElementName": "RightImage",
            "HasView": false,
            "IconName": "3",
            "Id": "ContentUnits\/65",
            "IsComponentUnit": false,
            "Name": "Right Image",
            "Reusable": true,
            "TemplateName": "RightImage",
            "ThumbnailPath": "",
            "BlockedGroups": [],
            "DssViewPath": "",
            "ElementId": "8f3d028f689e46d59eae59c9183a594b",
            "Fields": [
                {
                    "AllowedItemTypes": null,
                    "ChildElementLabel": "",
                    "ChildElementName": "",
                    "ChildElementTypeID": "",
                    "ChildProperties": [],
                    "DefaultValue": "",
                    "DisallowReadonlyOrHidden": true,
                    "ElementTypeName": "asset",
                    "Exports": "",
                    "HasExports": false,
                    "HelpText": "~NOHELP~",
                    "Hidden": false,
                    "IconName": "fa-picture-o",
                    "Indexable": false,
                    "IsXpower": false,
                    "Label": "Right Image",
                    "Name": "RightImage",
                    "Properties": [
                        {
                            "Choices": "",
                            "Label": "Asset",
                            "Name": "Asset",
                            "Type": "asset",
                            "Value": ""
                        },
                        {
                            "Choices": "",
                            "Label": "AssetTypes",
                            "Name": "AssetTypes",
                            "Type": "assetschemas",
                            "Value": "Image"
                        }
                    ],
                    "QuickEditable": false,
                    "Readonly": false,
                    "Required": false,
                    "ResersedContentUnitField": false,
                    "TypeID": "30",
                    "TypeLabel": "Asset",
                    "TypeName": "Asset",
                    "UniqueID": "8f3d028f689e46d59eae59c9183a594b"
                }
            ]
        },
        "Schemas": [
            {
                "name": "AssetFields",
                "id": "schemas\/130",
                "label": "Asset Fields"
            },
            {
                "name": "BinaryDocument",
                "id": "Schema_BinaryDocument",
                "label": "Binary Document"
            },
            {
                "name": "DitaMap",
                "id": "schemas\/161",
                "label": "DitaMap"
            },
            {
                "name": "FestivalExtra",
                "id": "schemas\/4",
                "label": "Festival Extra"
            },
            {
                "name": "Folder",
                "id": "Schema_Folder",
                "label": "Folder"
            },
            {
                "name": "Image",
                "id": "Schema_Image",
                "label": "Image File"
            },
            {
                "name": "Insert",
                "id": "Schema_Insert",
                "label": "Insert"
            },
            {
                "name": "Linkset",
                "id": "schemas\/97",
                "label": "Linkset"
            },
            {
                "name": "List",
                "id": "schemas\/289",
                "label": "List"
            },
            {
                "name": "ListTest",
                "id": "schemas\/257",
                "label": "List Test"
            },
            {
                "name": "LocaleSpecificValue",
                "id": "Schema_LocaleSpecificValue",
                "label": "Locale Specific Value"
            },
            {
                "name": "Media",
                "id": "Schema_Media",
                "label": "Media File"
            },
            {
                "name": "Navigation",
                "id": "Schema_Navigation",
                "label": "Navigation"
            },
            {
                "name": "NewDesign",
                "id": "schemas\/98",
                "label": "New Design"
            },
            {
                "name": "RightCopy",
                "id": "schemas\/65",
                "label": "Right Copy"
            },
            {
                "name": "SiteControl",
                "id": "schemas\/8",
                "label": "Site Control"
            },
            {
                "name": "Sponsor",
                "id": "schemas\/3",
                "label": "Sponsor"
            },
            {
                "name": "ttestest",
                "id": "schemas\/129",
                "label": "test"
            },
            {
                "name": "FormFieldChoice",
                "id": "schemas\/VisualFormBuilderFieldChoice",
                "label": "Visual Form Builder - Field Choice"
            },
            {
                "name": "FormField_ChoicesProvider",
                "id": "schemas\/VisualFormBuilderFieldChoicesProvider",
                "label": "Visual Form Builder - Field Choices Provider"
            },
            {
                "name": "FormBuilder_Form",
                "id": "schemas\/VisualFormBuilderForm",
                "label": "Visual Form Builder - Form"
            },
            {
                "name": "FormField_Button",
                "id": "schemas\/VisualFormBuilderFormFieldButton",
                "label": "Visual Form Builder - Form Field - Button"
            },
            {
                "name": "FormField_Captcha",
                "id": "schemas\/VisualFormBuilderFormFieldCaptcha",
                "label": "Visual Form Builder - Form Field - Captcha"
            },
            {
                "name": "FormField_Checkbox",
                "id": "schemas\/VisualFormBuilderFormFieldCheckbox",
                "label": "Visual Form Builder - Form Field - Checkbox"
            },
            {
                "name": "FormField_Hidden",
                "id": "schemas\/VisualFormBuilderFormFieldHidden",
                "label": "Visual Form Builder - Form Field - Hidden"
            },
            {
                "name": "FormField_Selection",
                "id": "schemas\/VisualFormBuilderFormFieldSelection",
                "label": "Visual Form Builder - Form Field - Selection"
            },
            {
                "name": "FormField_Text",
                "id": "schemas\/VisualFormBuilderFormFieldText",
                "label": "Visual Form Builder - Form Field - Text"
            },
            {
                "name": "FormFieldValidation_CreditCard",
                "id": "schemas\/VisualFormBuilderFormFieldValidationCreditCard",
                "label": "Visual Form Builder - Form Field Validation - Credit Card"
            },
            {
                "name": "FormFieldValidation_Date",
                "id": "schemas\/VisualFormBuilderFormFieldValidationDate",
                "label": "Visual Form Builder - Form Field Validation - Date"
            },
            {
                "name": "FormFieldValidation_Digits",
                "id": "schemas\/VisualFormBuilderFormFieldValidationDigits",
                "label": "Visual Form Builder - Form Field Validation - Digits"
            },
            {
                "name": "FormFieldValidation_Email",
                "id": "schemas\/VisualFormBuilderFormFieldValidationEmailAddress",
                "label": "Visual Form Builder - Form Field Validation - Email Address"
            },
            {
                "name": "FormFieldValidation_LengthRange",
                "id": "schemas\/VisualFormBuilderFormFieldValidationLengthRange",
                "label": "Visual Form Builder - Form Field Validation - Length Range"
            },
            {
                "name": "FormFieldValidation_Number",
                "id": "schemas\/VisualFormBuilderFormFieldValidationNumber",
                "label": "Visual Form Builder - Form Field Validation - Number"
            },
            {
                "name": "FormFieldValidation_Range",
                "id": "schemas\/VisualFormBuilderFormFieldValidationRange",
                "label": "Visual Form Builder - Form Field Validation - Range"
            },
            {
                "name": "FormFieldValidation_Required",
                "id": "schemas\/VisualFormBuilderFormFieldValidationRequired",
                "label": "Visual Form Builder - Form Field Validation - Required"
            },
            {
                "name": "FormFieldValidation_URL",
                "id": "schemas\/VisualFormBuilderFormFieldValidationURL",
                "label": "Visual Form Builder - Form Field Validation - URL"
            },
            {
                "name": "XField",
                "id": "schemas\/225",
                "label": "X Field"
            }
        ]
    }
}
See Also