Click or drag to resize

TaxonomyTreeServicesGetAssociationsToPage Method


Retrieves all the Categories associated with given Page

Namespace: IngeniuxCMService
Assembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.6.492
Syntax
public XHRServiceResponseGeneric<CategoryAssociationsInfo> GetAssociationsToPage(
	GetPageCategorizationsInput data
)

Parameters

data  GetPageCategorizationsInput

Object containing the Id of the Page to get associations information for

Example
Sample JSON input
JavaScript
{
    "data": {
        "pageId": "x9"
    }
}

Return Value

XHRServiceResponseGenericCategoryAssociationsInfo

Collection of information of Category Nodes that are associated with the given Page.

Each item contains "attributes" and "elements" listing. "attributes" has Category Id only. "elements" item is a 3 items array that has Id, Name and Path of the Category Node item.

Example
Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "ids": ["CategoryNodes\/33", "CategoryNodes\/67", "CategoryNodes\/2"],
        "info": [{
            "attributes": {
                "categoryId": "CategoryNodes\/33"
            },
            "elements": ["CategoryNodes\/33", "Cydippida", "Animalia\/Ctenophora\/Cydippida"]
        }, {
            "attributes": {
                "categoryId": "CategoryNodes\/67"
            },
            "elements": ["CategoryNodes\/67", "Monera", "Monera"]
        }, {
            "attributes": {
                "categoryId": "CategoryNodes\/2"
            },
            "elements": ["CategoryNodes\/2", "Fungi", "Fungi"]
        }]
    }
}
See Also