Keycloak · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Keycloak Admin REST Roles (by ID) API

11 actions 11 updates phrasing extends openapi/keycloak-roles-by-id-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Keycloak's API. It is a proposal applied on top of the contract, not a document Keycloak publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 11

$.info
$.paths['/admin/realms/{realm}/roles-by-id/{role-id}'].get
$.paths['/admin/realms/{realm}/roles-by-id/{role-id}'].put
$.paths['/admin/realms/{realm}/roles-by-id/{role-id}'].delete
$.paths['/admin/realms/{realm}/roles-by-id/{role-id}/composites'].get
$.paths['/admin/realms/{realm}/roles-by-id/{role-id}/composites'].post
$.paths['/admin/realms/{realm}/roles-by-id/{role-id}/composites'].delete
$.paths['/admin/realms/{realm}/roles-by-id/{role-id}/composites/clients/{clientUuid}'].get
$.paths['/admin/realms/{realm}/roles-by-id/{role-id}/composites/realm'].get
$.paths['/admin/realms/{realm}/roles-by-id/{role-id}/management/permissions'].get
$.paths['/admin/realms/{realm}/roles-by-id/{role-id}/management/permissions'].put

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Keycloak Admin REST Roles (by ID) API
  version: 1.0.0
extends: openapi/keycloak-roles-by-id-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-16'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 10
- target: $.paths['/admin/realms/{realm}/roles-by-id/{role-id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a role's representation
      effect: read
      questions:
      - What does a specific role in my realm look like?
      - Can I fetch a role's attributes by its ID?
      instructions:
      - text: Get role {role_id} in realm {realm}.
        slots:
          role_id: path.role-id
          realm: path.realm
      - text: Show the representation of role {role_id} in {realm}.
        slots:
          role_id: path.role-id
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles-by-id/{role-id}'].put
  update:
    x-apievangelist-phrasing:
      intent: Update a role's attributes
      effect: write
      questions:
      - How do I rename a role or change its description?
      - Can I make a role a composite role through its attributes?
      instructions:
      - text: Rename role {role_id} in realm {realm} to {name}.
        slots:
          role_id: path.role-id
          realm: path.realm
          name: requestBody.name
      - text: Set the description of role {role_id} in {realm} to {description}.
        slots:
          role_id: path.role-id
          realm: path.realm
          description: requestBody.description
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles-by-id/{role-id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a role
      effect: destructive
      questions:
      - How do I remove a role I no longer need?
      - Can I delete a role by its ID?
      instructions:
      - text: Delete role {role_id} from realm {realm}.
        slots:
          role_id: path.role-id
          realm: path.realm
      - text: Remove the {role_id} role in {realm}.
        slots:
          role_id: path.role-id
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles-by-id/{role-id}/composites'].get
  update:
    x-apievangelist-phrasing:
      intent: List a role's child roles
      effect: read
      questions:
      - Which roles are children of a given role?
      - Can I search a role's composites by name?
      instructions:
      - text: List the child roles of role {role_id} in realm {realm}.
        slots:
          role_id: path.role-id
          realm: path.realm
      - text: Find composites of role {role_id} in {realm} matching {search}.
        slots:
          role_id: path.role-id
          realm: path.realm
          search: query.search
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles-by-id/{role-id}/composites'].post
  update:
    x-apievangelist-phrasing:
      intent: Make a role a composite role
      effect: write
      questions:
      - How do I make a role a composite role?
      - Can I add child roles to an existing role?
      instructions:
      - text: Make role {role_id} in realm {realm} a composite role.
        slots:
          role_id: path.role-id
          realm: path.realm
      - text: Turn {role_id} in {realm} into a composite role.
        slots:
          role_id: path.role-id
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles-by-id/{role-id}/composites'].delete
  update:
    x-apievangelist-phrasing:
      intent: Remove child roles from a composite
      effect: destructive
      questions:
      - How do I take child roles out of a composite role?
      - Can I remove several roles from a composite at once?
      instructions:
      - text: Remove the child roles from composite role {role_id} in realm {realm}.
        slots:
          role_id: path.role-id
          realm: path.realm
      - text: Detach the composites of role {role_id} in {realm}.
        slots:
          role_id: path.role-id
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles-by-id/{role-id}/composites/clients/{clientUuid}'].get
  update:
    x-apievangelist-phrasing:
      intent: List client-level roles in a composite
      effect: read
      questions:
      - Which client-level roles are in a composite role?
      - Can I see the client roles a composite role includes?
      instructions:
      - text: List client-level roles for client {clientUuid} in composite role {role_id} of realm {realm}.
        slots:
          clientUuid: path.clientUuid
          role_id: path.role-id
          realm: path.realm
      - text: Show the client roles of {clientUuid} that role {role_id} in {realm} inherits.
        slots:
          clientUuid: path.clientUuid
          role_id: path.role-id
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles-by-id/{role-id}/composites/realm'].get
  update:
    x-apievangelist-phrasing:
      intent: List realm-level roles in a composite
      effect: read
      questions:
      - Which realm-level roles are in a composite role?
      - Can I see the realm roles a composite role includes?
      instructions:
      - text: List realm-level roles in composite role {role_id} of realm {realm}.
        slots:
          role_id: path.role-id
          realm: path.realm
      - text: Show the realm roles inherited by role {role_id} in {realm}.
        slots:
          role_id: path.role-id
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles-by-id/{role-id}/management/permissions'].get
  update:
    x-apievangelist-phrasing:
      intent: Check a role's management permissions
      effect: read
      questions:
      - Does a role have management permissions enabled?
      - Can I check the management permissions of a role?
      instructions:
      - text: Check the management permissions of role {role_id} in realm {realm}.
        slots:
          role_id: path.role-id
          realm: path.realm
      - text: Show whether role {role_id} in {realm} has management permissions enabled.
        slots:
          role_id: path.role-id
          realm: path.realm
      method: generated
      generated: '2026-11-16'
- target: $.paths['/admin/realms/{realm}/roles-by-id/{role-id}/management/permissions'].put
  update:
    x-apievangelist-phrasing:
      intent: Enable or disable a role's management permissions
      effect: write
      questions:
      - How do I enable management permissions for a role?
      - Can I change the scope permissions of a role's management permissions?
      instructions:
      - text: Set management permissions of role {role_id} in realm {realm} to {enabled}.
        slots:
          role_id: path.role-id
          realm: path.realm
          enabled: requestBody.enabled
      - text: Set scope permissions {scopePermissions} on role {role_id} in {realm}.
        slots:
          scopePermissions: requestBody.scopePermissions
          role_id: path.role-id
          realm: path.realm
      method: generated
      generated: '2026-11-16'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/keycloak-roles-by-id-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.