Role Remove Custom Roles

Role Remove Custom Roles

Removes role customizations in the system to restore to system default.

Privileges required:

MODIFY_NETWORK_CUSTOM_ROLES undefined

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

Show optional properties

{
    "roleCustomizationLevel": "string",
    "networkId": 0
}
{
    "roleCustomizationLevel": "string",
    "networkId": 0,
    "userId": 0,
    "operatorId": 0,
    "enterpriseId": 0,
    "enterpriseProxyId": 0
}
string
roleCustomizationLevel
Required

roleCustomizationLevel

Possible values are : NETWORK, PARTNER, ENTERPRISE, USER, ALL,
integer
networkId
Required

networkId

integer
userId
Optional

userId

integer
operatorId
Optional

operatorId

integer
enterpriseId
Optional

enterpriseId

integer
enterpriseProxyId
Optional

enterpriseProxyId

Responses
200

Request was successfully processed

Returns deletion_confirmation of type(s) application/json
{
    "id": 123,
    "rows": 1
}
integer
id
Optional

The id of the deleted object.

string
error
Optional

An error message explaining why the method failed

integer
rows
Required

The number of rows modified


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 '{"networkId:"integer","roleCustomizationLevel:"string"}' https://{api_host}/portal/rest/role/removeCustomRoles