Replace Push Notification
replace_push_notificationReplace a Push Notification that was already sent, using the notification_id returned by send_push_notification.
The replacement takes the old notification's place on the Lock Screen and in Notification Center, so the user does not end up with two. It arrives silently: no sound and no screen wake. Use it to update a Push Notification you already sent, for example when an incident you alerted on is resolved.
Replacement content fully replaces the old title, subtitle, message, redirection, media, icon, actions, and payload. Omitted metadata and tags keep their stored values. The notification goes to the same recipients as the original. History is updated in place.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | Optional HTTPS image URL, such as a logo or avatar, shown next to a smaller ActivitySmith app icon. | |
| tags | No | Optional account tags. Omit to keep the stored tags; [] clears them. | |
| badge | No | Optional app badge count. | |
| media | No | Optional HTTPS image, audio, or video URL. Can be combined with redirection, but not with actions. | |
| title | Yes | Replacement Push Notification title. | |
| actions | No | Optional expanded notification actions, up to 4. open_url actions accept HTTP/HTTPS URLs or installed apps' custom URL schemes, such as spotify:// or shortcuts://run-shortcut?name=Example. webhook actions call an HTTPS endpoint with optional GET or POST method and optional JSON body. Do not combine actions with media. | |
| message | No | Optional replacement message body. | |
| payload | No | Optional custom JSON payload delivered with the replacement. | |
| metadata | No | Optional app-only details with the same limits as send_push_notification. Omit to keep the stored metadata; {} clears it. | |
| subtitle | No | Optional replacement subtitle. | |
| redirection | No | Optional normal-tap target. Use an HTTP/HTTPS URL or an installed app's custom URL scheme, such as spotify:// or shortcuts://run-shortcut?name=Example. Custom app schemes require iOS app 1.13.4 build 2 or later. No web fallback. | |
| notification_id | Yes | notification_id returned when the Push Notification was sent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| success | Yes | ||
| timestamp | Yes | ||
| users_notified | Yes | ||
| notification_id | Yes | ||
| devices_notified | Yes | ||
| effective_channel_slugs | Yes |