curl --request POST \
--url https://api.maalbar.dk/logistics/routes \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"fromTransportLocation": {
"publicId": "trl_xxxxxxxxxxxx"
},
"toTransportLocation": {
"publicId": "trl_xxxxxxxxxxxx"
},
"transportRouteLegs": [
{
"distance": 123,
"emptyReturnFactor": 0,
"isCargoLoadedOnPallets": true,
"method": {
"publicId": "trn_xxxxxxxxxxxx"
},
"order": 123,
"note": "<string>"
}
]
}
'