Declare crop + sowing date, root depth cap, or manual depth.
/modules/{id}/crop Side effect: clears the per-depth weights entered by hand (back to automatic computation).
Two exclusive modes: crop (cropId + plantingDate, plus zrCapCm if needed) or manual (manualZrCm). The declaration replaces the active crop; the previous one is closed, never erased.
Path parameters
-
idinteger required
Headers
-
Idempotency-KeystringReplays the same 2xx response (24 h)
Request body
-
cropIdintegerCrop:
codefromGET /reference/crops. Exclusive withmanualZrCm. -
plantingDatestring datePlanting or sowing date. Required with
cropId. -
manualZrCmnumberManual mode: root depth in cm, > 0. Exclusive with
cropId. -
zrCapCmnumberRoot depth cap in cm (crop mode only): Zr = min(species Zr, zrCapCm). For a plot where a water table, a plough pan or bedrock truncates rooting.
-
notesstring
Response
Declaration recorded
-
successboolean always present -
rowobject always presentShow 2 attributes Hide attributes
-
idinteger always presentThe declaration created:
idofGET /modules/{id}/crop. -
timestamp_startstring date-time always present
-
Errors
- 400
Entry refused
invalid_idinvalid_body - 401
Not authenticated
- 403
Insufficient scope/role, or outside your company