PUT /api/users/
Updates an existing user’s information. This endpoint requires write privileges or admin role.Authentication
This endpoint requires JWT authentication with one of the following:WRITE_PRIVILEGESauthorityADMINrole
Path Parameters
The unique identifier of the user to update
Request Body
User’s first name (optional)
User’s last name (optional)
User’s middle name or second last name (optional)
User’s email address. Must be a valid email format if provided.
User’s new password. Must be at least 8 characters long if provided.
Response
Unique identifier for the user
User’s full name
User’s email address
Whether the user account is enabled
Whether the user account has not expired
Whether the user account is not locked
Whether the user’s credentials have not expired
List of roles assigned to the user
User status (ACTIVO or INACTIVO)
Error Codes
200- User updated successfully400- Bad Request: Invalid input data401- Unauthorized: Missing or invalid JWT token403- Forbidden: Insufficient permissions404- Not Found: User does not exist