Edits an existing fleet record in place; the vehicle id and the technicians who use it are untouched.
Partial update: omit a field to KEEP its current value, send "" to CLEAR an optional text field (brand, model, plate_number). Exceptions: `name` rejects "" because a vehicle must stay identifiable, and `vehicle_type` (van, truck, car) and `status` (inactive, idle, on_job, maintenance) must be valid enum values when present; an empty string there is a 400. `owner_id`: omit to keep the current owner, "" to unclaim, or a UUID to reassign; the new owner must be a lead or management profile (VEHICLE_OWNER_TIER_NOT_ALLOWED otherwise).
Use this for corrections and odometer updates, and set `status` to maintenance or inactive when a vehicle is temporarily out of service so it stays in the fleet. To change which technicians may use it, call replaceTechnicianVehicles; to take it out of the fleet for good, call deleteVehicle.
Argumentos
idstringpathobligatorio
Vehicle ID
brandstringbodyopcional
nil = keep; "" clears the field.
current_mileageintegerbodyopcional
modelstringbodyopcional
namestringbodyopcional
nil = keep. min=1 rejects an explicit "" (a vehicle needs a name);
omitempty is what lets a nil pointer skip validation entirely.
owner_idstringbodyopcional
nil = keep the current owner; "" clears it; a UUID sets it.
plate_numberstringbodyopcional
statusenumbodyopcional
vehicle_typeenumbodyopcional
nil = keep; a non-nil value must be a known enum member.