Skip to main content
The Fleets and Vehicles sections let you build and maintain the full operational inventory: fleet containers first, then vehicles assigned to each fleet.

Fleets

Creating a fleet

1

Open the Fleets section

Click Fleets in the left sidebar. The fleet form appears on the left side of the screen.
2

Fill in the fleet details

Complete the form fields:
FieldRequiredDescription
NombreYesDisplay name for the fleet (e.g., “North Region”)
DescripciónNoOptional free-text description of the fleet’s purpose or territory
Admin IDYesDefaults to 1 (the seeded admin). Change this if you are assigning ownership to a different admin user
3

Save the fleet

Click Crear flotilla. The new fleet appears immediately in the table on the right.

Editing a fleet

In the fleet table, click Editar on the row you want to change. The form on the left switches to edit mode and pre-fills with the fleet’s current values. Make your changes and click Actualizar flotilla to save. To cancel without saving, click Cancelar.

Deleting a fleet

Click Eliminar on the row you want to remove. The fleet is deleted immediately.
Deleting a fleet is permanent. Any vehicles associated with that fleet remain in the system but lose their fleet assignment. Reassign them before deleting the fleet if you need to preserve the association.

Vehicles

Adding a vehicle to a fleet

1

Open the Vehicles section

Click Vehicles in the left sidebar. The vehicle registration form appears on the left side.
2

Select a fleet

Choose the target fleet from the Flotilla dropdown. The list is populated from all existing fleet records.
3

Enter vehicle details

Complete the remaining fields:
FieldRequiredNotes
MarcaYesVehicle brand (e.g., Ford, Toyota)
ModeloYesModel name (e.g., Ranger, Hilux)
AñoNoModel year, selectable from 1980 to the current year
PlacaYesLicence plate; automatically converted to uppercase on save
Estado de licenciaNoactive or expired — defaults to active
4

Save the vehicle

Click Guardar vehículo. The vehicle record appears in the table.
Additional fields — odometer unit, maintenance interval, insurance expiry date, and document uploads — are managed via the backend API rather than through the desktop form. Use the API directly or a complementary admin interface for those fields after creating the vehicle record.

Full vehicle field reference

The following fields are stored on each vehicle record. Some are only editable via the API.
FieldTypeDescription
brandstringVehicle manufacturer
modelstringModel name
yearintegerModel year
licensePlatestringUnique licence plate (stored uppercase)
licenseStatusactive | expiredOperational licence validity state
odometerUnitkm | miUnit used for odometer readings and maintenance intervals
maintenanceIntervalintegerDistance between mandatory maintenance events (default: 5000)
insuranceExpirydateInsurance policy expiry date (YYYY-MM-DD)
insuranceDocUrltextPath to uploaded insurance document
registrationDocUrltextPath to uploaded registration document

Uploading vehicle documents

Two document types can be attached to a vehicle: an insurance document and a registration document. Both accept image files or PDFs.
Send a multipart/form-data PATCH request to the vehicle update endpoint and include the file under the field name insurance_doc. The backend saves the file to uploads/vehicles/ and stores the resulting path in insuranceDocUrl.
If you submit an update without including a file, the existing document URL is preserved. To explicitly clear a document, pass an empty string for insuranceDocUrl or registrationDocUrl in the request body.

Understanding licenseStatus and insuranceExpiry

These two fields have direct operational implications:

licenseStatus

Indicates whether the vehicle’s operating licence is currently valid. A status of expired is surfaced in the dashboard as a warning and counted in the “vehicles with expired licence” sub-metric. Technicians should not be assigned to vehicles with an expired licence status.

insuranceExpiry

The date on which the vehicle’s insurance policy expires. When this date passes, the vehicle is effectively uninsured. Monitor this field to schedule policy renewals before the expiry date. The date is stored as YYYY-MM-DD.

Filtering vehicles by fleet

The Vehicles section displays all vehicles by default. To narrow the list to a specific fleet, the backend supports a fleetId query parameter on the vehicles endpoint. Append ?fleetId=<id> to the API call to retrieve only the vehicles belonging to that fleet.

Editing and deleting vehicles

In the vehicle table, click Editar to load the vehicle’s current values into the form on the left. Update the fields and click Actualizar vehículo to save. Click Cancelar to discard changes. Click Eliminar to permanently delete a vehicle record.
Deleting a vehicle removes all associated assignments, inspection reports, and maintenance records. This action cannot be undone.

Build docs developers (and LLMs) love