Save a usual train journey
save_commuteSaves or updates one direction of a usual train journey (a commute) in the person’s Untap account: stations, usual departure time, travel days and day-ticket fare. An outward and a homeward journey are two separate routes. Saving the same route and time again updates it. Nothing is checked automatically; a saved route is checked only on request. Day tickets only; season tickets are not supported. Requires sign-in to Untap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Arrival station name or three-letter code. | |
| from | Yes | Departure station name or three-letter code. | |
| label | No | Optional short name such as Morning commute. | |
| weekdays | No | Usual travel days: Monday=1 through Sunday=7. Informational only; no automatic checks. | |
| commute_id | No | The id of an existing commute in this account, to update or restore it. When left out, a new route is saved. | |
| ticket_type | No | Day ticket type. For return, the price is the whole return fare. Season tickets are not supported by saved commutes. | single |
| departure_time | Yes | Usual UK departure time, for example 08:05 or 8am. | |
| ticket_price_pence | No | Usual day-ticket price in pence, £24.50=2450. Optional, for when the fare is known and stays the same. A day-ticket price, not a weekly or monthly season price. |