Skip to main content
POST
/
users
Criar usuário (admin)
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"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
tenantId
string<uuid>
required
auth0Sub
string
required

Identificador Auth0 (sub claim)

Example:

"auth0|abc123"

email
string
role
enum<string>
default:OPERATOR
Available options:
ADMIN,
OPERATOR

Response

Usuário criado