# UpdateUser Update user by specifying id or email. Either id or email is required. If both are provided then an error is returned. The user must have a token with valid permissions. Endpoint: PATCH /user Version: 1.0.0 Security: AuthorizationHeader ## Query parameters: - `email` (string) Email of the user to update - `id` (string) Id of the user to be updated ## Request fields (application/json): - `name` (string,null) - `email` (string,null) - `role` (string,null) - `old_password` (string,null) - `password` (string,null) - `locale` (string,null) ## Response 200 fields (application/json): - `errors` (string) - `success` (boolean) ## Response 400 fields (application/json): - `errors` (string) - `success` (boolean) ## Response 500 fields (application/json): - `errors` (string) - `success` (boolean)