Role Create Role Customization

Role Create Role Customization

Creates a role customization specified by roleId and an array of privilegeIds.

Privileges required:

UPDATE NETWORK

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

Show optional properties

{
    "forRoleId": 0,
    "privilegeIds": [
        {}
    ]
}
{
    "forRoleId": 0,
    "name": "string",
    "description": "string",
    "userId": 0,
    "enterpriseId": 0,
    "operatorId": 0,
    "networkId": 0,
    "privilegeIds": [
        0
    ]
}
integer
forRoleId
Required

forRoleId

string
name
Optional

name

string
description
Optional

description

integer
userId
Optional

userId

integer
enterpriseId
Optional

enterpriseId

integer
operatorId
Optional

operatorId

integer
networkId
Optional

networkId

array of integer
privilegeIds
Required

privilegeIds

Responses
200

Request was successfully processed

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

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 '{"forRoleId:"integer","privilegeIds":["integer"]}' https://{api_host}/portal/rest/role/createRoleCustomization