Click or drag to resize

TaxonomyTreeServicesAddAssociationToCategory Method


Associates a Category with a Page. This operation categiorizes the given Page with given Category.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.5.94
Syntax
public XHRServiceResponseGeneric<string[]> AddAssociationToCategory(
	CategoryAssociationManipulationInput data
)

Parameters

data
Type: CategoryAssociationManipulationInput

Object containing Ids of Category and Page to create the new association

Examples
Sample JSON input
JavaScript
{
    "data": {
        "categoryId": "CategoryNodes/33",
        "pageXID": "x9"
    }
}

Return Value

Type: XHRServiceResponseGenericString

Object containing the Id and Name of the Page that was just associated with the Category. It is always a two-items array, first item holds the Page Id, second item holds the Page name.

Examples
Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": ["x9", "Terms"]
}
Remarks

If Category or Page doesn't exist, returns error status

All Name and Path information in the array of Category Nodes are URI encoded.

This operation requires current User to have the permission to manage Taxonomy System. If not, returns error status.

See Also