Update monitoring task

Allows to update mon­i­tor­ing task. With this method, you can update the fol­low­ing val­ues: office_id, spots and info.

You can only change mon­i­tor­ing data for mon­i­tor­ings in sta­tus — “waiting_for_carrier_acceptance”

Url parameters and connection settings

  • URL: https://api.platform.trans.eu
  • End­point:/ext/loads-monitoring-api/v1/monitorings/{monitoringId}
  • Http Method: PATCH

Headers

  • Accept: application/json
  • Con­tent-type: application/json
  • Autho­riza­tion: Bear­er {access_token}
  • Api-key: {unique_ap­p_api-key}

Authorization

Autho­riza­tion process is described here. Each API request must also con­sist of unique Api-key obtained dur­ing appli­ca­tion reg­is­tra­tion togeth­er with client_id and client_secret.

Request body example

{
  "spots": [
    {
      "place": {
        "address": {
          "locality": "Wrocław",
          "postcode": "50-261",
          "country": "PL",
          "street": "Testowa",
          "number": "1"
        }
      },
      "operations": [
        {
          "type": "loading",
          "time_frame": {
            "date_from": "2021-03-23T11:00:00",
            "date_to": "2021-03-23T23:00:00"
          }
        }
      ]
    },
    {
      "place": {
        "address": {
          "locality": "Wrocław",
          "postcode": "50-448",
          "country": "PL",
          "street": "Przykładowa",
          "number": "1"
        }
      },
      "operations": [
        {
          "type": "unloading",
          "time_frame": {
            "date_from": "2021-03-24T08:00:00",
            "date_to": "2021-03-24T20:00:00"
          }
        }
      ]
    }
  ]
}