This method allows you to update a time window that was previously created.
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/dock-scheduler-api/v1/warehouse/timeWindow/{id}
- Http Method: PATCH
Headers
- Accept: application/json
- Content-type: application/json
- Authorization: Bearer {access_token}
- Api-key: {unique_app_api-key}
Json example
Sample Json for updating time window using required data only
{
"valid_from": "2021-06-16",
"valid_to": "2021-06-16",
"range_type": "CYCLE",
"external_number": "123xyz",
"carrier": {
"id": 1013865
},
"route": {
"spots": [
{
"order": 1,
"warehouse_id": 29,
"operations": [
{
"operation_type": "LOADING",
"order": 1,
"belongs_to_time_window": true
}
]
},
{
"order": 2,
"address": {},
"operations": [
{
"operation_type": "UNLOADING",
"order": 1,
"belongs_to_time_window": false
}
]
}
]
}
}
Response
{
"id": 11111
}