Maintenance types
Maintenance types are named categories used to classify preventive maintenance work. Examples include “Oil Change”, “Tire Rotation”, and “Brake Inspection”. You must create at least one type before assigning preventive maintenance to a vehicle.Creating a maintenance type
Open the Maintenance section
Click Maintenance in the left sidebar. The type form appears in the top-left area of the screen.
Enter the type details
| Field | Description |
|---|---|
| Nombre | Name of the maintenance category (e.g., “Oil Change”) |
| Descripción | Optional description of the work involved |
Editing a maintenance type
Click Editar on the type row. The form switches to edit mode with the current values pre-filled. Make your changes and click Actualizar tipo. Click Cancelar to discard changes.Deleting a maintenance type
Click Eliminar on the type row to permanently remove the category.Assigning maintenance to a vehicle
Preventive vs. mandatory maintenance
Understanding the distinction between the two maintenance modes is important before creating records:Preventive maintenance
Scheduled by maintenance type. Each record is linked to a specific type (e.g., “Oil Change”) and tracks when the service was last performed and when it is next due — either by date or by odometer reading. Multiple preventive records can exist for the same vehicle, one per type.
Mandatory maintenance
Not linked to a named type. A mandatory record represents a vehicle-level service threshold based on the vehicle’s
maintenanceInterval (default: 5,000 units). When the vehicle’s current mileage meets or exceeds the next due mileage, or the next due date has passed, the record’s isDue flag becomes true. Mandatory maintenance that is due blocks inspection submissions until it is completed.Assigning preventive maintenance
Locate the assignment form
On the right side of the Maintenance screen, find the Asignar mantenimiento a vehículo form.
Select the vehicle
Choose the target vehicle from the Vehículo dropdown. Vehicles are listed by licence plate, brand, and model.
Select the maintenance type
Choose a category from the Tipo de mantenimiento dropdown. This links the record to a specific named service.
Set the schedule
| Field | Description |
|---|---|
| Último kilometraje | Odometer reading when the service was last performed (defaults to 0) |
| Próxima fecha | Date when the service is next due, in YYYY-MM-DD format |
| Próximo kilometraje | Odometer reading at which the service is next due |
Assigning mandatory maintenance
Mandatory maintenance is assigned via the API withisPreventive set to false. No maintenance type is required.
nextDueMileage is omitted, the system calculates it automatically as lastPerformedMileage + vehicle.maintenanceInterval.
Each vehicle should have at most one mandatory maintenance record active at a time. When you complete a mandatory record, update it rather than creating a new one.
Completing a maintenance record
When a technician finishes a service, record the completion so the system can recalculate the next due interval. Send aPOST request to the maintenance completion endpoint:
| Field | Required | Description |
|---|---|---|
completedDate | Yes | Date the service was performed (YYYY-MM-DD) |
completedMileage | Yes | Odometer reading at completion |
workshopSuggestedDate | No | Next due date suggested by the workshop; overrides the stored nextDueDate |
completionNotes | No | Free-text notes about the work performed |
- Preventive records:
nextDueMileageretains its stored value (it was set when the record was assigned). - Mandatory records:
nextDueMileageis recalculated ascompletedMileage + vehicle.maintenanceInterval.
Removing a maintenance record
To delete a maintenance record, send aDELETE request to the record’s endpoint. This removes the schedule entirely; the vehicle’s maintenance history will no longer include this entry.
Viewing upcoming mandatory maintenance
The backend dashboard endpoint returns the 10 nearest upcoming mandatory maintenance events, ordered bynextDueDate ascending:
upcomingMandatory array. Each item contains the full vehicle record and the associated maintenance type (if any), giving you an at-a-glance view of which vehicles need attention soonest.
Maintenance calendar
The right side of the Maintenance screen shows an operational calendar (Calendario operativo) that lists allVehicleMaintenance records associated with your vehicles. Each entry displays the vehicle and its next due date. Use this view to plan workshop schedules and avoid inspection blocks caused by overdue mandatory maintenance.