Curve annotations
/modules/{id}/annotations Path parameters
-
idinteger required
Query parameters
-
chartTypestringCurve whose annotations you want (see
AnnotationChartType).tensionis still accepted fortensio.
Response
Annotations of the curve, oldest to most recent, all units together: each one carries its unit
-
dataarray of Annotation always presentA drawing laid over a hub curve: line, area or text. It belongs to its curve (
chart_type) and to the unit it was drawn in (unit). Anh-linewhosestyle.fillisthreshold1orthreshold2is an agronomic threshold (field capacity, wilting point), always invwc; on thehumiditycurve, the second one arms an alert.Show 14 attributes Hide attributes
-
idstring uuid always present -
module_idinteger always present -
probe_idany nullable always presentDeprecated: always
null. -
chart_typestring always presentHub curve the annotation belongs to.
humidity: the summary curve, weighted moisture — this is the one carrying the agronomic thresholds.humidity-detail: moisture per depth.humidity-heatmap: heat map.temperature: temperature.tensio: tensiometer probe (tensionis still accepted on input). -
typestring always presentShape of the drawing, as the hub’s tools draw it:
h-line(horizontal line),v-line(vertical),segment,ray(half-line),infinite(full line),arrow,h-free,rect(area),text. Older annotations carryline. -
p1array of any always presentA point of the curve,
[instant, value]: the instant in milliseconds since 1 January 1970 UTC, the value in the annotation’s unit (unit; for moisture, % VWC by default). -
p2array of any nullable always presentSecond point, for drawings that have two.
-
unitstring nullable always presentUnit of the points’ height (
p1,p2), that is, the view of the curve the annotation belongs to: it is only shown in that unit.humidityandhumidity-detailcurves only:vwc— volumetric water content, %, the reference unit, the one used by the alert and the water status —,vwc_max— share of soil saturation, % —,mm.nullon the other curves, which have a single unit. -
contentobject always presentStyle and text of the drawing:
{ style, text }. -
user_idstring always presentAuthor:
userIdof a member (GET /company/users). -
created_atstring date-time always present -
updated_atstring date-time always present -
styleobjectCopy of
content.style, present when there is one. -
textstringCopy of
content.text, present when there is one.
-
Errors
- 400
Invalid parameter
invalid_id - 401
Not authenticated
- 403
Insufficient scope, or resource outside your company