Edit a timeline block
update_blockEdit one timeline block: its content, badge or time, or switch it to a different layout (pass type together with a payload matching that layout). The payload replaces the old one whole, so read it with get_timeline first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Only when switching layout; payload must come with it and match. | |
| badge | No | ||
| payload | No | Replaces the old payload entirely. title / subtitle / text / caption / facts / badge are printed on the page and read by people who were not there, so write them in the traveller's language, not English. No field names or debugging traces, and no coordinates — the share page withholds those on purpose. The worked examples in learn('block_types') are written in English only to show the shape of each payload; your text goes in the traveller's language. See learn('voice'). | |
| trip_id | Yes | (must not be empty) | |
| block_id | Yes | (must not be empty) | |
| sort_key | No | ||
| tz_offset | No | ||
| occurred_at_utc | No | ||
| expected_version | Yes | The version you read. A mismatch is rejected so you cannot overwrite someone else's edit. |