curl --location 'https://us-prod.notte.cc/functions/c1ed419c-ac86-47a6-a6fa-4a216e01d0d1/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "c1ed419c-ac86-47a6-a6fa-4a216e01d0d1",
"variables": {
"region": "europe",
"country": "denmark"
}
}'
{
"url": "<string>",
"count": 0,
"region": "<string>",
"routes": [
{
"url": "<string>",
"legs": [
{
"to_port": "<string>",
"sequence": 0,
"from_port": "<string>",
"transit_time": "<string>"
}
],
"name": "<string>",
"slug": "<string>",
"end_port": "<string>",
"short_slug": "<string>",
"start_port": "<string>",
"port_sequence": [
{
"arrives": "<string>",
"departs": "<string>",
"port_url": "<string>",
"sequence": 0,
"port_name": "<string>",
"location_id": "<string>",
"region_slug": "<string>",
"country_slug": "<string>",
"transit_time": "<string>"
}
],
"route_collection": "<string>",
"route_collection_slug": "<string>"
}
],
"country": "<string>",
"country_name": "<string>"
}