Update a notification
update_messageRevise a published notification in place using its sequence ID, so subscribers see the updated text and fields without receiving another notification.
Instructions
Replaces the content of a notification already published, so subscribers see it change in place instead of receiving another one.
The sequence id is the id returned by publish_message. It only exists for cached messages: one published with "cache": false cannot be updated. Only the fields given are sent; the cache keeps each revision as its own entry pointing back at the original, which is why list_messages shows them with an "updates" field — the original keeps its old text and a second entry carries the new one.
Needs ntfy 2.16.0 or newer, and the failure below that is silent: an older server simply publishes a new notification instead of revising the old one, and answers success. If subscribers report receiving two, that is why — check get_server_info for the version.
Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | URL of a JPEG or PNG icon. | |
| tags | No | Tags as separate entries. Names that match an emoji short code (for example "warning", "rocket") are rendered as that emoji. | |
| click | No | URL opened when the notification itself is tapped. | |
| title | No | The notification title. | |
| topic | No | Its topic. Defaults to the first NTFY_TOPICS entry. | |
| actions | No | Up to 3 action buttons. An "http" action fires from the recipient's device, not from the server, and defaults to POST. | |
| message | No | The notification body. | |
| markdown | No | Render the message as Markdown in clients that support it. | |
| priority | No | 1 (min) to 5 (max), or "min"/"low"/"default"/"high"/"max". | |
| sequence_id | Yes | Id of the notification to revise, as returned by publish_message. | |
| confirm_token | No | The token from this tool’s previous, unconfirmed response. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | ||
| updated | Yes | The sequence id that was revised. | |
| revision_id | Yes | Id of the revision entry the cache now also holds. |