Allows to accept monitoring task and assign vehicle, semitrailer and driver (executor) in two ways – by sending their id’s or typing text.

You  can get account_id using method described here.
Values ​​such as vehicle and semitrailer id can be found in the fleet.

If you don’t have driver or vehicle registered, you can send a request using executor name and plate numbers (send as plain text).

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.

Url parameters and connection settings

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

Headers

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

Request

Example of request for accept monitoring task using id’s:

{
   "vehicle":{
      "is_tracked":true,
      "vehicle_id":242499
   },
   "semitrailer":{
      "is_tracked":true,
      "vehicle_id":242499
   },
   "executor":{
      "is_tracked":true,
      "account_id":242499
   }
}

Example of request for accept monitoring task using plain text:

{   
   "executor":{
      "is_tracked":false,
      "name":"Tomasz Nowak"
   },
   "vehicle":{
      "is_tracked":false,
      "registration_plate_number":"DWR123XYZ"
   },
   "semitrailer":{
      "is_tracked": false,
      "registration_plate_number":"DWR123ABC"
   }
}