Create an alert threshold
/alerts The alert watches the moisture of the module’s summary curve. The key’s user is its first recipient. ⚠️ Only alerts carrying a moduleId are evaluated.
Headers
-
Idempotency-KeystringReplays the same 2xx response (24 h)
Request body
-
moduleIdintegerModule to watch.
-
parcelIdintegerParcel. ⚠️ Without a
moduleId, the alert is never evaluated. -
thresholdnumber requiredThreshold, in % volumetric moisture.
-
hysteresisnumberResolution margin, in percentage points.
-
reminderTimestringLOCAL time of the daily reminder (
HH:MM:SS), in the company’s time zone.
Response
Alert created
-
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 presentDecimal number sent as a STRING, with no loss of precision (
"11","25.5625"): to be converted client-side. -
hysteresisstring always presentDecimal number sent as a STRING, with no loss of precision (
"11","25.5625"): to be converted client-side. -
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 -
recipientsarray of AlertRecipient always presentThe key’s user, who created the alert, is automatically its first recipient.
Show 3 attributes Hide attributes
-
idstring uuid always present -
alertIdstring uuid always present -
userIdstring always presentE-mail recipient:
userIdof a member.
-
Errors
- 400
Entry refused
invalid_body - 401
Not authenticated
- 403
Insufficient scope or role, resource outside your company, or key with no user
insufficient_scopeinsufficient_roleforbidden_resourceno_user