Skip to main content
PATCH
Update a notification

Authorizations

Authorization
string
header
required

Clerk API key. Create one in Settings → API Keys. Pass as Authorization: Bearer <key>.

Path Parameters

id
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991

Body

application/json

Partial update — only the provided fields change.

name
string

Replace the display name. Max 191 characters.

Required string length: 1 - 191
feedId
integer

Re-point the notification at a different feed.

Required range: -9007199254740991 <= x <= 9007199254740991
enabled
boolean

Pause (false) or resume (true) the notification.

destinations
object[]

If provided, sets the destination LIST (one per type): a type present here is PATCHED onto the stored destination of that type — every field you omit keeps its current value — and a type absent from the array is removed. Omit the whole field to leave destinations untouched. An empty array is not allowed — a notification always keeps at least one destination; delete the notification instead.

Minimum array length: 1

Response

200 response

A delivery rule: mentions matching the linked feed's filters are sent to the configured destinations.

id
integer
required

Notification ID.

Required range: -9007199254740991 <= x <= 9007199254740991
name
string
required

Display name shown in the app and included in deliveries.

Example:

"Competitor mentions — Slack"

enabled
boolean
required

When false, the notification is paused and nothing is delivered.

feedId
integer
required

The feed whose filters determine which mentions trigger this notification.

Required range: -9007199254740991 <= x <= 9007199254740991
feedName
string | null
required

Display name of the linked feed.

destinations
object[]
required

Configured delivery destinations (at most one per type).

createdAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
updatedAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$