/api/modulo
Creates a new module record. The value of strNombreModulo is automatically converted to uppercase before being stored.
Request body
Name of the new module. Stored in uppercase regardless of the casing supplied.
Response
true when the module is created successfully.The newly created module record as returned by the database.
Error responses
| Status | Message | Cause |
|---|---|---|
200 (with success: false) | El nombre del módulo es obligatorio. | strNombreModulo is missing or falsy in the request body. |
200 (with success: false) | No se pudo crear el módulo en la base de datos. | Any unhandled database error during the insert. |
Validation and database errors for this endpoint return HTTP
200 with success: false in the body rather than a 4xx/5xx HTTP status code.Examples
Success response
200
Error response (missing name)
200