v1

latestOpenAPI 3.0.0Proprietary2026-08-06130577659.7 KB
Maintenance|Maintenance Log

Create/Update maintenance logs.

This method can be used to create and update maintenance logs.

An effort is made to locate an existing maintenance log using the selected primary key. If found, it will be modified, whereas if no maintenance log is found, a new one is created. You can enable the dryRun setting to simulate the action without altering any live data.

post/maintenance_log/upsert

Request body

dryRunboolean

Simulate the operation. (No records will be created or changed) This Parameter is optional.

Example request

{
  "records": [
    {
      "data": {
        "date": "2015-02-20"
      }
    }
  ]
}

Response

Success Response:

Example response

{
  "createdMaintenanceLogs": [
    {
      "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"
      },
      "date": "2015-02-20"
    }
  ],
  "updatedMaintenanceLogs": [
    {
      "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"
      },
      "date": "2015-02-20"
    }
  ],
  "deletedMaintenanceLogs": [
    {
      "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"
      },
      "date": "2015-02-20"
    }
  ]
}