Skip to content

Create a maintenance

Maintenances allow you to track planned or completed interventions on equipment.

TypeDescription
PREVENTIVERegularly scheduled maintenance
CORRECTIVERepair following a breakdown
INSPECTIONRoutine inspection and check
IMPROVEMENTEquipment upgrade or enhancement
PREDICTIVEBased on data analysis (Not yet implemented)
StatusDescription
SCHEDULEDPlanned, not started
IN_PROGRESSCurrently in progress
COMPLETEDSuccessfully completed
CANCELLEDCancelled
StatusDescription
INTERNALPerformed by internal team
EXTERNALPerformed by external contractor
BOTHPerformed by both internal and external
  1. Access the Maintenances module

    From the sidebar, click Maintenances.

  2. Click “New maintenance”

  3. Select the equipment

    Choose the relevant equipment from the list.

  4. Fill in the information

    FieldRequiredDescription
    TypePreventive, Corrective, Inspection, Improvement
    RealizationInternal, External, or Both
    StatusPlanned, In Progress, Completed, Cancelled
    MaterialEquipment to maintain
    Start datePlanned intervention date
    OperatorsUsers assigned to the maintenance
    CompaniesMaintenance provider companies
    IncidentsRelated incidents to link
    Spare partsParts used during maintenance
    DescriptionIntervention details
    ReasonReason for the maintenance
  5. Save

    The maintenance is created with SCHEDULED status.

SCHEDULED → IN_PROGRESS → COMPLETED
CANCELLED
POST /api/v1/maintenances
{
"material_id": 1,
"type": "PREVENTIVE",
"scheduled_at": "2024-02-15T09:00:00Z",
"description": "Annual compressor service",
"company_id": 5
}
{
"data": {
"id": 1,
"material": {
"id": 1,
"name": "Compressor A1"
},
"type": "PREVENTIVE",
"status": "SCHEDULED",
"scheduled_at": "2024-02-15T09:00:00Z",
"description": "Annual compressor service",
"company": {
"id": 5,
"name": "Tech Services Inc"
},
"created_by": {
"id": 1,
"full_name": "John Doe"
}
}
}
PATCH /api/v1/maintenances/{id}
{
"status": "IN_PROGRESS",
"started_at": "2024-02-15T09:30:00Z"
}
{
"status": "COMPLETED",
"completed_at": "2024-02-15T14:00:00Z",
"notes": "Replaced air filter and checked oil level."
}
ActionPermission
View listmaintenance.viewAny
View a maintenancemaintenance.view
Createmaintenance.create
Modifymaintenance.update
Deletemaintenance.delete