Skip to main content
POST
Update a webhook subscription

Authorizations

Authorization
string
header
required

API token for authentication

Body

application/json

A replace for what identifies the subscription — name, url and event_types are required and are written as sent — and a patch for everything that narrows it. Omitting enabled, custom_event_filters, list_ids or segment_ids leaves the stored value alone; a JSON null reads the same way. Send an explicitly empty array or object to remove a filter.

workspace_id
string
required

The ID of the workspace

Example:

"ws_1234567890"

id
string
required

The ID of the subscription to update

Example:

"whsub_a1b2c3d4e5f6"

name
string
required

Updated name

Example:

"Production Webhook Updated"

url
string<uri>
required

Updated URL

Example:

"https://api.example.com/webhooks/notifuse/v2"

event_types
string[]
required

Updated list of event types

Example:
custom_event_filters
object | null

Filters for the custom_event.* events. Omit it to leave the stored filters unchanged; send an empty object to stop filtering custom events.

list_ids
string[] | null

Lists the list.* events are narrowed to. Omit it to leave the stored filter unchanged — a body that never mentions it cannot widen the subscription — and send an empty array to remove the narrowing.

Example:
segment_ids
string[] | null

Segments the segment.* events are narrowed to. Omit it to leave the stored filter unchanged; send an empty array to remove the narrowing.

Example:
enabled
boolean

Whether the subscription is enabled. Omit it to leave the stored value unchanged; send it only to switch the subscription on or off.

Example:

true

Response

Webhook subscription updated successfully

subscription
object

A webhook subscription that receives HTTP callbacks when events occur