Delete Custom Role Using DELETE
Delete custom role by name.
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
Organization Admin | ✔️ | ✔️ |
Organization Owner | ✔️ | ✔️ |
orgId
Custom role name to delete
Success
Invalid request body
{
"message": "string",
"moduleCode": 0,
"errorCode": "string",
"cspErrorCode": "string",
"statusCode": 0,
"requestId": "string"
}
message
moduleCode
errorCode
cspErrorCode
statusCode
requestId
Unauthorized
"CspErrorResponse Object"
message
moduleCode
errorCode
cspErrorCode
statusCode
requestId
Forbidden
"CspErrorResponse Object"
message
moduleCode
errorCode
cspErrorCode
statusCode
requestId
Not Found
"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 DELETE -H 'Authorization: <value>' https://{api_host}/csp/gateway/iam-roles-mgmt/api/orgs/{orgId}/custom-roles/{roleName}