title: Create user on Keycloack from curl command
body: <p>Currently I try to create a user from curl command via Keycloak's Admin REST API.
  I can authenticate myself as an admin, I have a good answer, but when I want to create a user, I have an error like: "404 - Not Found".</p>
  
  <p>Here are my curl commands:</p>
  
  <pre><code>#!/bin/bash
  
  echo "* Request for authorization"
  RESULT=`curl --data "username=pierre&amp;password=pierre&amp;grant_type=password&amp;client_id=admin-cli" http://localhost:8080/auth/realms/master/protocol/openid-connect/token`
  
  echo "\n"
  echo "* Recovery of the token"
  TOKEN=`echo $RESULT | sed 's/.*access_token":"//g' | sed 's/".*//g'`
  
  echo "\n"
  echo "* Display token"
  echo $TOKEN
  
  echo "\n"
  echo " * user creation\n"
  curl   http://localhost:8080/apiv2/users -H "Authorization: bearer $TOKEN"   --data '{"firstName":"xyz","lastName":"xyz", "email":"demo2@gmail.com", "enabled":"true"}'
  </code></pre>
  
  <p>I used the official API documentation, located at this address: <a href="https://www.keycloak.org/docs-api/4.4/rest-api/index.html" rel="noreferrer">https://www.keycloak.org/docs-api/4.4/rest-api/index.html</a></p>
  
  <p><a href="https://i.stack.imgur.com/cYSBd.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cYSBd.png" alt="enter image description here"></a></p>
  
  <p>I have this error:
  <a href="https://i.stack.imgur.com/uVUw2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/uVUw2.png" alt="enter image description here"></a></p>
  
  <p>my realm is good
  <a href="https://i.stack.imgur.com/KR9ac.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KR9ac.png" alt="enter image description here"></a></p>
  
  <p>How I can fix it?
  Thanks in advance.</p>