Maintenance Plans
Get maintenance plan
Changed onget/maintenanceplans/{id}
Request
- Base URLhttps://api.getmaintainx.com/v1
- AuthHTTP bearer
Path parameters
idinteger required
ID of the maintenancePlan
Response
Successfully retrieved maintenancePlan's information
Example response
{
"maintenancePlan": {
"id": 1,
"name": "Weekly Conveyor Belt Inspection",
"organizationId": 42,
"startDate": "2022-01-01T00:00:00.000Z",
"workOrderStartDatePadding": 48,
"workOrderStartDateOffset": {
"value": 2,
"unit": "DAY"
},
"workOrderStartDateFixedDay": 5,
"blueprintEstimatedTime": 60,
"triggerType": "CALENDAR",
"intervalStrategy": "FIXED",
"planningHorizon": {
"value": 3,
"unit": "WEEK"
},
"meterId": 123,
"meterTriggerCondition": "INCREASED_BY",
"meterIntervalValue": 5000,
"meterHorizonValue": 1000,
"meterNextDueValue": 10000,
"meterGenerationStartOffset": {
"value": 2,
"unit": "DAY"
},
"meterGenerationDueOffset": {
"value": 4,
"unit": "DAY"
},
"workOrderBlueprintId": 10,
"assets": [
{
"id": 1,
"assetId": 100
}
],
"intervals": [
{
"id": 1,
"interval": 3,
"workOrderBlueprintId": 50
}
],
"nextCycleOccurrence": 2,
"nextScheduledWorkOrderDueDate": "2022-01-01T00:00:00.000Z",
"lastPlannedDueDate": "2022-01-01T00:00:00.000Z",
"nextWorkOrderGenerationAt": "2022-01-01T00:00:00.000Z",
"lastWorkOrderGeneratedAt": "2022-01-01T00:00:00.000Z",
"creatorId": 5,
"createdAt": "2022-01-01T00:00:00.000Z",
"updatedAt": "2022-01-01T00:00:00.000Z",
"archivedAt": "2022-01-01T00:00:00.000Z"
}
}Changes
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info
- breaking
added
subschema #5: Periodicallyto the/response propertyoneOflist for the response status
- breaking