Update a subscription
update_subscriptionModify a flight subscription's webhook URL, events filter, delay threshold, headers, or metadata by sending only the fields to change. The flight itself cannot be changed.
Instructions
Change a subscription's webhookUrl, events filter, delayThresholdMinutes, headers or metadata. Send only the fields to change; headers and metadata replace the stored maps. The flight cannot be changed: create a new subscription for a different flight.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Subscription id, e.g. "sub_7Kd91mQx0Zb2", as returned by create_subscription or list_subscriptions. | |
| events | No | Change types to deliver; omit to deliver all 23. Common picks: "flight.departed", "flight.arrived", "flight.cancelled", "flight.diverted", "departure.gate.changed", "arrival.baggage.changed", "delay.increased". | |
| headers | No | Extra HTTP headers sent with every delivery, e.g. {"Authorization": "Bearer <receiver token>"}. | |
| metadata | No | String map echoed back in every webhook, e.g. {"bookingId": "BK-1042"}. Use it to tie deliveries to your own records. | |
| webhookUrl | No | The user's public http(s) endpoint that receives a signed POST for every change. Addresses that resolve to private, loopback or link-local ranges are refused. Never invent one. | |
| delayThresholdMinutes | No | Delay changes smaller than this many minutes are not delivered. 1 to 240; the default is 1. |