cURL
curl --request POST \ --url http://localhost:3000/users \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "auth0Sub": "auth0|abc123", "email": "[email protected]", "role": "OPERATOR" } '
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Identificador Auth0 (sub claim)
"auth0|abc123"
"[email protected]"
ADMIN
OPERATOR
Usuário criado