TaxonomyTreeServicesAddAssociationToCategory Method
|
Associates a Category with a Page. This operation categiorizes the given Page with given Category.
Namespace: IngeniuxCMServiceAssembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.6.492
Syntaxpublic XHRServiceResponseGeneric<string[]> AddAssociationToCategory(
CategoryAssociationManipulationInput data
)
Public Function AddAssociationToCategory (
data As CategoryAssociationManipulationInput
) As XHRServiceResponseGeneric(Of String())
public:
virtual XHRServiceResponseGeneric<array<String^>^>^ AddAssociationToCategory(
CategoryAssociationManipulationInput^ data
) sealed
abstract AddAssociationToCategory :
data : CategoryAssociationManipulationInput -> XHRServiceResponseGeneric<string[]>
override AddAssociationToCategory :
data : CategoryAssociationManipulationInput -> XHRServiceResponseGeneric<string[]> Parameters
- data CategoryAssociationManipulationInput
Object containing Ids of Category and Page to create the new association
Example
Sample JSON input
{
"data": {
"categoryId": "CategoryNodes/33",
"pageXID": "x9"
}
}
Return Value
XHRServiceResponseGenericStringObject 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.
Example
Sample JSON return
{
"code": 0,
"error": null,
"message": ["x9", "Terms"]
}
RemarksIf 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