POST /utils/
Create new user.
Registers a new user in the system and optionally sends a welcome email if configured. This endpoint is restricted to superuser accounts.
Endpoint
POST /utils/
Parameters
| Name | Type | Description |
|---|---|---|
| session | SessionDep | The database session dependency used for persistence operations. |
| user_in | UserCreate | The data transfer object containing the new user's email, password, and profile details. |
Request Body
| Field | Type | Description |
|---|---|---|
string | The email address for the new user account, used for login and notifications. | |
| password | string | The plain text password to be hashed and stored for the new user. |
| full_name | string | The optional full name of the user. |
Response
| Status | Description |
|---|---|
| 200 | The user was successfully created. Returns UserPublic. |
| 400 | Returned when a user with the provided email address already exists in the system. Returns HTTPException. |
| 401 | Returned when the request lacks valid authentication credentials. |
| 403 | Returned when the authenticated user does not have superuser privileges. |