TaxonomyTreeServicesSetCategoryInformation Method |
Namespace: IngeniuxCMService
public XHRServiceResponseGeneric<CategoryInfo> SetCategoryInformation( CategoryCreateUpdateInput data, string locale )
New information for the Category. Doesn't include associations information.
{
"categoryId": "CategoryNodes/66",
"idPrefix": "tta",
"name": "Lophotrochozoa",
"description": "",
"externalId": "",
"typeName": "Phylum"
}If the locale is the same as the Category's creation Locale, the original Name and Description will be changes; Otherwise, we are updating the translations in the target Locale.
The full details of the updated Category
{
"code": 0,
"error": null,
"message": {
"objectId": "tta__CategoryNodes\/66",
"widgetId": "tta__CategoryNodes\/66",
"isFolder": false,
"props": {
"associatedPages": null,
"creationLocale": "en-us",
"depth": 2,
"description": "",
"everyoneName": "Everyone",
"externalId": "",
"id": "CategoryNodes\/66",
"idPrefix": "tta",
"originalDescription": "",
"originalTitle": "Lophotrochozoa",
"originalTypeName": "Phylum",
"path": "Animalia/Lophotrochozoa",
"permissions": [{
"name": "Everyone",
"id": "0",
"accessLevel": 2
}],
"permissionsInherited": true,
"synonyms": [],
"translated": true,
"typeName": "Phylum",
"visibility": 1
},
"title": "Lophotrochozoa"
}
}If Category doesn't exist, returns error status.
If locale is not specified, or empty, default to "en-us".
This operation requires current User to have the permission to manager Taxonomy System. If not, returns error status.