Allows to update monitoring task. With this method, you can update the following values: office_id, spots and info.
You can only change monitoring data for monitorings in status — “waiting_for_carrier_acceptance”
Url parameters and connection settings
- URL: https://api.platform.trans.eu
- Endpoint:/ext/loads-monitoring-api/v1/monitorings/{monitoringId}
- Http Method: PATCH
Headers
- Accept: application/json
- Content-type: application/json
- Authorization: Bearer {access_token}
- Api-key: {unique_app_api-key}
Authorization
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.
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"
}
}
]
}
]
}