update-role-by-id
Update an existing Keycloak role by its unique role ID and realm, enabling changes to name, description, attributes, and role flags.
Instructions
Update role by ID
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"realm": "<realm>",
"roleId": "<roleId>"
},
"name": "update-role-by-id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Role name | |
| realm | Yes | Realm name | |
| roleId | Yes | Role ID | |
| composite | No | Is composite role | |
| attributes | No | Role attributes | |
| clientRole | No | Is client role | |
| containerId | No | Container ID | |
| description | No | Role description |