Update Composite Role By Operator
Updates the composite role based on the update attributes and role id provided
Privileges required:
UPDATE
OPERATOR_SCOPED_ROLE
Request
URI
POST
https://{api_host}/portal/rest/compositeRole/updateByOperator
COPY
Request Body
{
"networkId": 0,
"roleId": 0,
"_update": {
"name": "string",
"description": "string",
"functionalRoleIds": [
0
]
}
}
integer
networkId
Optional
networkId
integer
roleId
Optional
roleId
object
_update
Optional
_update
Responses
200
Request was successfully processed
Operation doesn't return any data structure
400
Invalid Request: Please check your request schema
Returns
generic_400
of type(s)
application/json
{
"error": {
"code": -32600,
"message": "An error occurred while processing your request",
"data": {
"valid": false,
"error": [
{
"code": "string",
"message": "string",
"path": "string"
}
],
"warning": [
{
"code": "string",
"message": "string",
"path": "string"
}
]
}
}
}
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/portal/rest/compositeRole/updateByOperator
All Operations
POST
Create Composite Role By Enterprise
POST
Create Composite Role By Msp
POST
Create Composite Role By Operator
POST
Delete Composite Roles By Enterprise
POST
Delete Composite Roles By Msp
POST
Delete Composite Roles By Operator
POST
Get Composite Roles By Enterprise
POST
Get Composite Roles By Msp
POST
Get Composite Roles By Operator
POST
Update Composite Role By Enterprise
POST
Update Composite Role By Msp
POST
Update Composite Role By Operator