TaxonomyTreeServicesCreateCategoryStructure Method

Ingeniux CMS Web Services API

Creates a entire branch of Category nodes. This is the method to mass create categories.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.70
Syntax

public XHRServiceResponseGeneric<CategoryCreateInfo> CreateCategoryStructure(
	CategoryCreateInfo tree
)

Parameters

tree
Type: CategoryCreateInfo

The tree branch of categories to create

Examples

Sample JSON input

JavaScript
{
    "ExternalId": "a2sdfi1940j38d6f",
    "Name": "Education",
    "Description": "",
    "Children": [
        {
            "ExternalId": "03k48dkkdfiu23k",
            "Name": "Science",
            "Description": "",
            "Children": [
                {
                    "ExternalId": "23diuiukodi8459",
                    "Name": "Physics",
                    "Description": "",
                    "Children": []
                }
            ]
        },
        {
            "ExternalId": "ue83jkd4kded87dfh",
            "Name": "Arts",
            "Description": "",
            "Children": []
        }
    ]
}

Return Value

Type: XHRServiceResponseGenericCategoryCreateInfo

The information of root categories created

Examples

Sample JSON return

JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "objectId": "tta__CategoryNodes\/67",
        "widgetId": "tta__CategoryNodes\/67",
        "isFolder": false,
        "props": {
            "associatedPages": null,
            "creationLocale": "en-us",
            "depth": 1,
            "description": "",
            "everyoneName": "Everyone",
            "externalId": "",
            "id": "CategoryNodes\/67",
            "idPrefix": "tta",
            "originalDescription": "",
            "originalTitle": "Monera",
            "originalTypeName": "Kingdom",
            "path": "Monera",
            "permissions": [{
                "name": "Everyone",
                "id": "0",
                "accessLevel": 2
            }],
            "permissionsInherited": true,
            "synonyms": [],
            "translated": true,
            "typeName": "Kingdom",
            "visibility": 1
        },
        "title": "Monera"
    }
}
See Also

Reference