Update a notification rule

Replace the rule configuration, including all targets, event selections, and destinations. Destinations are recreated and their prior delivery records are removed. For an existing webhook, provide its destination ID and set preserveSecret to true to retain its signing secret when secret is omitted. Requires a bearer session or personal access token belonging to an enterprise administrator. Results are scoped to that enterprise.

Path Params
integer
required
≥ 1

The notification rule ID.

Body Params
string
required
length ≥ 1
string
boolean
Defaults to true
targets
array of objects
required
length ≥ 1
targets*
string
enum
required
Allowed:
string | integer
required

The enclosure serial number for a device or the CMP group ID for a group.

eventSelections
array of objects
required
length ≥ 1
eventSelections*

At least one notification state must be enabled for each event selection.

integer
required

Use a code from notification reference data.

boolean
Defaults to true
boolean
Defaults to false
destinations
array of objects
required
length ≥ 1

Provide at least one enabled destination. Duplicate destinations are rejected.

destinations*
integer
string
enum
required
Allowed:
string
required
length ≥ 1
boolean
Defaults to true
config
object
required
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json