Skip to main content
PATCH
/
users
/
{id}
Atualizar usuário (admin)
curl --request PATCH \
  --url http://localhost:3000/users/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "role": "ADMIN"
}
'

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Body

application/json
email
string | null
role
enum<string>
Available options:
ADMIN,
OPERATOR

Response

Usuário atualizado