Skip to main content
POST
/
api
/
Perfil
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
}
Creates a new profile. After creation, assign module-level permissions to the profile using Save permissions.

Authentication

Requires a valid Bearer token.
Authorization: Bearer <token>

Permissions

Requires the perfil.agregar permission. Returns 403 Forbidden if the authenticated user’s profile does not have this permission.

Request body

strNombrePerfil
string
required
Name of the profile. Maximum 80 characters.
BitAdministrador
boolean
default:"false"
When true, this profile bypasses all module-level permission checks and has full access to the system. Use with care.

Response fields

IdPerfil
integer
required
Auto-assigned ID for the newly created profile.
strNombrePerfil
string
required
Name of the profile as stored.
BitAdministrador
boolean
required
Whether the profile has full administrative access.

Examples

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
}
After creating a profile, use Save permissions to assign module-level access rights to it.

Build docs developers (and LLMs) love