OpenapiRole definitions
Create a new role
Create a new role definition. Requires `roles.manage` permission.
POST
Create a new role definition. Requires roles.manage permission.
bearer_authheader
AuthorizationBearer <token>application/json- body
clientId*stringdescription?string|nullname*stringRole created
application/json- response
clientId*stringdescription?string|nullid*stringFormat
uuidisBuiltin*booleanname*stringrealmId*stringcurl -X POST 'https://example.com/api/roles/define' \
-H 'Content-Type: application/json' \
-d '{
"clientId": "string",
"name": "string"
}'Example Response
{
"clientId": "string",
"description": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"isBuiltin": true,
"name": "string",
"realmId": "string"
}