v1

latestOpenAPI 3.0.32026-07-24214879985.1 KB
Event Alert Rules

Updates the properties of a specific rule. Only the user defined fields can be updated by this method.

patch/eventAlertConditionRules/{id}

Path parameters

idstring required

Account ID. Use self as the Account ID to reference the account of the current session

Request body

namestring

Name for the rule

priorityinteger

Defines the priority of the alert

notesstring

A verbose explanation of the rule

enabledboolean

Whether rule is enabled

cooldownSecondsinteger

Cooldown period (in seconds). If two events for the same actor and event type have event timestamps within this duration, only the first will trigger an alert while the second event will be suppressed. A value of 0 disables the cooldown checks.

Example request

{
  "name": "Alert on Motion detection",
  "notes": "Generate alerts on Motion Detection at night.",
  "humanValidation": {
    "enabled": true,
    "service": "eenV1"
  },
  "eventFilter": {
    "eventTypes": [
      "een.lprPlateReadEvent.v1"
    ],
    "resourceFilter": {
      "actors": [
        {
          "id": "100b913c"
        }
      ]
    }
  }
}

Response

The rule is updated successfully.