Create Custom Role Using POST
Create custom role.
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
Organization Admin | ✔️ | ✔️ |
Organization Owner | ✔️ | ✔️ |
Organization Id
Show optional properties
{
"displayName": "string",
"name": "string"
}
{
"description": "string",
"displayName": "string",
"name": "string",
"permissions": [
"string"
]
}
Custom role description
Custom role display name
Custom role name
Permissions of the role
OK
"CustomRoleDto Object"
createdBy
Description of the custom role
Display name of the custom role
lastModifiedBy
Name of the custom role
Permissions of the custom role
Created
"CustomRoleDto Object"
createdBy
Description of the custom role
Display name of the custom role
lastModifiedBy
Name of the custom role
Permissions of the custom role
Invalid request body
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
Unauthorized
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
Forbidden
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
The requested resource could not be found
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
The request could not be processed due to a conflict
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
The user has sent too many requests
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
An unexpected error has occurred while processing the request
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"displayName:"string","name:"string"}' https://{api_host}/csp/gateway/iam-roles-mgmt/api/orgs/{orgId}/custom-roles