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
    Type✅Preventive, Corrective, Inspection, Improvement
    Realization✅Internal, External, or Both
    Status❌Planned, In Progress, Completed, Cancelled
    Material❌Equipment to maintain
    Start date❌Planned intervention date
    Operators✅Users assigned to the maintenance
    Companies✅Maintenance provider companies
    Incidents❌Related incidents to link
    Spare parts❌Parts used during maintenance
    Description✅Intervention details
  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