How to create a replacement-based preventive maintenance?
This method allows to create a preventive maintenance based on a replacement criterion in a simplified manner. The method to be used when creating a preventive maintenance based on a replacement criterion: POST url/api/mytenant/myorganization/maintenance/preventivemaintenances Json example for creating a preventive maintenance: 1. { "preventiveMaintenanceKey": "PM-0001", "description": "Preventiva planos de substituição", "remarks": null, "projectionEndDate": "2021-12-18T00:00:00", "joinPlans": true, "timeZoneId": "GMT Standard Time", "workOrderType": "MP", "workshop": "MN", "responsible": "0006", "assetType": 1, "parentLocation": null, "location": "AUD", "equipment": null, "tool": null, "maintenanceRoute": null, "priorityLevel": "N", "company": "DEMO", "preventiveMaintenancePlans": [ { "recurrenceConfig": "{"timeZoneOffsetMinutes":60,"repeatType":"monthly","repeatEvery":1,"startHour":"2021-08-19T23:00:00.000Z","startDate":"2021-08-19T23:00:00.000Z","endType":"withoutenddate","endCount":0,"endDate":null,"week":{"repeatSun":false,"repeatMon":false,"repeatTue":false,"repeatWed":false,"repeatThu":false,"repeatFri":false,"repeatSat":false},"month":{"repeatMonthType":"onthe","repeatMonthDayNumber":0,"repeatMonthDayRule":"first","repeatMonthDay":"Mon"}}", "advanceTolerance": 1, "delayTolerance": 1, "events": 0, "replacementStart": 0, "interval": null, "startValue": null, "meterAverage": null, "meterStartValue": null, "maintenancePlan": "MP-000001_1", "operatingState": null, "replacementCriteria": 1, "mainMaintenancePlan": null, "meter": null, "expectedDuration": null }, { "recurrenceConfig": null, "advanceTolerance": 1, "delayTolerance": 1, "events": 4, "replacementStart": 0, "interval": null, "startValue": null, "maintenancePlan": "MP-000012_1", "operatingState": null, "replacementCriteria": 3, "mainMaintenancePlan": "MP-000001_1", "meter": null,< This method allows to create a preventive maintenance according to the parameters filled in: