Maintenance
Endpoints
- GET /api/maintenance/history/(target_type)/(int: target_id)
Get the maintenance history for a machine or piece of equipment.
- Parameters:
target_type –
Machine
orEquipment
target_id – machine or equipment ID
- Query Parameters:
start (int) – (optional) get entries on or after this UNIX timestamp
end (int) – (optional) get entries on or before this UNIX timestamp
- Response JSON Array of Objects:
maintenance_entries – list of maintenance entries within the selected time range
issues – list of issues with start or end times overlapping the selected time range
- Status Codes:
400 Bad Request – if the target type is invalid
404 Not Found – if the target ID is invalid