# Update a user Endpoint: PATCH /users/{user_id} Version: 1.5 Security: bearerAuth ## Path parameters: - `user_id` (integer, required) User identifier Example: 1 ## Request fields (application/json-patch+json): - `op` (string, required) The JSON Patch operation to be performed Enum: "add", "remove", "replace", "move", "copy", "test" - `path` (string, required) A JSON-Pointer - `value` (object) The value to be used within the operations - `from` (string) A string containing a JSON Pointer value ## Response 200 fields (application/json): - `id` (integer) User identifier Example: 1 - `username` (string, required) Username - `firstName` (string, required) First name - `lastName` (string, required) Last name - `email` (string, required) Email address Example: "annon@annon.com" - `telephoneNumber` (string) Telephone number - `mobileNumber` (string) Mobile telephone number - `contractOwnerId` (integer) Contract Owner identifier (Optional Contract Owner to associate the user to. If they are associated to a Contract Owner then they will only be able to see and manage that Contract Owner's data) Example: 1 - `enabled` (boolean) User is enabled - `userRoles` (array, required) Example: [1] ## Response 400 fields ## Response 401 fields ## Response 403 fields ## Response 404 fields