Allows to assign driver to existing monitoring task.

Authorization and access

Authorization process is described here. Each API request must also consist of unique Api-key obtained during application registration together with client_id and client_secret.

Query parameters

  • URL: https://api.platform.trans.eu
  • Endpoint: /ext/loads-monitoring-api/v1/monitorings/{monitoringId}/accept
  • Method: PATCH

Headers

  • Accept: application/json
  • Content-type: application/json
  • Authorization: Bearer {access_token}
  • Api-key: {unique_app_api-key}

Request body example:

{
  "active_devices": [
    {
      "type": "fleet",
      "is_tracked": true,
      "is_active": true,
      "details": {
        "vehicle_id": 242499
      }
    },
    {
      "type": "fleet",
      "is_tracked": false,
      "is_active": true,
      "details": {
        "vehicle_id": 243202
      }
    },
    {
      "type": "executor",
      "is_tracked": false,
      "is_active": true,
      "details": {
        "account_id": 10116374
      }
    }
  ]
}