/api/perfil
Creates a new profile record. If bitAdministrador is true, full permissions (bitAgregar, bitEditar, bitConsulta, bitEliminar, bitDetalle) are automatically created in the permisos_perfil table for every existing module.
Request body
string
required
Name of the new profile. Cannot be empty or whitespace-only.
boolean
default:"false"
Whether this profile has administrator-level access. When
true, full permissions are automatically granted for all existing modules.Response
boolean
required
true when the profile is created successfully.object
required
The newly created profile record as returned by the database.
Error responses
Examples
Success response
200
Error response (400)
400