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