Get Maintenance Events
Endpoint
GET /api/mantenimiento/eventos
Query Parameters
Filter events by vehicle ID
Filter events starting from this date (ISO 8601 format: YYYY-MM-DD)
Filter events up to this date (ISO 8601 format: YYYY-MM-DD)
Response
Returns an array of maintenance events ordered by date (most recent first).Unique identifier for the maintenance event
ID of the vehicle that received maintenance
ID of the related maintenance plan (if applicable)
Date of the maintenance event (ISO 8601 format)
Odometer reading at the time of maintenance (in kilometers)
Engine hours at the time of maintenance
Description of the maintenance performed
Additional observations or notes
ID of the workshop where maintenance was performed
Cost of the maintenance service
Related maintenance plan information
Workshop information
Vehicle information
Example Response
Create Maintenance Event
Endpoint
POST /api/mantenimiento/eventos
Request Body
ID of the vehicle receiving maintenance
Date of the maintenance event (ISO 8601 format: YYYY-MM-DD)
ID of the related maintenance plan (if this event is part of a scheduled plan)
Odometer reading at the time of maintenance (in kilometers)
Engine hours at the time of maintenance
Description of the maintenance work performed
Additional observations, notes, or findings
ID of the workshop where maintenance was performed
Total cost of the maintenance service
Response
Returns the created maintenance event with related data.Unique identifier for the created event
Vehicle ID
Plan ID
Event date
Odometer reading
Engine hours
Description
Observations
Workshop ID
Cost
Related plan information
Workshop information
Example Response
Update Maintenance Event
Endpoint
PUT /api/mantenimiento/eventos/:id
URL Parameters
ID of the maintenance event to update
Request Body
All fields from the create endpoint are supported. Only include fields you want to update.Update the vehicle ID
Update the plan ID
Update the event date
Update the odometer reading
Update the engine hours
Update the description
Update the observations
Update the workshop ID
Update the cost
Response
Returns the updated maintenance event with related data.Example Response
Delete Maintenance Event
Endpoint
DELETE /api/mantenimiento/eventos/:id
URL Parameters
ID of the maintenance event to delete
Response
Returns HTTP 204 No Content on successful deletion.Get Workshops/Talleres
Endpoint
GET /api/mantenimiento/talleres
Response
Returns an array of available workshops/talleres.Unique identifier for the workshop
Name of the workshop