FileBrowserServicesSetPermissions Method Ingeniux CMS Web Services API

Change security information of a given asset file or folder

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

public XHRServiceResponseGeneric<FileBrowserSetNodePermissionOutput> SetPermissions(
	SetPermissionInput data
)

Parameters

data
Type: SetPermissionInput

The new security information for given asset file or folder

Examples

The example before sets the folder to allow everyone read-only, authors to upload, and administrator full control
JavaScript
{
    "data": {
        "relativePath": "Images/icons",
        "assetType": 1,
        "permissions": {
            "isInherited": false,
            "permissions": [{
                "Id": "0",
                "Name": "Everyone",
                "Access": "0"
            }, {
                "Id": "UserGroup/1",
                "Name": "Administrators",
                "Access": "2"
            }, {
                "Id": "UserGroups/1",
                "Name": "Authors",
                "Access": "1"
            }]
        }
    }
}

Return Value

Type: XHRServiceResponseGenericFileBrowserSetNodePermissionOutput

The permission level of set asset item for current user: 0 for read-only, 1 for upload, 2 for full control

Examples

Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "newPermission": 2
    }
}
See Also

Reference