POST /api/users
Creates a new user with the specified details. This endpoint requires write privileges or admin role.Authentication
This endpoint requires JWT authentication with one of the following:WRITE_PRIVILEGESauthorityADMINrole
Request Body
User’s first name
User’s last name
User’s middle name or second last name (optional)
User’s email address. Must be a valid email format.
User’s password. Must be at least 8 characters long.
Response
Unique identifier for the created 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
201- User created successfully400- Bad Request: Invalid input data (e.g., invalid email format, password too short)401- Unauthorized: Missing or invalid JWT token403- Forbidden: Insufficient permissions409- Conflict: User already exists with the given email