Create a monitor
/api/v1/programs/{program_uuid}/monitors
operationId: monitor.create
Base: https://portal.watcheye.com.au/api/v1/programs/{program_uuid}/monitors
Create a new monitor in the given program. The monitor_check_type is fixed at
creation - to change a monitor's operation type, delete it and create a new one.
Configuration
The config object is per-operation. Its shape is whatever the chosen
monitor_check_type expects. The full list of configuration keys, allowed values and
defaults for every operation type is documented in the
Monitor Configuration section
of the API guide. Any required config keys missing from your request will produce a
400 with the relevant validation errors.
Idempotency
This endpoint accepts the Idempotency-Key header so that retries on network failure
are safe. See the Idempotency section of
the API guide for the full contract.
Path parameters
| Field | Description |
|---|---|
program_uuidrequired |
string (uuid) The program UUID |
Header parameters
| Field | Description |
|---|---|
Idempotency-Key |
string [max 255 characters] Optional client-generated key (typically a UUID) that lets you safely retry a write
request without risk of duplicate work or duplicate billing. A retry with the same key
and body returns the original response verbatim, with the Honoured on |
Request body
Content type application/json.
The monitor details
| Field | Description |
|---|---|
monitor_namerequired |
string [3..255 characters] |
monitor_check_typerequired |
string The screening operation to run. Must be one of the operation types enabled on the calling account. |
statusrequired |
string |
schedulerequired |
string |
config |
object (dynamic) Per-operation configuration; see the Configuration section above. |
Responses
Monitor created
application/json
| Field | Description |
|---|---|
data |
object A monitor is a scheduled (or manual) screening job that runs a single screening operation (PEP/sanction, ASIC, address verification, etc.) against the entities in its parent program. The operation type is fixed at creation; only configuration, name, status and schedule can be changed after that. |
data. |
string (uuid) The monitor's UUID |
data. |
string A short obfuscated public identifier for the monitor (e.g. "M-12-34-56") |
data. |
string The display name of the monitor |
data. |
string The screening operation this monitor runs. Cannot be changed after creation - create a new monitor instead. The list of allowed values depends on the products enabled on the calling account. |
data. |
string Human-readable name for |
data. |
string Lifecycle status:
|
data. |
string or null In-flight run state, or
Callers polling after |
data. |
string or null Optional human-readable detail accompanying |
data. |
string How often the monitor runs unattended. |
data. |
string or null Human-readable description of the schedule (e.g. "Every Day (Mon-Sun)") |
data. |
object (dynamic) Per-operation configuration. The shape depends on |
data. |
string (date-time) or null ISO 8601 timestamp of the most recent run, or |
data. |
boolean
|
data. |
string (uuid) UUID of the program this monitor belongs to |
data. |
string (date-time) ISO 8601 timestamp at which the monitor was created |
data. |
string (date-time) ISO 8601 timestamp at which the monitor was last updated |
api_reference |
string (uuid) |
Conflict - a request with this Idempotency-Key is currently being processed
application/json
| Field | Description |
|---|---|
message |
string |
Idempotency-Key was reused with a different request body
application/json
| Field | Description |
|---|---|
message |
string |