The PATCH /api/v1/watchlist/alerts endpoint controls when and how you receive notifications for changes detected in your company monitor. You can configure a single global policy for all monitored companies, or fine-tune settings per company.
Before you start — defaults
Alerts are disabled by default for every watchlist entry. You must explicitly activate them. Per-company settings always take priority over the global configuration.
Global configuration
Omit both identifier_type and identifier_value. The settings apply to all watchlist entries that do not have individual (custom) settings. In the example below, any event at warning level or above triggers an email notification.
PATCH /api/v1/watchlist/alerts curl -X PATCH "https://api.entiway.com/api/v1/watchlist/alerts" \ -H "Authorization: Bearer sk_api_xxxx" \ -H "Content-Type: application/json" \ -d '{ "alert_min_severity": "warning", "alerts_enabled": true, "notify_via_email": true }'
{
"success": true,
"data": { "updated": 42 }
}
Global with force — overwrite all
Adding force: true to a global request overwrites even the companies that have custom per-company settings. It also resets has_custom_settings to false for every watchlist entry. Use this when you want to enforce a uniform policy across the entire watchlist.
PATCH /api/v1/watchlist/alerts -d '{ "alert_min_severity": "warning", "alerts_enabled": true, "notify_via_email": true, "force": true }'
Per-company configuration
Pass identifier_type and identifier_value to target a single company. This sets has_custom_settings: true for that entry — it will no longer be affected by future global updates unless force: true is used. In the example below, only risk and anomaly class events in the finance or status categories at severity high or above will trigger a notification.
PATCH /api/v1/watchlist/alerts -d '{ "alert_min_severity": "high", "alerts_enabled": true, "notify_via_email": true, "alert_event_classes": ["risk", "anomaly"], "alert_categories": ["finance", "status"], "identifier_type": "NIP", "identifier_value": "6842685591" }'
Parameter reference
All parameters are sent as a JSON body. Only alert_min_severity is required.
| Parameter | Type | Description |
|---|---|---|
alert_min_severity * |
enum | Required. Minimum severity that triggers an alert. Accepted: info, notice, warning, high, error, critical. |
alerts_enabled |
boolean | Enable or disable alerts. When omitted, existing value is preserved. Disabled by default. |
notify_via_email |
boolean | Enable email notifications. Disabled by default. |
alert_event_classes |
array | Limit alerts to specific event classes. Accepted: initialization, change, growth, risk, anomaly, recovery. Omit to receive all classes. |
alert_categories |
array | Limit alerts to specific data categories. Accepted: status, identity, location, ownership, activities, contacts, web_presence, finance. Omit to receive all. |
force |
boolean | When true, overwrites per-company settings and resets has_custom_settings to false for all entries. Ignored in per-company mode. |
identifier_type |
enum | Identifier type for per-company targeting: NIP, REGON9, KRS. Required together with identifier_value. |
identifier_value |
string | Identifier value of the target company. Required together with identifier_type. Max 50 chars. |
Settings priority
When a change is detected, the system resolves which alert settings to apply in this order:
- Per-company settings (
has_custom_settings: true) — always applied first. - Global settings — applied to all other entries.
- Default (disabled) — if no settings have been configured for an entry.