Role Save N Apply Role Customization Package

Role Save N Apply Role Customization Package

Updates basic attributes of package (including name and description), and the content of role customization package. Then Applies role customization package in the VCO Expects an _update object containing the field(s) to be updated and their corresponding value(s).

Privileges required:

UPDATE ROLE_CUSTOMIZATION_PACKAGE

MODIFY_NETWORK_CUSTOM_ROLES undefined, or

MODIFY_ENTERPRISE_CUSTOM_ROLES undefined, or

MODIFY_ENTERPRISE_PROXY_CUSTOM_ROLES undefined

Request
URI
POST
https://{api_host}/portal/rest/role/saveAndApplyRoleCustomizationPackage
COPY
Request Body

Show optional properties

{
    "_update": {}
}
{
    "id": 0,
    "_update": {
        "name": "string",
        "description": "string",
        "blobContent": {
            "enterpriseId": 0,
            "enterpriseProxyId": 0,
            "networkId": 0,
            "roleCustomizations": [
                {
                    "forRoleId": 0,
                    "addPrivileges": [
                        {
                            "privilege": "string",
                            "action": "string",
                            "object": "string",
                            "isDeny": 0
                        }
                    ],
                    "removePrivileges": [
                        {
                            "privilege": "string",
                            "action": "string",
                            "object": "string",
                            "isDeny": 0
                        }
                    ]
                }
            ]
        }
    }
}
integer
id
Optional

id

object
_update
Required

_update

Responses
200

Request was successfully processed

Returns role_apply_role_customization_package_result of type(s) application/json
"role_apply_role_customization_package_result Object"
array of object
customizationResults
Optional

customizationResults


400
Returns generic_400 of type(s) application/json
Operation doesn't return any data structure

500
Returns generic_500 of type(s) application/json
Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"_update:"object"}' https://{api_host}/portal/rest/role/saveAndApplyRoleCustomizationPackage