Skip to main content
PATCH
Update a condition monitor

Authorizations

x-api-key
string
header
required

Raw API key shown once when created in the Allocait app (Settings > API keys). Send it verbatim in this header; the server stores and compares only its SHA-256 hash. Allocait generates every key: alc_ followed by 64 lowercase hex characters. Keys issued before 2026-10-10 are 64 hex characters with no prefix and keep working. A key may carry an expiry (90 days or 1 year, or never). A malformed, unknown, revoked or expired key gets 401 with no further detail, and a malformed one is refused before any lookup. Keys cannot be created through this API.

Path Parameters

id
string<uuid>
required

monitor_id

Body

application/json
name
string
comparison_mode
enum<string>

At the daily close, ABOVE breaks on a close above the recorded level, BELOW on a close below it and RANGE on a close outside the range. NEAR has no close event (ADR-020).

Available options:
ABOVE,
BELOW,
NEAR,
RANGE
input_1_id
string<uuid>
input_2_id
string<uuid> | null
threshold_pct
number | null

Percent-distance warning threshold (near_high/near_low or near_level). Without it no near_* state is reported. null clears it.

conditions
object[]

Display only. The app shows each symbol as Met or Not met; no row is filtered and no event reads them. The whole list.

source_type
enum<string>
Available options:
positions,
watchlist,
single,
custom
ticker_symbol
string | null
source_watchlist_id
string<uuid> | null
custom_symbols
string[] | null

Response

The condition monitor was updated

success
boolean
monitor
object

The full monitor record, as returned by create/update; the monitor's own configuration, not its recorded levels for a resolved symbol (see ConditionMonitorData for that).