route_id.routing_points_to_open or routing_points_to_close is left out or empty, the defaultGET /v1/routingPoints), and a code must not appear in both lists.KIE), also send routing_points_to_close withSUZ),routing_points_to_open with every default-open point except that one. Use thedefault_state from GET /v1/routingPoints to build the lists.description you send is ignored. The route is always described as Route from <start> to <end>.create-route-by-portcurl --location 'https://route-api.polestar-production.com/v1/routes/by-port' \
--header 'Content-Type: application/json' \
--data '{
"start_port_name": "Rotterdam",
"end_port_name": "Singapore",
"routing_points_to_open": [
"SUZ"
],
"routing_points_to_close": [
"PAN"
]
}'{
"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": "Route from 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"
}
]
}
}