Patch Custom Role Using PATCH
Update custom role's description and/or displayName.
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
Organization Admin | ✔️ | ✔️ |
Organization Owner | ✔️ | ✔️ |
orgId
Custom role name to update
"CustomRoleUpdateRequest Object"
Custom role display name
Custom role description
Success
{
"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
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
Not 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 PATCH -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]'