v1
latestOpenAPI 3.0.0Proprietary2026-08-06130577659.7 KBMaintenance|Maintenance
Create/Update maintenances.
This method can be used to create and update maintenances.
An effort is made to locate an existing maintenance using the selected primary key. If found, it will be modified, whereas if no maintenance is found, a new one is created. If the deleteMissing flag is set to true, all maintenances absent from the request will be deleted. Please note that removed maintenances may not be reinstated. You can enable the dryRun setting to simulate the action without altering any live data.
post/maintenance/upsert
Request body
Example request
{
"records": [
{
"data": {
"schedulerDefinition": {
"lastMaintenanceDate": "2015-02-20",
"nextMaintenanceDate": "2015-02-20"
}
}
}
]
}Response
Success Response:
Example response
{
"createdMaintenances": [
{
"tracker": {
"manufacturingDate": "2015-02-20T12:59:21+01:00"
},
"tool": {
"currentProjectChangedAt": "2015-02-20T12:59:21+01:00",
"createdAt": "2015-02-20T12:59:21+01:00"
},
"previousDate": "2015-02-20",
"nextDate": "2015-02-20"
}
],
"updatedMaintenances": [
{
"tracker": {
"manufacturingDate": "2015-02-20T12:59:21+01:00"
},
"tool": {
"currentProjectChangedAt": "2015-02-20T12:59:21+01:00",
"createdAt": "2015-02-20T12:59:21+01:00"
},
"previousDate": "2015-02-20",
"nextDate": "2015-02-20"
}
],
"deletedMaintenances": [
{
"tracker": {
"manufacturingDate": "2015-02-20T12:59:21+01:00"
},
"tool": {
"currentProjectChangedAt": "2015-02-20T12:59:21+01:00",
"createdAt": "2015-02-20T12:59:21+01:00"
},
"previousDate": "2015-02-20",
"nextDate": "2015-02-20"
}
]
}