Maintenance Plans
Create a maintenance plan
Changed onpost/maintenanceplans
Request
- Base URLhttps://api.getmaintainx.com/v1
- AuthHTTP bearer
Query parameters
skipWebhookboolean
Set skipWebhook=true, skipWebhook=1 or skipWebhook=yes to skip all webhooks upon successful operation on the endpoint. Learn more about webhooks
Headers
x-organization-idinteger
Required if using a multi organizations token
Request body
Example request
{
"name": "Weekly Conveyor Belt Inspection",
"startDate": "2022-01-01T00:00:00.000Z",
"workOrderBlueprintId": 10,
"workOrderStartDatePadding": 48,
"workOrderStartDateOffset": {
"value": 2,
"unit": "DAY"
},
"planningHorizon": {
"value": 3,
"unit": "WEEK"
},
"triggerType": "CALENDAR",
"intervalStrategy": "FIXED",
"meterId": 123,
"meterTriggerCondition": "INCREASED_BY",
"meterIntervalValue": 5000,
"meterHorizonValue": 1000,
"meterNextDueValue": 10000,
"meterGenerationStartOffset": {
"value": 2,
"unit": "DAY"
},
"meterGenerationDueOffset": {
"value": 4,
"unit": "DAY"
},
"planAssets": [
{
"assetId": 100
}
],
"intervals": [
{
"interval": 3,
"workOrderBlueprintId": 50
}
],
"nextCycleOccurrence": 2
}Response
Successfully created the maintenance plan.
Example response
{
"id": 1
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
- info
added
subschema #5: Periodicallyto therequest propertyoneOflist
- info