Herald
OpenapiRole definitions

Update a role

Update role definition name and description. Requires `roles.manage` permission.

PUT
/api/roles/define/{roleId}

Update role definition name and description. Requires roles.manage permission.

Authorization

bearer_auth
headerAuthorizationBearer <token>

Path Parameters

roleId*string

Role ID

Formatuuid

Request Body

application/json
  1. body
description?string|null
name*string

Response Body

Role updated

application/json
  1. response
clientId*string
description?string|null
id*string
Formatuuid
isBuiltin*boolean
name*string
realmId*string
Example Request
curl -X PUT 'https://example.com/api/roles/define/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string"
}'
Example Response
{
  "clientId": "string",
  "description": "string",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "isBuiltin": true,
  "name": "string",
  "realmId": "string"
}