younifyd
Menu

Update Client Policies Policies

Update client policies policies

PUT/admin/realms/{realm}/client-policies/policies

Use it in a workflow

  1. Add a step and choose the Keycloak connector.
  2. Pick the Update Client Policies Policies action (under Realms Admin).
  3. Fill in the fields below, then reference the result from later steps as {{updateClientPoliciesPolicies.response.data}}.

Request

Path parameters

realmstringrequired

realm name (not id!)

Request body

Enter the body as JSON in the step's Body field.

policiesarray<object>
namestring
descriptionstring
enabledboolean
conditionsarray<object>2 fields
profilesarray<string>
globalPoliciesarray<object>
namestring
descriptionstring
enabledboolean
conditionsarray<object>2 fields
profilesarray<string>
json
{
  "policies": [
    {
      "name": "string",
      "description": "string",
      "enabled": false,
      "conditions": [
        {
          "condition": "string",
          "configuration": {}
        }
      ],
      "profiles": [
        "string"
      ]
    }
  ],
  "globalPolicies": [
    {
      "name": "string",
      "description": "string",
      "enabled": false,
      "conditions": [
        {
          "condition": "string",
          "configuration": {}
        }
      ],
      "profiles": [
        "string"
      ]
    }
  ]
}

Response

Returns 200 with a any. Read it in later steps with {{updateClientPoliciesPolicies.response.data.<field>}}.

Need more? See the Keycloak guide for connection setup and behaviour shared by every action.