title: Can't add group attribute via Keycloak Admin Rest API
body: <p>I'm sending a request to <code>PUT /{realm}/groups/{id}</code> to add a group attribute to an existing group.</p>
  
  <p>The body of PUT request looks like this:</p>
  
  <pre><code>{"attributes":{"id":123}}
  </code></pre>
  
  <p>It's failing and returning 500 error.</p>
  
  <p>The documentation is not clear about the format of "Map" schema. <a href="https://www.keycloak.org/docs-api/6.0/rest-api/#_grouprepresentation" rel="nofollow noreferrer">https://www.keycloak.org/docs-api/6.0/rest-api/#_grouprepresentation</a> shows "attributes" field type is "Map" but it's not defined. I tried several formats, like:</p>
  
  <pre><code>{"attributes":[{"id":123}]}
  {"attributes":{"key":"id","value":123}}
  {"attributes":[{"key":"id","value":123}]}
  </code></pre>
  
  <p>but none of them is working.</p>
  
  <p>What is "Map" schema and why is my request returning 500?</p>