TaxonomyTreeServicesSetCategoryPermissions Method |
Namespace: IngeniuxCMService
public XHRServiceResponseGeneric<CategoryInfo> SetCategoryPermissions( SetCategoriesPermissions data )
Object containing Category Id and its new collection of Node-Level permissions.
{ "data": { "categoryId": "CategoryNodes/4", "permissions": { "inherited": false, "data": [{ "Id": "0", "Access": "1" }, { "Id": "UserGroup/1", "Access": "2" }] } } }
Full details of the updated Category
{ "code": 0, "error": null, "message": { "objectId": "__CategoryNodes\/4", "widgetId": "__CategoryNodes\/4", "isFolder": true, "props": { "associatedPages": null, "creationLocale": "en-us", "depth": 2, "description": "", "everyoneName": "Everyone", "externalId": "", "id": "CategoryNodes\/4", "idPrefix": null, "originalDescription": "", "originalTitle": "Ctenophora", "originalTypeName": "Phylum", "path": "Animalia/Ctenophora", "permissions": [{ "name": "Everyone", "id": "0", "accessLevel": 1 }, { "name": "Administrators", "id": "UserGroup\/1", "accessLevel": 2 }], "permissionsInherited": false, "synonyms": [], "translated": true, "typeName": "Phylum", "visibility": 1 }, "title": "Ctenophora" } }
If Category doesn't exist, returns error status.
This operation requires current User to have the permission to manager Taxonomy System. If not, returns error status.