Themes

Set realm theme assignment

Assigns deployed custom themes to the realm for one or more Keycloak theme types. Setting a type to null resets it to Keycloak's built-in default. Only themes with status: deployed can be assigned.

Required scope: themes:write

patch/clusters/{cluster_id}/realms/{realm}/themes

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/clusters/{cluster_id}/realms/{realm}/themes
  • Auth: API key in header API-Key

Path parameters

cluster_idstring uuid required
realmstring required

Keycloak realm name (not ID). Must start with a letter; allows letters, digits, and hyphens.

Example:customer-portal

Headers

API-Version'2026-06-01.beta' required

Request body

loginstring uuid
emailstring uuid
accountstring uuid
adminstring uuid

Response

The request has succeeded.

loginstring uuid required
emailstring uuid required
accountstring uuid required
adminstring uuid required

Changes

No recorded changes to this operation across all 1 revision of this API.