cURL
curl --request PATCH \ --url http://localhost:3000/users/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "email": "[email protected]", "role": "ADMIN" } '
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"[email protected]"
ADMIN
OPERATOR
Usuário atualizado