Update a threshold
/alerts/{id} Only the fields sent are changed.
Path parameters
-
idstring uuid required
Headers
-
Idempotency-KeystringReplays the same 2xx response (24 h)
Request body
-
thresholdnumberThreshold, in % volumetric moisture.
-
hysteresisnumberResolution margin, in percentage points.
-
reminderTimestringLocal time of the daily reminder (
HH:MM:SS). -
isActivebooleanfalsedisables the alert,truere-enables it.
Response
Alert updated
-
idstring uuid always present -
companyIdinteger always present -
moduleIdinteger nullable always presentModule being watched.
-
parcelIdinteger nullable always presentParcel. ⚠️ Only a module’s measurements are evaluated: an alert with no
moduleIdnever fires. -
annotationIdstring uuid nullable always presentThe “wilting point” line the alert was born from (
source: annotation). Moving the line moves the threshold; deleting it disables the alert. -
thresholdstring always presentThreshold, in % volumetric moisture.
-
hysteresisstring always presentResolution margin, in percentage points: the alert resolves at
threshold+hysteresis. -
reminderTimestring always presentLOCAL time of the daily reminder (
HH:MM:SS), in the company’s time zone (timezoneofGET /company). -
sourcestring always presentmanual: created directly (POST /alerts).annotation: born from a “wilting point” line. -
isActiveboolean always presentfalse: disabled, no longer evaluated. -
createdBystring always presentCreator:
userIdof a member. -
createdAtstring date-time always present -
updatedAtstring date-time always present
Errors
- 400
Invalid body
- 401
Not authenticated
- 403
Insufficient scope/role, or outside your company