Create a new profile that can be assigned to users.
curl --request POST \
--url https://your-api-host/api/Perfil \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"strNombrePerfil": "Supervisor",
"BitAdministrador": false
}'
{
"IdPerfil": 4,
"strNombrePerfil": "Supervisor",
"BitAdministrador": false
}
Authorization: Bearer <token>
perfil.agregar permission. Returns 403 Forbidden if the authenticated user’s profile does not have this permission.
true, this profile bypasses all module-level permission checks and has full access to the system. Use with care.curl --request POST \
--url https://your-api-host/api/Perfil \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"strNombrePerfil": "Supervisor",
"BitAdministrador": false
}'
{
"IdPerfil": 4,
"strNombrePerfil": "Supervisor",
"BitAdministrador": false
}
curl --request POST \
--url https://your-api-host/api/Perfil \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"strNombrePerfil": "Supervisor",
"BitAdministrador": false
}'
{
"IdPerfil": 4,
"strNombrePerfil": "Supervisor",
"BitAdministrador": false
}