Alerts

Update an alert

Changes an alert. filter and channelIds replace the old values. Queued digests are cancelled, as are queued sends to a removed channel or from a disabled alert.

patch/v1/alerts/{id}

Request

  • Base URL: https://api.rumoro.dev
  • URL: https://api.rumoro.dev/v1/alerts/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

The alert's id (feed_...).

Example:feed_abc123

Request body

namestring
enabledboolean
mode'instant' | 'hourly' | 'daily' | 'weekly'
eventstring nullable
channelIdsstring[]

Sets the full new list.

Response

The alert after the change

idstring required

The alert's id (feed_...).

namestring required
enabledboolean required
mode'instant' | 'hourly' | 'daily' | 'weekly' required

instant sends each matching mention as it arrives. hourly sends a digest of the previous full UTC hour at five past the hour, so the hour's last mentions are scored. It skips hours with no mention at or above the rule's relevance minimum, and works with Slack, Telegram and webhook channels only. daily sends one digest at the scheduled local time. weekly sends one digest a week on schedule.weekday.

eventstring required

The event name sent in webhook payloads. Unless you set one, it is the default for the mode.

createdAtstring required

UTC time in ISO 8601.

Changes

No recorded changes to this operation across all 1 revision of this API.