Updates an existing user account. This endpoint requires admin permissions.
Admin Only: Only users with admin roles (DIRECTOR, GERENTE) can update users.
Path Parameters
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.
User role: DIRECTOR, GERENTE, COMERCIAL, CSV, OPERACIONES, or ADMINISTRACION
New password (only include if changing password)
Whether the user account is active
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
}