$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "currentItems": [
< {
< "flightKey": "AA-JFK-LAX-1",
< "origin": "JFK",
< "destination": "LAX",
< "carrier": "AA",
< "seats": 220,
< "date": "2026-10-01"
< },
< {
< "flightKey": "AA-JFK-LAX-2",
< "origin": "JFK",
< "destination": "LAX",
< "carrier": "AA",
< "seats": 220,
< "date": "2026-10-01"
< },
< {
< "flightKey": "DL-JFK-LAX-1",
< "origin": "JFK",
< "destination": "LAX",
< "carrier": "DL",
< "seats": 180,
< "date": "2026-10-01"
< }
< ],
< "previousItems": [
< {
< "flightKey": "AA-JFK-LAX-1",
< "origin": "JFK",
< "destination": "LAX",
< "carrier": "AA",
< "seats": 180,
< "date": "2026-09-01"
< },
< {
< "flightKey": "DL-JFK-LAX-1",
< "origin": "JFK",
< "destination": "LAX",
< "carrier": "DL",
< "seats": 180,
< "date": "2026-09-01"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/quanmatrix~airline-route-capacity-change-intelligence/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'