Record a notebook entry
record_entryRecords a farm task in the field notebook with an audit trail. Requires a write-scoped key and user confirmation; only adds new entries, not for official submission.
Instructions
Register a task in the farm's field notebook (needs a key with write scope). The entry is attributed to the key owner and marked as written by API in the audit trail; the server stores when it arrived and rejects future dates. It only adds new entries: it never edits or deletes existing ones. Confirm the farm, parcel, product and date with the user before calling it. Official submission to the administration is never done here: it needs a person's session in the app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Unit, e.g. 'L/ha', 'kg', 'mm' | |
| title | Yes | Short title, e.g. 'Tratamiento · Azufre mojable' | |
| farm_id | Yes | Farm id from list_farms | |
| event_at | Yes | When it happened (ISO 8601 with offset) | |
| quantity | No | Quantity applied | |
| crop_code | No | EPPO crop code, e.g. OLVEU | |
| cost_cents | No | Cost in euro cents | |
| entry_type | Yes | Kind of task | |
| safety_days | No | Pre-harvest interval in days | |
| product_name | No | Product or input used | |
| parcel_refcat | Yes | Cadastral reference of the parcel | |
| treated_area_ha | No | Treated area in hectares | |
| registration_number | No | Official registration number of the product (fito) |