TaxonomyTreeServicesSetAssociationsToPage Method Ingeniux CMS Web Services API

Associates a collection of Categories to given page

Namespace: IngeniuxCMService
Assembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 9.0.565.0 (9.0.565)
Syntax

public XHRServiceResponseGeneric<PageCategorizationSetInfo> SetAssociationsToPage(
	SetPageCategorizationInput data
)

Parameters

data
Type: SetPageCategorizationInput

Object containing the Page Id and the array of Ids for the Categories to associate with the Page

Examples

Sample JSON input
JavaScript
{
    "data": {
        "categories": ["CategoryNodes/33", "CategoryNodes/67", "CategoryNodes/2", "CategoryNodes/66", "CategoryNodes/1"],
        "pageId": "x9"
    }
}

Return Value

Type: XHRServiceResponseGenericPageCategorizationSetInfo

Array of Id of the Categories that are currently associated with the given Page

Examples

Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "associatedCategories": ["CategoryNodes\/33", "CategoryNodes\/67", "CategoryNodes\/2"]
    }
}
Remarks

If Page doesn't exist, returns error status.

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

See Also

Reference