# Update Account User Updates a user's role on the account. Endpoint: PUT /api/v3/accounts/users/{id} Version: 3.1.0 Security: apiKeyAuth ## Query parameters: - `api_key` (string, required) Your API Key. Example: "YOUR_API_KEY" ## Path parameters: - `id` (string, required) User id ## Request fields (application/json): - `user` (object, required) Required. A JSON body without the user key is wrapped into user automatically, so it fails with 422 "Role is invalid" rather than 500. - `user.role` (string, required) New role of the user on the account. A missing or unknown role returns 422 "Role is invalid". Enum: "administrator", "contributor", "contributor_guides" ## Response 200 fields (application/json): - `user` (object) - `user.id` (integer) Example: 147436 - `user.email` (string) Example: "tito.reis@visma.com" - `user.phone_country_id` (integer,null) Example: 1 - `user.role` (string) Example: "contributor" ## Response 401 fields (application/json): - `errors` (array) Example: [{"error":"Authentication Error"}] - `errors.error` (string) ## Response 404 fields (application/json): - `errors` (array) Example: [{"error":"Resource not found"}] - `errors.error` (string) ## Response 422 fields (application/json): - `errors` (array) Example: [{"error":"An unexpected error occurred"}] - `errors.error` (string) ## Response 500 fields (application/json): - `errors` (array) Example: [{"error":"An unexpected error occurred"}] - `errors.error` (string)