amend_trip_link
Update a trip link you already built — add legs, replace them, rename, or drop one — and get the new link back. Use this instead of building a fresh link every time the plan changes, so the person holds one link that grows. Takes a draft link (#d=) plus the changes; no network, no password, the trip is inside the link. For a KEPT trip (#k=) use add_to_kept_trip.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Legs to APPEND after the last one. | |
| legs | No | REPLACES every leg. Omit to keep them. | |
| link | Yes | The existing draft link, whole URL or just the #d= fragment. | |
| name | No | New trip name. | |
| origin | No | New starting point. | |
| remove | No | Drop leg number N (1-based). Applied after add/legs. |