Create Composite Role By Msp
Creates a composite role based on the role params provided by the MSP
Privileges required:
CREATE
MSP_SCOPED_ROLE
Request
URI
POST
https://{api_host}/portal/rest/compositeRole/createByEnterpriseProxy
COPY
Request Body
Show optional properties
{
"userType": "string",
"enterpriseProxyId": 0,
"name": "string",
"description": "string",
"functionalRoleIds": [
{}
]
}
{
"userType": "string",
"enterpriseProxyId": 0,
"name": "string",
"description": "string",
"functionalRoleIds": [
0
]
}
string
userType
Required
userType
Possible values are :
MSP,
ENTERPRISE,
integer
enterpriseProxyId
Required
enterpriseProxyId
string
name
Required
name
string
description
Required
description
array of
integer
functionalRoleIds
Required
functionalRoleIds
Responses
200
Request was successfully processed
{
"id": 0
}
integer
id
Optional
id
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 '{"userType:"string","enterpriseProxyId:"integer","name:"string","description:"string","functionalRoleIds:"array"}' https://{api_host}/portal/rest/compositeRole/createByEnterpriseProxy
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