Update a published flyer
update_flyerReplace the contents of a flyer you already published, keeping the same URL. Use this for every revision to a page that is already live — a fix, a new section, a chart the user asked you to add — so the link they may have already sent to someone keeps working and shows the new version.
Prefer this over publishing again. A second publish_flyer call mints a different URL and leaves the old page live and out of date, which is almost never what the user meant by "update it".
Needs the id and owner_token returned when it was published; there are no accounts, so that token is the only proof of ownership. Send the complete replacement document, not a patch or a fragment — the old contents are overwritten and cannot be recovered.
The expiry is left alone unless you pass ttl_hours, so editing a page does not quietly extend how long its link stays alive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The flyer id, e.g. x7Kp2mQ. | |
| html | Yes | The complete replacement HTML document, including <!doctype html>. Must be self-contained. | |
| ttl_hours | No | Optional. Reset the expiry to this many hours from now, maximum 720 (30 days). Omit to keep the flyer's existing expiry. | |
| owner_token | Yes | The owner_token returned by publish_flyer. |