This page documents every endpoint exposed by the Users API. Each section covers the method, path, required parameters, expected responses, and a curl example you can run against your own host.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jparra-amell/api_solsql/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/vw_user
Returns all user accounts in the database.Response
200 OK — an array of user objects.
Example
cURL
200 OK
Error codes
| Status | Description |
|---|---|
500 Internal Server Error | Database or unexpected server error. |
GET /api/vw_user/{id}
Returns a single user by their numeric ID.Path parameters
The numeric ID of the user to retrieve.
Response
200 OK — an array containing the matching user object.
404 Not Found — no user exists with the given ID.
Example
cURL
200 OK
404 Not Found
Error codes
| Status | Description |
|---|---|
404 Not Found | No user with the given ID exists. |
500 Internal Server Error | Database or unexpected server error. |
GET /api/vw_user/status/{status}
Returns all users filtered by their account status.Path parameters
Account status to filter by. Accepted values:
1— active users0— inactive users
Response
200 OK — an array of user objects matching the requested status.
400 Bad Request — the status value is not 0 or 1.
Example
cURL
200 OK — active users
400 Bad Request
Error codes
| Status | Description |
|---|---|
400 Bad Request | status is not 0 or 1. |
500 Internal Server Error | Database or unexpected server error. |
POST /api/vw_user
Creates a new user account. The password you provide is automatically BCrypt-hashed before it is stored.Request body
Full name of the new user.
Email address of the new user. Used for login.
Plain-text password. The API hashes it with BCrypt before persisting — never send a pre-hashed value to this endpoint.
User role:
1 for regular users, 2 for administrators.Response
200 OK — the user was created successfully.
Confirmation message:
"User inserted successfully."Example
cURL
Error codes
| Status | Description |
|---|---|
500 Internal Server Error | Database constraint violation or unexpected server error. |
PUT /api/vw_user/{id}
Updates an existing user by ID. You can modify any combination of fields including the account’sStatus.
If the
Password value you send already starts with $2a$, the API assumes it is an existing BCrypt hash and stores it without re-hashing. If it does not start with $2a$, the API treats it as a new plain-text password and hashes it before saving.Path parameters
The numeric ID of the user to update.
Request body
Updated full name of the user.
Updated email address of the user.
New password (plain text) or existing BCrypt hash. Values starting with
$2a$ are stored as-is.Updated role:
1 for regular users, 2 for administrators.Updated account status:
1 = active, 0 = inactive.Response
200 OK — the user was updated successfully.
Confirmation message:
"User updated successfully."Example
cURL
Error codes
| Status | Description |
|---|---|
500 Internal Server Error | Database or unexpected server error. |
DELETE /api/vw_user/{id}
Deletes a user by ID.Path parameters
The numeric ID of the user to delete.
Response
200 OK — the user was deleted successfully.
Example
cURL
Error codes
| Status | Description |
|---|---|
500 Internal Server Error | Database or unexpected server error. |