Update flight alert settings
update_flight_trackingUse to change how a tracked route alerts: the alert rule, a target price, or the email and text channels. Only the fields given change. Confirm first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Send alerts by text message. Needs a verified phone on the SlickTrip account; empty keeps the account's setting. | |
| No | Send alerts by email. Empty keeps the account's setting. | ||
| alert_rule | No | When to alert: lowest = only a new low, any = every price move, none = off. Leave empty for the default, or give target_price_usd instead. | |
| search_key | Yes | The route's search_key from list_tracked_flights. | |
| target_price_usd | No | Alert when the price goes under this, USD. Replaces alert_rule. It is the TOTAL: the whole trip for all travelers on a flight, the whole stay on a hotel. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | On an error: a machine-readable kind, e.g. unknown_place | |
| note | No | Text alerts need a verified phone | |
| field | No | On unknown_place: which argument (origin, destination, ...) | |
| status | No | updated | error | sign_in_required | |
| message | No | Error or sign-in message from the server wrapper | |
| channels | No | {email: boolean, text: boolean} stored channels | |
| manage_url | No | slicktrip.com saved-flights page link | |
| search_key | No | The updated route's search key | |
| alerts_when | No | When alerts fire, from the alert preference | |
| suggestions | No | On unknown_place: places to offer the traveler, each with code, name, kind (airport, all airports in the city, nearby airport), city, country | |
| places_assumed | No | Place names this call resolved on its own, e.g. 'Portland = Portland, OR (PDX)'; tell the traveler | |
| text_not_enabled | No | Text asked but no verified phone | |
| text_unconfirmed | No | Could not confirm text-alert status |