The register endpoint creates a new user account using a username and password. Passwords are hashed with BCrypt before storage — the plain-text value is never persisted. IfDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/diarpicu2022-commits/backend-AgroPulse/llms.txt
Use this file to discover all available pages before exploring further.
fullName is omitted it defaults to the provided username. All accounts created through this endpoint are assigned the OPERATOR role; role elevation must be performed separately by an admin.
Usernames must be unique across the system. If the username is already taken, the endpoint returns
409 Conflict.Request body
Unique identifier for the account. Must be between 3 and 50 characters.
Plain-text password. Must be at least 6 characters. Stored as a BCrypt hash.
The user’s display name. Defaults to
username when not supplied.A valid email address. Optional, but must be a well-formed address if provided.
Response
A200 OK response returns the newly created user object.
Auto-incremented integer primary key.
The username provided in the request.
The display name. Equals
username if fullName was not supplied.The email address provided in the request, or
null if omitted.Always
null for newly registered accounts.Always
null for newly registered accounts.Always
OPERATOR for self-registered accounts.Always
true for newly created accounts.ISO 8601 datetime when the account was created.
Always an empty array for newly registered accounts.
Error responses
| Status | error value | Cause |
|---|---|---|
409 | El usuario ya existe | A user with the provided username already exists. |