Skip to main content
PUT
/
api
/
usuarios
/
:id
curl -X PUT https://api.iclcotizaciones.com/api/usuarios/8 \
  -H "Cookie: session=your_session_token" \
  -H "Content-Type: application/json" \
  -d '{
    "full_name": "Carlos Rodríguez",
    "email": "[email protected]",
    "role": "GERENTE",
    "is_active": true,
    "dni": "11223344"
  }'
{
  "id": 8,
  "full_name": "Carlos Rodríguez",
  "email": "[email protected]",
  "role": "GERENTE",
  "is_active": true
}
Updates an existing user account. This endpoint requires admin permissions.
Admin Only: Only users with admin roles (DIRECTOR, GERENTE) can update users.

Path Parameters

id
integer
required
The unique identifier of the user to update

Request Body

All fields are required. To keep existing values, you must include them in the request.
full_name
string
required
User’s full name
email
string
required
User’s email address
role
string
required
User role: DIRECTOR, GERENTE, COMERCIAL, CSV, OPERACIONES, or ADMINISTRACION
password
string
New password (only include if changing password)
is_active
boolean
required
Whether the user account is active
dni
string
User’s national ID number
curl -X PUT https://api.iclcotizaciones.com/api/usuarios/8 \
  -H "Cookie: session=your_session_token" \
  -H "Content-Type: application/json" \
  -d '{
    "full_name": "Carlos Rodríguez",
    "email": "[email protected]",
    "role": "GERENTE",
    "is_active": true,
    "dni": "11223344"
  }'
{
  "id": 8,
  "full_name": "Carlos Rodríguez",
  "email": "[email protected]",
  "role": "GERENTE",
  "is_active": true
}

Build docs developers (and LLMs) love