POST /v1/routes/by-port.description is left out, it defaults to Route from <start> (<code>) to <end> (<code>).create-route-by-unlocodecurl --location 'https://route-api.polestar-production.com/v1/routes/by-unlocode' \
--header 'Content-Type: application/json' \
--data '{
"start_port_un_locode": "NLRTM",
"end_port_un_locode": "SGSIN",
"description": "Rotterdam to Singapore",
"routing_points_to_open": [
"SUZ"
]
}'{
"meta": {
"request_id": "2f6b1c7e-9a3d-4e58-b1f2-6c7d8e9f0a1b",
"request_timestamp": "2026-11-05T10:15:30.1234567Z"
},
"data": {
"route_id": "9e8d7c6b-5a49-4382-a1b0-c9d8e7f6a5b4",
"description": "Rotterdam to Singapore",
"verified": true,
"tag": null,
"route_points": [
{
"latitude": 51.95,
"longitude": 4.14,
"position": 0,
"leg": {
"type": "Loxodrome"
},
"tag": null,
"port_codes": null,
"type": "soft"
},
{
"latitude": 1.26,
"longitude": 103.84,
"position": 1,
"leg": {
"type": "Loxodrome"
},
"tag": null,
"port_codes": null,
"type": "soft"
}
]
}
}