Skip to main content
PUT
/
api
/
Perfil
/
{id}
curl --request PUT \
  --url https://your-api-host/api/Perfil/4 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "strNombrePerfil": "Supervisor Senior",
    "BitAdministrador": false
  }'
{}
Updates the name and admin flag of an existing profile. Only strNombrePerfil and BitAdministrador are modified — the profile ID is determined by the path parameter.

Authentication

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

Permissions

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

Path parameters

id
integer
required
ID of the profile to update.

Request body

strNombrePerfil
string
required
New name for the profile. Maximum 80 characters.
BitAdministrador
boolean
Updated admin flag. When true, the profile has full system access regardless of module-level permissions.
Any IdPerfil value included in the request body is ignored. The profile to update is always identified by the id path parameter.

Examples

curl --request PUT \
  --url https://your-api-host/api/Perfil/4 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "strNombrePerfil": "Supervisor Senior",
    "BitAdministrador": false
  }'
{}

Build docs developers (and LLMs) love