Maintenance

Endpoints

GET /api/maintenance/history/(target_type)/(int: target_id)

Get the maintenance history for a machine or piece of equipment.

Parameters:
  • target_typeMachine or Equipment

  • 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: