{"openapi":"3.0.0","info":{"title":"agmeo API","version":"1.0.0","description":"\nThe Agmeo API provides comprehensive agricultural field management capabilities including:\n\n- **Field Management**: Create and manage agricultural fields with GeoJSON geometries\n- **Cultivation Tracking**: Track crop cultivations, zones, and nitrogen demand\n- **Transaction Management**: Record all field operations (tillage, planting, fertilizing, harvesting, etc.)\n- **Application Maps**: Generate variable-rate application maps for precision agriculture\n- **Templates**: Manage reusable cultivation templates\n- **Crop Rotations**: Plan and track multi-year crop rotations\n#\n## Authentication\nAll endpoints require Bearer token authentication in HTTP headers.\n\n## Rate Limiting\nThe compute-intensive **microclimate** endpoints (`/api/microclimate/**`) are rate-limited per organization\n(default 60 requests per minute, sliding window; configurable via `MICROCLIMATE_RATE_LIMIT_PER_MIN`). Microclimate\nPOST bodies are capped at 1 MiB — larger bodies return `413`. The **crop statistics** endpoints\n(`/api/maps/crops/**`) have per-organization limits per minute and per day, scaled by the API plan (see each\nendpoint). Exceeding a limit returns `429` with a `Retry-After` header (seconds). Other endpoints are not\nrate-limited at the application level.\n\n## Naming and units\nKeys are camelCase and carry their unit where it matters (`areaInHa`, `yieldTha`, `quantityMm`). Exceptions kept\nfor existing integrations — read each endpoint's own keys:\n\n- Areas are `areaInHa` on fields, cultivations and P&L rows, but `areaHa` on zone features (soil zones, analytics\n  zones, VRN/VRS zones).\n- Root-zone available water is `nfkMm` on GET /fields/{id}/{year}/irrigation and `awcMm` on GET\n  /irrigation/water-balances (the same quantity, mm); `soilZone.nfkMm` there is the surveyed value of the soil zone.\n- Satellite cloud cover is `cloudCoverage` in the scene statistics and `cloud_coverage` in the scene list.\n- Soil Profile (Model) layers are snake_case (`layer_from`, `bulk_density`); Soil Nutrients are camelCase\n  (`layerFrom`).\n- Crop ids are camelCase everywhere (`winterWheat`, `silageMaize`); GET /api/crops lists them.\n- Transaction values (`quantity`, `diesel`, `hours`, `cost`, `co2`) are per hectare.\n\n## GeoJSON Support\nAll geometry fields accept and return GeoJSON format compliant with RFC 7946.\n\n## Soil data conventions\nSoil data comes from two distinct sources — do not mix them up:\n\n- **Soil Profile (Model)** endpoints serve a model-based profile from the global soil map index (e.g. BÜK200)\n  at the field location: texture, bulk density, SOC, KA5/USDA soil type and van-Genuchten hydraulic parameters.\n  They contain **no measured values and no nutrients**.\n- **Soil Nutrients** endpoints serve measured/entered values (lab imports, zonation means, manual entries).\n\nNutrient conventions on all Soil Nutrients responses:\n\n- Phosphorus, potassium and magnesium are always reported in **canonical oxide form** (`p2o5`, `k2o`, `mgo`) —\n  never elemental P/K/Mg. Elemental lab values are converted on import (P × 2.291 = P₂O₅, K × 1.205 = K₂O,\n  Mg × 1.658 = MgO).\n- Every value carries its **lab method** (e.g. `cal`, `dl`, `olsen`, `mehlich-3`, `cacl2`) and the\n  **method-dependent unit** (CAL P₂O₅ in mg/100g vs Olsen P in mg P/kg).\n- `vdlufaStage` is the **computed** VDLUFA supply class A–E from value + method — supply classes are never\n  stored or imported directly.\n- `source` states the provenance: `user` (manual entry), `lab-probe` (lab import), `zone-mean`\n  (area-weighted zonation mean), `dsm-mean` (digital soil map), `global-index` (model fallback).\n- Soil layers are depth ranges in cm (`layerFrom`/`layerTo`, typically 0–30/30–60/60–90/90–120); values are\n  year-independent and dated by sampling date (YYYY-MM-DD).\n\nImporting heterogeneous soil data (Agricon, FarmFacts, Eurofins, LUFA, …) runs through the farm onboarding\nimport, which maps vendor-specific columns to these conventions.\n\n## Pagination\nNewer list endpoints take `limit` (default 50, max 200) and an opaque `cursor` query parameter and answer with\nthe envelope `{ items, nextCursor, total?, truncated }` — pass `nextCursor` back unchanged as `?cursor=` until\nit is `null`. Older endpoints (fields, transactions) still use `page`/`pageSize` with the `X-Page`,\n`X-Page-Size`, `X-Total-Items` and `X-Has-Next` response headers.\n\n## Errors\nNewer endpoints answer errors as `{ message, code }` with `code` one of `validation_failed`, `not_found`,\n`conflict`, `forbidden_org`, `missing_scope`, `rate_limited` or `internal`. Older endpoints return\n`{ message }` only. Every operation carries an `x-agmeo-effect` extension (`read`, `compute`, `create`,\n`update`, `delete`) stating its side effect independent of the HTTP verb.\n    ","contact":{"name":"Agvolution GmbH","email":"support@agvolution.com"}},"servers":[{"url":"https://beta-testing.agmeo.com","description":"Staging"},{"url":"https://agmeo.com","description":"Production"},{"url":"https://localhost:3000","description":"Local Development"}],"tags":[{"name":"Fields","description":"Agricultural field management"},{"name":"Cultivation Groups","description":"Group cultivations by year and crop"},{"name":"Cultivations","description":"Individual field cultivations"},{"name":"Transactions","description":"Field operations and product applications"},{"name":"Templates","description":"Cultivation management templates"},{"name":"Crops","description":"Crop definitions"},{"name":"Crop Varieties","description":"Crop variety management"},{"name":"Crop Rotations","description":"Multi-year crop rotation planning"},{"name":"Articles","description":"Operations and products catalog"},{"name":"Article Metadata","description":"Additional article information"},{"name":"Warehouse","description":"Warehouse stock bookings (Lager)"},{"name":"Prices","description":"Per-organization article price overrides"},{"name":"VRN","description":"Variable Rate Nitrogen recommendations and documentation"},{"name":"VRS","description":"Variable Rate Seeding recommendations and documentation"},{"name":"Application Maps","description":"Variable-rate application maps"},{"name":"Satellite","description":"Satellite imagery retrieval"},{"name":"Annotations","description":"Spatial annotations on map layers"},{"name":"B2B Map Tiles","description":"Map tiles for boundaries, crop rotation, and vegetation indices"},{"name":"B2B Raster Analysis","description":"Clip raster layers (terrain, soil, risk, microclimate) to field boundaries and compute zonal statistics"},{"name":"Crop Statistics","description":"Crop shares, crop rotations and field boundaries from ~200M crop-classified parcels in 29 European countries: for any polygon, any point or any NUTS region"},{"name":"Crop Forecast (add-on)","description":"Next year's expected crop area in any region, learned from the region's own crop rotations, with the backtest error for that region. Needs the Crop Forecast add-on on top of a Basic or Pro plan."},{"name":"Microclimate","description":"Physically-based per-field microclimate layers on a 10 m grid (radiation, temperature, ET/water, soil temperature, N mineralization), computed on demand from DEM + Open-Meteo + soil rasters"},{"name":"Soil Maps","description":"Soil property maps"},{"name":"Machinery","description":"Self-propelled machines and towed/mounted implements"},{"name":"Operators","description":"Staff members / machine operators"},{"name":"Providers","description":"Telematics / FMIS provider connections (John Deere Operations Center, CLAAS connect, AGCO PTx FarmENGAGE, NEXT Farming): equipment, farm hierarchy, import jobs, write-back exports"},{"name":"Tasks","description":"Task metadata on operations: assignment, priority, deadline"},{"name":"News","description":"The organization's news feed"},{"name":"Capture","description":"Mobile capture loop: offline-synced notes, photos, voice memos and receipt scans"},{"name":"Live Locations","description":"Live driver GPS positions streamed from the agmeo-field app"},{"name":"Saved Locations","description":"Map bookmarks saved in the agmeo-field app"},{"name":"Soil Sampling","description":"Soil sampling sessions and probes recorded in the agmeo-field app"},{"name":"Assistant","description":"Claude proxy for the on-device farm assistant (agmeo-field): one stateless model step per call, plus the web-search relay its webSearch tool uses"},{"name":"Voice Drafts","description":"Server-transcribed voice memos: structured OperationDraft cards to confirm or reject"},{"name":"Weather","description":"Field weather with the platform's spray score"},{"name":"Yield & Profitability","description":"Harvested yields (per field and year, yield maps, analog expectations for a new crop) and the farm P&L"},{"name":"Exports","description":"Federal fertilization reports (ENNI Niedersachsen, ENDO Schleswig-Holstein, BESYD BB/SN/ST/TH) and zonation map downloads"},{"name":"Soil Profile (Model)","description":"Model-based soil profiles from the global soil map index (e.g. BÜK200): texture, bulk density, SOC and hydraulic parameters at a location. No measured values, no nutrients — see Soil Nutrients for those."},{"name":"Soil Nutrients","description":"Measured/entered soil values per field and zone: canonical oxide nutrients (P₂O₅/K₂O/MgO), pH, humus, Nmin, texture and trace nutrients — each with soil layer, sampling date, lab method and computed VDLUFA supply stage. See the 'Soil data conventions' section above."},{"name":"Grid Analytics","description":"The 10m grid engine: rasterize vector data onto the canonical EPSG:3857 analytics grid, compute per-pixel KPI surfaces (profitability, N/P efficiency, carbon) from the field's operations via the operation walk, explain KPI variation through foundation layers, and derive management zones as vector polygons."},{"name":"Files","description":"File upload and management"},{"name":"Import","description":"Incremental org import (FarmImportRequest contract): stage chunks, dry-run plan, confirm-and-commit — plus the AI-import request queue that staff fulfil through it"},{"name":"Units","description":"Quantity and price units"},{"name":"Support","description":"Bug reports and feature requests for the agvolution team: AI pre-flight check, then a ticket on internal.agvolution.com filed on behalf of the calling user"},{"name":"Irrigation","description":"Irrigation water balances and events"},{"name":"Nitrogen","description":"DüV Düngebedarfsermittlung (DBE): N requirement per cultivation, saved snapshots and fertilization split strategies"},{"name":"Market Prices","description":"Weekly EU Agri-food commodity reference prices (EUR/t)"},{"name":"Me","description":"Information about the authenticated user"},{"name":"Settings","description":"Organization-wide display settings: units, currency, country, time zone"},{"name":"Plant Protection","description":"Approved plant-protection products from the BVL registry"},{"name":"Economics","description":"Farm economics settings and per-field profitability (P&L benchmark)"},{"name":"Base Fertilization","description":"P₂O₅ / K₂O / MgO Grunddüngung: removal, supply level, recommendation and 6-year P balance"},{"name":"Legacy","description":"Legacy endpoints for backward compatibility"}],"security":[{"BearerAuth":[]}],"paths":{"/api/me/organizations":{"get":{"description":"List the organizations the authenticated user is a member of. Intended for OAuth integrations: an OAuth access token is scoped to a single organization, so clients call this endpoint to discover all of the user's organization(s). Requires the `user:org:read` scope for OAuth tokens.","tags":["Me"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetMeOrganizationsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Missing required OAuth scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_me_organizations","summary":"List the organizations the caller belongs to","x-keywords":"who am i whoami me account membership farms betriebe organisation","x-agmeo-effect":"read"}},"/api/{orgId}/fields":{"get":{"description":"Get all fields for an organization. The same field ids may occur multiple times differing in their respective harvest year, as soon as the tool is used for multiple years. Supports pagination and filtering by crop and year. Without a year filter, one row is returned per cultivation year of the same field — pass ?year= for the current season's view.","tags":["Fields"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":0,"minimum":0},"description":"Page number (0-indexed)"},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","default":200,"minimum":1,"maximum":1000},"description":"Number of items per page (default: 200, max: 1000)"},{"in":"query","name":"crop","required":false,"schema":{"type":"string"},"description":"Filter by crop type (e.g., winterWheat, silageMaize)"},{"in":"query","name":"variety","required":false,"schema":{"type":"string"},"description":"Filter by variety name (e.g., Absint)"},{"in":"query","name":"usage","required":false,"schema":{"type":"string","enum":["COMMERCIAL","SEED_MULTIPLICATION"]},"description":"Filter by cultivation usage: COMMERCIAL (market production) or SEED_MULTIPLICATION (seed production)"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Filter by harvest year (e.g., 2025)"},{"in":"query","name":"search","required":false,"schema":{"type":"string"},"description":"Search string to filter by field name, parcel ID (Schlagnummer), or FLIK. Case-insensitive partial match."}],"responses":{"200":{"description":"Success","headers":{"X-Page":{"schema":{"type":"integer"},"description":"Current page number (0-indexed)"},"X-Page-Size":{"schema":{"type":"integer"},"description":"Number of items per page"},"X-Total-Items":{"schema":{"type":"integer"},"description":"Total number of items matching the filters"},"X-Has-Next":{"schema":{"type":"boolean"},"description":"Whether there are more pages available"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetFieldsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields","summary":"List fields with crop, area and geometry (one row per cultivation)","x-keywords":"schlag schläge schlaege fläche flaeche flächen hektar area size acreage parcels plots boundaries feld felder anbau kultur crop count how many sowing date aussaattermin saattermin harvest date erntetermin erntedatum","x-agmeo-effect":"read"},"post":{"description":"Create a new field by posting a GeoJSON Feature. You should specify the harvest year explicitly. The current harvest year will be used if the year is omitted.","tags":["Fields"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"description":"The GeoJSON Feature to create a field from","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostFieldsRequest"}}}},"responses":{"200":{"description":"Success: Returns the created field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostFieldsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_fields","summary":"Create a field with its first cultivation from a GeoJSON outline","x-keywords":"schlag anlegen new field boundary add","x-agmeo-effect":"create"}},"/api/{orgId}/fields/{id}/landor":{"put":{"description":"Sync a Landor fertilizer plan into this field's cultivations without changing the cultivations themselves. Planned Landor fertilizations are replaced per cultivation year; ones already in execution or documentation are kept and not re-created. Years listed in syncYears without applications are cleared.","tags":["Fields"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"The field id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"matchedBy":{"type":"string"},"matches":{"type":"array","items":{"type":"object","properties":{"planId":{"type":"string"},"planName":{"type":"string"},"cultivationYear":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"landorField":{"type":"object","properties":{"name":{"type":"string"},"areaInHa":{"nullable":true,"type":"number"},"farmNetId":{"type":"string"},"crop":{"type":"object","properties":{"nameDe":{"type":"string"},"nameFr":{"nullable":true,"type":"string"},"farmNetId":{"type":"string"}},"required":["nameDe","farmNetId"]},"growthStates":{"type":"array","items":{"type":"object","properties":{"bbchCode":{"nullable":true,"type":"string"},"date":{"type":"string"},"nameDe":{"nullable":true,"type":"string"},"nameFr":{"nullable":true,"type":"string"},"fertilizer":{"nullable":true,"type":"object","properties":{"nameDe":{"type":"string"},"nameFr":{"nullable":true,"type":"string"},"farmNetId":{"nullable":true,"type":"string"},"amountPerHa":{"type":"object","properties":{"amount":{"type":"number"},"unit":{"nullable":true,"type":"string"}},"required":["amount"],"description":"Application amount per hectare"},"amountN":{"type":"number"},"amountP2O5":{"type":"number"},"amountK2O":{"type":"number"},"amountMg":{"nullable":true,"type":"number"},"amountS":{"nullable":true,"type":"number"},"amountCaO":{"nullable":true,"type":"number"}},"required":["nameDe","amountPerHa","amountN","amountP2O5","amountK2O"]}},"required":["date"]}}},"required":["name","farmNetId","crop","growthStates"]}},"required":["planId","planName","cultivationYear","landorField"]}},"syncYears":{"description":"Cultivation years the caller fetched Landor plans for. A listed year without fertilizer applications has its planned Landor fertilizations removed; without this field such a year is left untouched.","type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["matchedBy","matches"]}}}},"responses":{"200":{"description":"Success: Returns the per-year outcome of the sync.","content":{"application/json":{"schema":{"type":"object","properties":{"syncedYears":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"skippedYears":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["syncedYears","skippedYears","warnings"],"additionalProperties":false,"description":"Outcome of syncing a Landor payload. Every cultivation year in the payload is synced to its own cultivation, and every year in syncYears without applications is cleared; years that could not be synced are listed in skippedYears with a warning. A sync failure never fails the field operation itself."}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"put_fields_id_landor","summary":"Sync a Landor fertilizer plan into a field's cultivations","x-keywords":"landor düngeplan","x-agmeo-effect":"update"}},"/api/{orgId}/fields/{id}/{year}":{"get":{"description":"Get a single field by its ID and harvest year. Returns the field details including geometry, crop, variety, and sowing date. Of several cultivations in the year it describes the main crop: secondary and catch crops last, then the largest area.","tags":["Fields"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"The field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"The harvest year"}],"responses":{"200":{"description":"Success: Returns the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostFieldsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_year","summary":"Get one field in one harvest year (crop, area, geometry)","x-keywords":"schlag details single field boundary","x-agmeo-effect":"read"},"put":{"description":"Update a field in one harvest year — the route that changes what a field-year already has: the crop, the variety, the sowing and harvest dates, the template and the outline of its cultivation. Only the keys sent change. Without cultivationId the year's main crop is updated; a field with several main crops that year (a split field) answers 422 listing the cultivation ids to choose from. All of these are stored on the year's cultivation: on a year that has none, `crop` is required and creates it (201); `asNewCultivation: true` adds a further cultivation to a year that has one.","tags":["Fields"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"The field id, as returned by the respective POST request"},{"in":"path","name":"year","required":true,"schema":{"type":"number"},"description":"The harvest year"}],"requestBody":{"required":true,"description":"The keys to change. `geometry` is a bare GeoJSON Polygon or MultiPolygon, not a Feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutFieldsRequest"}}}},"responses":{"200":{"description":"Success: Returns the updated field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostFieldsResponse"}}}},"201":{"description":"The year had no cultivation (or asNewCultivation was set): created, returned like a 200.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostFieldsResponse"}}}},"400":{"description":"Body refused; `issues` names each key — a geometry that is no bare Polygon/MultiPolygon, a date that is no YYYY-MM-DD, a variety the catalogue does not have for the crop, or `crop` missing on a year without a cultivation (the message lists the years that have one)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiValidationError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"Field, or the cultivationId in this field-year, not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"422":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"put_fields_id_year","summary":"Update a field in one harvest year: crop, variety, sowing and harvest date, outline","x-keywords":"schlag ändern kultur fruchtart sorte aussaatdatum erntedatum aussaat ernte setzen zuweisen set sowing harvest date variety assign change crop schlaggrenze geometry boundary outline teilschlag","x-agmeo-effect":"update"},"delete":{"description":"Delete a field's cultivation for a specific year. All associated data (zones, transactions, etc.) will be cascade deleted. If this is the last cultivation for the field, the field itself is also deleted.","tags":["Fields"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"The field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"The harvest year"}],"responses":{"204":{"description":"Successfully deleted"},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_fields_id_year","summary":"Delete a field's cultivation of one harvest year","x-keywords":"schlag löschen remove","x-agmeo-effect":"delete"}},"/api/{orgId}/crop-calendar":{"get":{"description":"Get the crop calendar for an organization. Returns fields with their cultivation history for a GANTT-chart-like visualization showing which crop was grown when on what field.","tags":["Crop Calendar"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":0,"minimum":0},"description":"Page number (0-indexed)"},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","default":50,"minimum":1,"maximum":100},"description":"Number of items per page (default: 50, max: 100)"},{"in":"query","name":"from","required":false,"schema":{"type":"integer"},"description":"Start year filter (inclusive)"},{"in":"query","name":"to","required":false,"schema":{"type":"integer"},"description":"End year filter (inclusive)"}],"responses":{"200":{"description":"Success: Returns paginated list of fields with nested cultivations.","headers":{"X-Page":{"schema":{"type":"integer"},"description":"Current page number (0-indexed)"},"X-Page-Size":{"schema":{"type":"integer"},"description":"Number of items per page"},"X-Total-Items":{"schema":{"type":"integer"},"description":"Total number of fields"},"X-Has-Next":{"schema":{"type":"boolean"},"description":"Whether there are more pages available"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCropCalendarResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_crop_calendar","summary":"List fields with their cultivations over several harvest years","x-keywords":"anbauplan anbauplanung crop plan history vorfrucht previous crop years schlaghistorie","x-agmeo-effect":"read"}},"/api/crops":{"get":{"description":"Get all available crop definitions. Returns a list of crops with their sowing and harvest categories, and other properties.","tags":["Crops"],"responses":{"200":{"description":"Success: Returns all available crops.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCropsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_crops","summary":"List all crop definitions (crop ids and names)","x-keywords":"kulturen fruchtarten crop ids catalogue enum winterWheat","x-agmeo-effect":"read"}},"/api/crops/{name}":{"get":{"description":"Get a single crop by its name.","tags":["Crops"],"parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"},"description":"The crop name (e.g., winterWheat, silageMaize)"}],"responses":{"200":{"description":"Success: Returns the crop.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_crops_name","summary":"Get one crop definition by its name","x-keywords":"kultur fruchtart","x-agmeo-effect":"read"}},"/api/{orgId}/crop-varieties":{"get":{"description":"Get all available crop varieties. Optionally filter by crop name.","tags":["Crop Varieties"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"crop","required":false,"schema":{"type":"string"},"description":"Filter by crop name (e.g., winterWheat)"}],"responses":{"200":{"description":"Success: Returns list of crop varieties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCropVarietiesResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_crop_varieties","summary":"List crop varieties (id, name, crop)","x-keywords":"sorten sorte variety cultivar saatgut","x-agmeo-effect":"read"}},"/api/{orgId}/cultivation-groups":{"get":{"description":"Get all cultivation groups for the organization. Supports pagination and filtering by year and crop.","tags":["Cultivation Groups"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":0,"minimum":0},"description":"Page number (0-indexed)"},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":1000},"description":"Number of items per page (default: 100, max: 1000)"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Filter by harvest year (e.g., 2025)"},{"in":"query","name":"crop","required":false,"schema":{"type":"string"},"description":"Filter by crop type (e.g., winterWheat)"}],"responses":{"200":{"description":"Success: Returns list of cultivation groups.","headers":{"X-Page":{"schema":{"type":"integer"},"description":"Current page number"},"X-Page-Size":{"schema":{"type":"integer"},"description":"Items per page"},"X-Total-Items":{"schema":{"type":"integer"},"description":"Total items"},"X-Has-Next":{"schema":{"type":"boolean"},"description":"More pages available"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCultivationGroupsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_cultivation_groups","summary":"List cultivation groups (name, year, crop, template)","x-keywords":"bewirtschaftungseinheit anbaugruppe schlaggruppe field groups","x-agmeo-effect":"read"},"post":{"description":"Create a new cultivation group.","tags":["Cultivation Groups"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"description":"Cultivation group data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCultivationGroupRequest"}}}},"responses":{"201":{"description":"Success: Returns the created cultivation group.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CultivationGroupResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_cultivation_groups","summary":"Create a cultivation group","x-keywords":"anbaugruppe anlegen","x-agmeo-effect":"create"}},"/api/{orgId}/cultivation-groups/{id}":{"get":{"description":"Get a single cultivation group by ID.","tags":["Cultivation Groups"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The cultivation group ID"}],"responses":{"200":{"description":"Success: Returns the cultivation group.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CultivationGroupResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_cultivation_groups_id","summary":"Get one cultivation group","x-keywords":"anbaugruppe","x-agmeo-effect":"read"},"patch":{"description":"Update a cultivation group.","tags":["Cultivation Groups"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The cultivation group ID"}],"requestBody":{"required":true,"description":"Fields to update","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCultivationGroupRequest"}}}},"responses":{"200":{"description":"Success: Returns the updated cultivation group.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CultivationGroupResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"patch_cultivation_groups_id","summary":"Update a cultivation group","x-keywords":"anbaugruppe ändern","x-agmeo-effect":"update"},"delete":{"description":"Delete a cultivation group.","tags":["Cultivation Groups"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The cultivation group ID"}],"responses":{"204":{"description":"Cultivation group deleted successfully"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_cultivation_groups_id","summary":"Delete a cultivation group","x-keywords":"anbaugruppe löschen","x-agmeo-effect":"delete"}},"/api/{orgId}/cultivations":{"get":{"description":"Get all cultivations for the organization. Supports pagination and filtering.","tags":["Cultivations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":0,"minimum":0},"description":"Page number (0-indexed)"},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":1000},"description":"Number of items per page"},{"in":"query","name":"cultivationGroupId","required":false,"schema":{"type":"string","format":"uuid"},"description":"Filter by cultivation group ID"},{"in":"query","name":"derivedFromFieldId","required":false,"schema":{"type":"string","format":"uuid"},"description":"Filter by source field ID"}],"responses":{"200":{"description":"Success: Returns list of cultivations.","headers":{"X-Page":{"schema":{"type":"integer"},"description":"Current page number"},"X-Page-Size":{"schema":{"type":"integer"},"description":"Items per page"},"X-Total-Items":{"schema":{"type":"integer"},"description":"Total items"},"X-Has-Next":{"schema":{"type":"boolean"},"description":"More pages available"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCultivationsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_cultivations","summary":"List cultivations (a crop on a field or sub-field in one harvest year)","x-keywords":"anbau kulturen teilschlag teilschläge sub-field crop area areaInHa variety usage hektar","x-agmeo-effect":"read"},"post":{"description":"Create the FIRST cultivation of a field in a harvest year: the field joins a cultivation group (crop + year + template) and gets the group's template operations. For a field-year that already has a cultivation use PUT /api/{orgId}/fields/{id}/{year} instead — it changes the crop, variety, sowing and harvest dates of that cultivation, or adds a further one (asNewCultivation). An optional sowingDate moves the planting operations to that day, or adds a generic sowing operation when there are none; harvestDate does the same for the harvest. Both are ignored for never-sown crops (fallow, landscapeFeature, nonProductiveArea, unknownCrop). Omit sowingDate when nothing is sown, e.g. in a perennial crop's follow-up year. Safe to retry: a request that repeats the one that created the cultivation answers 200 with it and `created: false`; nothing is written twice.","tags":["Cultivations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"description":"Cultivation data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCultivationRequest"}}}},"responses":{"200":{"description":"The field already has this cultivation with the values sent (a repeated request): returned with `created: false`, nothing written.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCultivationResponse"}}}},"201":{"description":"Success: Returns the created cultivation, `created: true`. A `variety` the catalogue does not have for the group's crop does not block the creation: `variety` is null and `warnings` names the value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCultivationResponse"}}}},"400":{"description":"Body refused; `issues` names each key, e.g. a date that is neither YYYY-MM-DD nor an ISO 8601 timestamp","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiValidationError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"Cultivation group or field not found in this organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"409":{"description":"The field already has a cultivation in the group's year — another crop, or the same with other values than sent. `message` names it (`cultivationId`) and the route to use: PUT /api/{orgId}/fields/{id}/{year} (change it, or add one with asNewCultivation) or PATCH /api/{orgId}/cultivations/{id}","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CultivationConflictError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_cultivations","summary":"Create the first cultivation of a field in a harvest year (field joins a cultivation group)","x-keywords":"anbau anlegen kultur planen neues anbaujahr sow crop assign","x-agmeo-effect":"create"}},"/api/{orgId}/cultivations/{id}":{"get":{"description":"Get a single cultivation by ID.","tags":["Cultivations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The cultivation ID"}],"responses":{"200":{"description":"Success: Returns the cultivation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CultivationResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_cultivations_id","summary":"Get one cultivation","x-keywords":"anbau kultur teilschlag","x-agmeo-effect":"read"},"patch":{"description":"Update the outline, variety or usage of one cultivation; only the keys sent change. The variety is given by name or by catalogue id. The crop and the sowing and harvest dates are not changed here: PUT /api/{orgId}/fields/{id}/{year} with `cultivationId` does that.","tags":["Cultivations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The cultivation ID"}],"requestBody":{"required":true,"description":"Fields to update","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCultivationRequest"}}}},"responses":{"200":{"description":"Success: Returns the updated cultivation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CultivationResponse"}}}},"400":{"description":"Body refused; `issues` names each key — e.g. a variety the catalogue does not have for the cultivation's crop (look it up with GET /api/{orgId}/crop-varieties?crop=…), or no key to update","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiValidationError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"patch_cultivations_id","summary":"Update a cultivation: outline, variety (name or id), usage, seed lot — not its dates or crop","x-keywords":"anbau ändern sorte variety nutzung teilschlag grenze","x-agmeo-effect":"update"},"delete":{"description":"Delete a cultivation.","tags":["Cultivations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The cultivation ID"}],"responses":{"204":{"description":"Cultivation deleted successfully"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_cultivations_id","summary":"Delete a cultivation","x-keywords":"anbau löschen","x-agmeo-effect":"delete"}},"/api/technologies":{"get":{"description":"Get all available technologies: per crop (`cropId`) the production systems a template can be built on. The `fqn` is the value of a template's `technology`; its third part names the tillage system — `PL_…` ploughing, `NP_…` non-inversion tillage (mulch seeding), `NT_…` direct sowing — or, for grassland, the harvest chain (BALE, CHOPPER, LOADER_WAGON).","tags":["Templates"],"responses":{"200":{"description":"Success: Returns list of technologies.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTechnologiesResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_technologies","summary":"List production technologies (tillage system per crop) — the `technology` of a template","x-keywords":"verfahren produktionsverfahren bodenbearbeitung pflug pfluglos mulchsaat direktsaat konventionell conventional tillage plough no-till","x-agmeo-effect":"read"}},"/api/{orgId}/prices":{"get":{"description":"Get the organization's article price overrides. Optionally filter by harvest year. Supports pagination.","tags":["Prices"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Filter by harvest year (e.g., 2025)"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":0,"minimum":0},"description":"Page number (0-indexed)"},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":1000},"description":"Number of items per page (default: 100, max: 1000)"}],"responses":{"200":{"description":"Success: Returns list of the organization's article price overrides.","headers":{"X-Page":{"schema":{"type":"integer"},"description":"Current page number"},"X-Page-Size":{"schema":{"type":"integer"},"description":"Items per page"},"X-Total-Items":{"schema":{"type":"integer"},"description":"Total items"},"X-Has-Next":{"schema":{"type":"boolean"},"description":"More pages available"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOrgArticlePricesResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_prices","summary":"List the organization's own article prices per harvest year","x-keywords":"preise preis kosten erzeugerpreis marktpreis price override cost","x-agmeo-effect":"read"}},"/api/{orgId}/prices/{articleFqn}":{"put":{"description":"Idempotently upsert the organization's price override for an article in a given harvest year (unique per orgId, articleFqn and year). Returns the stored row with 200 for both create and update. The priceUnit must be one of the units returned by GET /api/units/price.","tags":["Prices"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"articleFqn","required":true,"schema":{"type":"string"},"description":"The article fqn (fully qualified name)"}],"requestBody":{"required":true,"description":"Price override data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutOrgArticlePriceRequest"}}}},"responses":{"200":{"description":"Success: Returns the stored price override (create and update both return 200).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgArticlePriceResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"put_prices_article_fqn","summary":"Set the organization's price of an article for a harvest year","x-keywords":"preis setzen ändern festlegen price override upsert","x-agmeo-effect":"update"}},"/api/units/quantity":{"get":{"description":"Get all available quantity units for measuring amounts.","tags":["Units"],"responses":{"200":{"description":"Success: Returns list of quantity units.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetQuantityUnitsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_units_quantity","summary":"List the quantity units (kg_ha, t_ha, l_ha, …)","x-keywords":"einheiten mengeneinheit unit codes","x-agmeo-effect":"read"}},"/api/units/price":{"get":{"description":"Get all available price units for monetary values.","tags":["Units"],"responses":{"200":{"description":"Success: Returns list of price units.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPriceUnitsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_units_price","summary":"List the price units (euro_t, euro_kg, euro_ha, …)","x-keywords":"preiseinheit einheiten currency unit codes","x-agmeo-effect":"read"}},"/api/units/conversions":{"get":{"description":"Get all unit conversion factors between quantity and price units.","tags":["Units"],"responses":{"200":{"description":"Success: Returns list of unit conversions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetUnitConversionsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_units_conversions","summary":"List conversion factors between quantity and price units","x-keywords":"umrechnung einheiten convert dt t kg","x-agmeo-effect":"read"}},"/api/{orgId}/templates":{"get":{"description":"Get all templates for the organization. Supports pagination and filtering.","tags":["Templates"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":0,"minimum":0},"description":"Page number (0-indexed)"},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":1000},"description":"Number of items per page"},{"in":"query","name":"crop","required":false,"schema":{"type":"string"},"description":"Filter by crop type"},{"in":"query","name":"search","required":false,"schema":{"type":"string"},"description":"Search in name and technology fields (case-insensitive)"}],"responses":{"200":{"description":"Success: Returns list of templates.","headers":{"X-Page":{"schema":{"type":"integer"},"description":"Current page number"},"X-Page-Size":{"schema":{"type":"integer"},"description":"Items per page"},"X-Total-Items":{"schema":{"type":"integer"},"description":"Total items"},"X-Has-Next":{"schema":{"type":"boolean"},"description":"More pages available"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTemplatesResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_templates","summary":"List operation templates (standard work sequences per crop)","x-keywords":"vorlagen arbeitsgänge anbauverfahren standardverfahren","x-agmeo-effect":"read"},"post":{"description":"Create an empty template: a name, a crop id and a technology `fqn` — nothing else. `technology` is one of GET /api/technologies (pick a row whose `cropId` is the crop); a free word such as \"conventional\" or \"pfluglos\" is refused, and the 400 lists the crop's technologies. Operation rows cannot be sent along and no REST route adds them: for a template with operations, copy an existing one with POST /api/{orgId}/templates/{id}/duplicate.","tags":["Templates"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"description":"Template data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplateRequest"}}}},"responses":{"201":{"description":"Success: Returns the created template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateResponse"}}}},"400":{"description":"Body refused; `issues` names each key: an unknown `crop` (GET /api/crops), an unknown `technology` (with the technologies of the crop to choose from), or a key the body does not take, such as `transactions`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiValidationError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_templates","summary":"Create an empty operation template (name, crop, technology); operations cannot be sent along","x-keywords":"vorlage anlegen anbauverfahren arbeitsgänge","x-agmeo-effect":"create"}},"/api/{orgId}/templates/{id}":{"get":{"description":"Get a single template by ID with all its transactions.","tags":["Templates"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The template ID"}],"responses":{"200":{"description":"Success: Returns the template with transactions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateWithTransactionsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_templates_id","summary":"Get one template with its transactions","x-keywords":"vorlage","x-agmeo-effect":"read"},"delete":{"description":"Delete a template.","tags":["Templates"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The template ID"}],"responses":{"204":{"description":"Template deleted successfully"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_templates_id","summary":"Delete a template","x-keywords":"vorlage löschen","x-agmeo-effect":"delete"}},"/api/{orgId}/templates/{id}/duplicate":{"post":{"description":"Copy a template — one of the organization's or a system template — with all its operation rows into a new template of the organization. The body is `{ \"name\": … }`, the name of the copy.","tags":["Templates"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The template ID to duplicate"}],"requestBody":{"required":true,"description":"`name`: the name of the copy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateTemplateRequest"}}}},"responses":{"201":{"description":"Success: Returns the duplicated template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateWithTransactionsResponse"}}}},"400":{"description":"Body refused: `name` (the name of the copy) is missing or empty","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiValidationError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_templates_id_duplicate","summary":"Copy a template with all its operations under a new name (body: name)","x-keywords":"vorlage kopieren duplizieren copy clone","x-agmeo-effect":"create"}},"/api/{orgId}/machines":{"get":{"description":"List all machines of the organization. Tyre specs on create/update are mirrored into the trafficability tyre store. Reclassifying between machine and implement is not supported via the API; use the app for that.","tags":["Machinery"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetMachinesResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_machines","summary":"List the organization's machines (tractors, combines, sprayers)","x-keywords":"maschinen traktor schlepper mähdrescher fuhrpark fleet vehicles status repair reparatur","x-agmeo-effect":"read"},"post":{"description":"Create a new machine.","tags":["Machinery"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMachineRequest"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MachineResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_machines","summary":"Create a machine","x-keywords":"maschine anlegen traktor","x-agmeo-effect":"create"}},"/api/{orgId}/machines/locations":{"get":{"description":"Last-known positions of the organization's active John Deere equipment, fetched live from the John Deere APIs (AEMP fleet data first, then breadcrumb / location-report fallbacks). Empty array when John Deere is not connected.","tags":["Machinery"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetMachineLocationsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_machines_locations","summary":"Get the last known GPS positions of the John Deere machines","x-keywords":"standort position where maschinen tracking gps telemetry","x-agmeo-effect":"read"}},"/api/{orgId}/machines/{id}":{"get":{"description":"Get a single machine by id.","tags":["Machinery"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The machine ID"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MachineResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_machines_id","summary":"Get one machine","x-keywords":"maschine traktor","x-agmeo-effect":"read"},"patch":{"description":"Partially update a machine; only provided fields change.","tags":["Machinery"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The machine ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMachineRequest"}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MachineResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"patch_machines_id","summary":"Update a machine (only the keys sent change)","x-keywords":"maschine ändern","x-agmeo-effect":"update"},"delete":{"description":"Delete a machine.","tags":["Machinery"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The machine ID"}],"responses":{"204":{"description":"Deleted."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_machines_id","summary":"Delete a machine","x-keywords":"maschine löschen","x-agmeo-effect":"delete"}},"/api/{orgId}/implements":{"get":{"description":"List all implements of the organization.","tags":["Machinery"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetImplementsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_implements","summary":"List the organization's implements (attached and trailed equipment)","x-keywords":"anbaugeräte geräte pflug drille streuer spritze anhänger","x-agmeo-effect":"read"},"post":{"description":"Create a new implement. Reclassifying between machine and implement is not supported via the API (delete + recreate is not equivalent — it loses the id and unshared fields); use the app for that.","tags":["Machinery"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateImplementRequest"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImplementResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_implements","summary":"Create an implement","x-keywords":"anbaugerät anlegen","x-agmeo-effect":"create"}},"/api/{orgId}/implements/{id}":{"get":{"description":"Get a single implement by id.","tags":["Machinery"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The implement ID"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImplementResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_implements_id","summary":"Get one implement","x-keywords":"anbaugerät","x-agmeo-effect":"read"},"patch":{"description":"Partially update an implement; only provided fields change.","tags":["Machinery"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The implement ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateImplementRequest"}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImplementResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"patch_implements_id","summary":"Update an implement (only the keys sent change)","x-keywords":"anbaugerät ändern","x-agmeo-effect":"update"},"delete":{"description":"Delete an implement.","tags":["Machinery"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The implement ID"}],"responses":{"204":{"description":"Deleted."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_implements_id","summary":"Delete an implement","x-keywords":"anbaugerät löschen","x-agmeo-effect":"delete"}},"/api/{orgId}/operators":{"get":{"description":"List all operators of the organization.","tags":["Operators"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOperatorsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_operators","summary":"List the organization's operators (staff: drivers, field workers, managers)","x-keywords":"mitarbeiter fahrer personal arbeitskräfte employees workers people team","x-agmeo-effect":"read"},"post":{"description":"Create a new operator.","tags":["Operators"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOperatorRequest"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_operators","summary":"Create an operator (staff member)","x-keywords":"mitarbeiter anlegen fahrer","x-agmeo-effect":"create"}},"/api/{orgId}/operators/{id}":{"get":{"description":"Get a single operator by id.","tags":["Operators"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The operator ID"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_operators_id","summary":"Get one operator","x-keywords":"mitarbeiter fahrer","x-agmeo-effect":"read"},"patch":{"description":"Partially update an operator; only provided fields change.","tags":["Operators"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The operator ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOperatorRequest"}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"patch_operators_id","summary":"Update an operator (only the keys sent change)","x-keywords":"mitarbeiter ändern","x-agmeo-effect":"update"},"delete":{"description":"Delete an operator.","tags":["Operators"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The operator ID"}],"responses":{"204":{"description":"Deleted."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_operators_id","summary":"Delete an operator","x-keywords":"mitarbeiter löschen","x-agmeo-effect":"delete"}},"/api/{orgId}/transactions":{"get":{"description":"List the organization's transactions, newest first. One transaction row is a single action (machine pass) or product (input/output) line; rows sharing an operationId form one operation event. Covers every operation category (TILLAGE, PLANTING, FERTILIZING, PROTECTION, IRRIGATION, HARVESTING, …) — this is the full field-work history, e.g. for export.","tags":["Transactions"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":0},"description":"Page number (0-indexed)"},{"in":"query","name":"pageSize","description":"Number of items per page (default: 200)","required":false,"schema":{"type":"integer","default":200,"maximum":1000}},{"in":"query","name":"cultivationId","required":false,"schema":{"type":"string","format":"uuid"},"description":"Only transactions of this cultivation"},{"in":"query","name":"fieldId","required":false,"schema":{"type":"string","format":"uuid"},"description":"Only transactions of cultivations derived from this field"},{"in":"query","name":"operationId","required":false,"schema":{"type":"string","format":"uuid"},"description":"All rows of one operation event"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Harvest year of the cultivation group"},{"in":"query","name":"category","required":false,"schema":{"type":"string"},"description":"Operation category, e.g. FERTILIZING (case-insensitive)"},{"in":"query","name":"status","description":"Only rows in this status","required":false,"schema":{"type":"string","enum":["PLANNING","IN_EXECUTION","DOCUMENTATION"]}},{"in":"query","name":"actionOrProduct","description":"Only action rows (machine passes) or only product rows (inputs and harvest products)","required":false,"schema":{"type":"string","enum":["action","product"]}},{"in":"query","name":"articleId","required":false,"schema":{"type":"string"},"description":"Exact article FQN"},{"in":"query","name":"dateFrom","required":false,"schema":{"type":"string","format":"date"},"description":"Inclusive lower bound (YYYY-MM-DD)"},{"in":"query","name":"dateTo","required":false,"schema":{"type":"string","format":"date"},"description":"Inclusive upper bound (YYYY-MM-DD)"}],"responses":{"200":{"description":"Success: Returns the list of transactions.","headers":{"X-Page":{"schema":{"type":"integer"},"description":"Current page number"},"X-Page-Size":{"schema":{"type":"integer"},"description":"Items per page"},"X-Total-Items":{"schema":{"type":"integer"},"description":"Total items"},"X-Has-Next":{"schema":{"type":"boolean"},"description":"More pages available"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTransactionsResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_transactions","summary":"List field operations as transaction rows: what was applied, harvested or done, per ha","x-keywords":"maßnahmen massnahmen buchungen bookings operations work arbeitsgänge schlagkartei ackerschlagkartei dokumentation düngung duengung dünger duenger fertilizing fertilizer fertiliser applied ausgebracht stickstoff nitrogen pflanzenschutz spritzen spraying pesticide herbicide fungicide protection aussaat saat sowing seeding planting ernte harvest bodenbearbeitung tillage diesel fuel kraftstoff verbrauch hours arbeitszeit stunden cost kosten co2 emissions quantity menge","x-agmeo-effect":"read"},"post":{"description":"Create ONE transaction row (offline-first mobile planning, 'Maßnahme planen'). The client-generated id is the idempotency key: 201 on create, 200 replay returning the stored row — never a duplicate. The operationId groups the rows of one Maßnahme and may span multiple cultivations across calls; existing rows of the operation are never touched (unlike PUT fieldGroups/{id}/transactions/new, which replaces whole operations). The server verifies the cultivation belongs to the organization, computes CO₂e/diesel/costs (same pipeline as the fieldGroups create flow) and returns the row in the GET shape.","tags":["Transactions"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostTransactionRequest"}}}},"responses":{"200":{"description":"Replay: a row with this id already exists — returned unchanged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionResponse"}}}},"201":{"description":"Created: the stored row in the GET shape.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"409":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_transactions","summary":"Create one planned transaction row (mobile offline planning)","x-keywords":"maßnahme planen buchung anlegen","x-agmeo-effect":"create"}},"/api/{orgId}/transactions/{id}":{"get":{"description":"Get a single transaction row by id.","tags":["Transactions"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The transaction ID"}],"responses":{"200":{"description":"Success: Returns the transaction.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_transactions_id","summary":"Get one transaction row","x-keywords":"buchung maßnahme","x-agmeo-effect":"read"},"patch":{"description":"Mark one transaction row as executed/documented (mobile 'erledigt & dokumentiert'-flow): status IN_EXECUTION|DOCUMENTATION, optional actual execution date, a free-text note merged into details.note, plus the completion values details (merged key-wise into the stored details), frequency (treated-area share 0–1) and quantity/unit (e.g. harvest yield — recomputes the row's CO₂e and cost). Idempotent (re-sending the same status is a 200 no-op); DOCUMENTATION → IN_EXECUTION is rejected with 409. Returns the row in the GET shape.","tags":["Transactions"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The transaction ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchTransactionRequest"}}}},"responses":{"200":{"description":"The updated transaction.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"409":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"patch_transactions_id","summary":"Mark one transaction row as executed or documented","x-keywords":"erledigt dokumentiert abschließen status buchung done","x-agmeo-effect":"update"},"put":{"description":"Update a single transaction row. The full row must be sent (same shape as TransactionResponse minus the derived fieldId/crop/year/isHarvestProduct fields); the server recomputes CO₂e and costs for the whole operation, marks the row MODIFIED and syncs warehouse stock entries. Returns { success, data } with the updated row.","tags":["Transactions"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The transaction ID"}],"requestBody":{"required":true,"description":"The updated transaction row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTransactionRequest"}}}},"responses":{"200":{"description":"Success: Returns { success: true, data: <updated row> }."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"put_transactions_id","summary":"Replace one transaction row (quantity, date, status, costs)","x-keywords":"buchung ändern maßnahme korrigieren menge","x-agmeo-effect":"update"}},"/api/{orgId}/fieldGroups/{id}/transactions/new":{"put":{"description":"Create the transaction rows of an operation on a cultivation. NOTE: {id} is the CULTIVATION id (legacy path naming). Body: { operationId? (omit to start a new operation), category?, transactions: [<transaction rows>] }. The server assigns ids/operationId, computes CO₂e, emissions and costs. Returns { success, data: [<created rows>] }.","tags":["Transactions"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The cultivation ID to create the operation on"}],"requestBody":{"required":true,"description":"Operation with its transaction rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTransactionRequest"}}}},"responses":{"200":{"description":"Success: Returns { success: true, data: [<created rows>] }."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}}},"operationId":"put_field_groups_id_transactions_new","summary":"Book an operation on a cultivation (creates its action and product rows)","x-keywords":"maßnahme buchen dokumentieren anlegen düngung pflanzenschutz aussaat ernte bodenbearbeitung record document operation fertilizing spraying sowing harvest create booking","x-agmeo-effect":"create"}},"/api/{orgId}/operations/{id}/status":{"put":{"description":"Set the status of a whole operation — all its transaction rows advance together (same semantics as the app's task board). Flipping to DOCUMENTATION books warehouse stock entries and freezes the BBCH snapshot; rolling back removes the stock entry. Returns { success, data: <affected row count> }.","tags":["Transactions"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The operation ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOperationStatusRequest"}}}},"responses":{"200":{"description":"Success: Returns { success: true, data: <affected transaction count> }."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"put_operations_id_status","summary":"Set the status of a whole operation (all its transaction rows)","x-keywords":"maßnahme status erledigt dokumentiert geplant in ausführung","x-agmeo-effect":"update"}},"/api/{orgId}/operations/{id}":{"delete":{"description":"Delete an operation: removes ALL transaction rows sharing this operationId (actions and products). Returns { success, data: <number of deleted rows> }.","tags":["Transactions"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The operation ID"}],"responses":{"200":{"description":"Success: Returns { success: true, data: <deleted row count> }."},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_operations_id","summary":"Delete an operation with all its transaction rows","x-keywords":"maßnahme löschen buchung stornieren","x-agmeo-effect":"delete"}},"/api/{orgId}/export/enni":{"get":{"description":"ENNI Düngemeldung (Niedersachsen), XML as a download. Runs the same preflight as the app's export page; org export metadata (Betriebsnummer etc.) is maintained in the app under Settings → Export.","tags":["Exports"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"year","required":true,"schema":{"type":"integer"},"description":"Harvest year"}],"responses":{"200":{"description":"The export file (XML).","content":{"application/xml":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"422":{"description":"Preflight failed — required export metadata or crop mappings missing, or a blocking validation issue (see `preflight.issues`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportPreflightResponse"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_export_enni","summary":"Download the ENNI fertilizer report (Niedersachsen) as XML","x-keywords":"düngemeldung meldung niedersachsen export behörde","x-agmeo-effect":"create"}},"/api/{orgId}/export/endo":{"get":{"description":"ENDO Düngemeldung (Schleswig-Holstein), XML as a download. Runs the same preflight as the app's export page; org export metadata (Betriebsnummer etc.) is maintained in the app under Settings → Export.","tags":["Exports"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"year","required":true,"schema":{"type":"integer"},"description":"Harvest year"}],"responses":{"200":{"description":"The export file (XML).","content":{"application/xml":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"422":{"description":"Preflight failed — required export metadata or crop mappings missing, or a blocking validation issue (see `preflight.issues`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportPreflightResponse"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_export_endo","summary":"Download the ENDO fertilizer report (Schleswig-Holstein) as XML","x-keywords":"düngemeldung meldung schleswig-holstein export behörde","x-agmeo-effect":"create"}},"/api/{orgId}/export/besyd":{"get":{"description":"BESYD transfer (Brandenburg/Sachsen/Sachsen-Anhalt/Thüringen), ZIP of the eleven IMP*.TXT tables as a download. Runs the same preflight as the app's export page; org export metadata (Betriebsnummer etc.) is maintained in the app under Settings → Export.","tags":["Exports"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"year","required":true,"schema":{"type":"integer"},"description":"Harvest year"}],"responses":{"200":{"description":"The export file (ZIP).","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"422":{"description":"Preflight failed — required export metadata or crop mappings missing, or a blocking validation issue (see `preflight.issues`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportPreflightResponse"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_export_besyd","summary":"Download the BESYD transfer (BB, SN, ST, TH) as a ZIP","x-keywords":"düngebedarfsermittlung brandenburg sachsen thüringen export","x-agmeo-effect":"create"}},"/api/{orgId}/export/st":{"get":{"description":"Sachsen-Anhalt Mitteilungspflicht (LLG), ZIP of the four tab-separated TXT files Anl5 / Ertraege / DBE / Duengungen (farms seated outside Sachsen-Anhalt receive DBE + Duengungen only). Runs the same preflight as the app's export page; org export metadata (EU-Betriebsnummer, Landkreis etc.) is maintained in the app under Settings → Export.","tags":["Exports"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"year","required":true,"schema":{"type":"integer"},"description":"Kalenderjahr"}],"responses":{"200":{"description":"The export file (ZIP).","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"422":{"description":"Preflight failed — required export metadata or crop mappings missing, or a blocking validation issue (see `preflight.issues`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportPreflightResponse"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_export_st","summary":"Download the Sachsen-Anhalt fertilizer notification (LLG) as a ZIP","x-keywords":"mitteilungspflicht sachsen-anhalt düngung export","x-agmeo-effect":"create"}},"/api/{orgId}/soil/zones/export":{"get":{"description":"The org's soil sampling zonations (Bodenzonenkarten) as one FeatureCollection — GeoJSON or a Shapefile ZIP (WGS84), same feature shape as the app's export modal. Feature properties include the zone color and, for imported survey zones, soilTypeText/nfkMm/nfk30-70Pct. fieldIds optional (comma-separated UUIDs, default all fields).","tags":["Exports"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"format","description":"Output format: one GeoJSON FeatureCollection, or a Shapefile ZIP","required":false,"schema":{"type":"string","enum":["geojson","shapefile"],"default":"geojson"}},{"in":"query","name":"fieldIds","required":false,"schema":{"type":"string"},"description":"Comma-separated field UUIDs"}],"responses":{"200":{"description":"GeoJSON FeatureCollection or Shapefile ZIP.","content":{"application/geo+json":{"schema":{"type":"string","format":"binary"}},"application/zip":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_soil_zones_export","summary":"Download all soil sampling zonations as GeoJSON or Shapefile","x-keywords":"bodenzonenkarten probenahmeplan export shape","x-agmeo-effect":"read"}},"/api/{orgId}/annotations":{"get":{"description":"Mobile capture items (notes, photos, voice memos, receipt scans), newest capture first. ?since= switches to delta mode (updatedAt after the timestamp, soft-deleted rows as tombstones). Distinct from the spatial map annotations (SpatialAnnotations) under /fields/{id}/annotations.","tags":["Capture"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":0},"description":"Page number (0-indexed)"},{"in":"query","name":"pageSize","description":"Number of items per page","required":false,"schema":{"type":"integer","default":200,"maximum":1000}},{"in":"query","name":"fieldId","required":false,"schema":{"type":"string","format":"uuid"},"description":"Only capture items of this field"},{"in":"query","name":"kind","description":"Only capture items of this kind","required":false,"schema":{"type":"string","enum":["note","photo","voice","receipt"]}},{"in":"query","name":"since","required":false,"schema":{"type":"string","format":"date-time"},"description":"Delta sync: items with updatedAt after this timestamp, incl. tombstones"}],"responses":{"200":{"description":"Success.","headers":{"X-Page":{"schema":{"type":"integer"}},"X-Page-Size":{"schema":{"type":"integer"}},"X-Total-Items":{"schema":{"type":"integer"}},"X-Has-Next":{"schema":{"type":"boolean"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCaptureAnnotationsResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_annotations","summary":"List mobile capture items (notes, photos, voice memos, receipt scans)","x-keywords":"notizen fotos beobachtungen feldnotizen field notes observations scouting bonitur belege","x-agmeo-effect":"read"},"post":{"description":"Create a capture item. Idempotent on the client-generated id: first call 201, replay 200 — never 409. Photo/audio files are uploaded first via /files/presign + /files/confirm and referenced by fileKeys.","tags":["Capture"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCaptureAnnotationRequest"}}}},"responses":{"200":{"description":"Idempotent replay: Returns { id }."},"201":{"description":"Created: Returns { id }."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_annotations","summary":"Create a capture item (note, photo, voice memo)","x-keywords":"notiz anlegen beobachtung foto field note observation","x-agmeo-effect":"create"}},"/api/{orgId}/annotations/{id}":{"patch":{"description":"Partial update of a capture item (text, category, details); deleted: true soft-deletes it (tombstoned in ?since= delta syncs).","tags":["Capture"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The capture item ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchCaptureAnnotationRequest"}}}},"responses":{"200":{"description":"The updated item.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureAnnotationResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"patch_annotations_id","summary":"Update or soft-delete a capture item","x-keywords":"notiz ändern löschen","x-agmeo-effect":"update"}},"/api/{orgId}/voice-drafts":{"get":{"description":"Voice transcription drafts, newest first. The cron worker turns voice capture annotations into structured OperationDraft cards; the app lists them here. ?since= switches to delta mode (updatedAt after the timestamp). Paginated like /annotations.","tags":["Voice Drafts"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":0},"description":"Page number (0-indexed)"},{"in":"query","name":"pageSize","description":"Number of items per page","required":false,"schema":{"type":"integer","default":200,"maximum":1000}},{"in":"query","name":"status","description":"Only drafts in this status","required":false,"schema":{"type":"string","enum":["pending","transcribing","draft","confirmed","rejected","failed"]}},{"in":"query","name":"since","required":false,"schema":{"type":"string","format":"date-time"},"description":"Delta sync: drafts with updatedAt after this timestamp"}],"responses":{"200":{"description":"Success.","headers":{"X-Page":{"schema":{"type":"integer"}},"X-Page-Size":{"schema":{"type":"integer"}},"X-Total-Items":{"schema":{"type":"integer"}},"X-Has-Next":{"schema":{"type":"boolean"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetVoiceDraftsResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_voice_drafts","summary":"List voice transcription drafts","x-keywords":"sprachnotiz diktat entwurf","x-agmeo-effect":"read"}},"/api/{orgId}/voice-drafts/{id}/confirm":{"post":{"description":"The farmer accepted the draft card. Marks the draft confirmed; idempotent (confirming an already confirmed draft replays 200), any other state 409. Does not (yet) create the Transaction — confirm only records the decision.","tags":["Voice Drafts"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The voice draft ID"}],"responses":{"200":{"description":"The confirmed draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceDraftResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"409":{"description":"Draft is not in a confirmable state."},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_voice_drafts_id_confirm","summary":"Confirm a voice draft","x-keywords":"sprachnotiz bestätigen","x-agmeo-effect":"update"}},"/api/{orgId}/voice-drafts/{id}/reject":{"post":{"description":"The farmer dismissed the draft card. Marks the draft rejected; idempotent (rejecting an already rejected draft replays 200), any other state 409.","tags":["Voice Drafts"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The voice draft ID"}],"responses":{"200":{"description":"The rejected draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceDraftResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"409":{"description":"Draft is not in a rejectable state."},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_voice_drafts_id_reject","summary":"Reject a voice draft","x-keywords":"sprachnotiz verwerfen","x-agmeo-effect":"update"}},"/api/{orgId}/assistant/chat":{"post":{"description":"One model step of the on-device assistant loop (@agvolution/agmeo-assistant claudeProxyProvider). The app owns the agentic loop and runs all tools locally; the server holds the Anthropic key, pins the model (ASSISTANT_MODEL), owns the system prompt and meters the caller's agmeo Chat credits. Open to every signed-in member (session token; 403 for an API key); 429 with Retry-After once the monthly credits are used up; 422 when the user's text violates the usage policy.","tags":["Assistant"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistantChatRequest"}}}},"responses":{"200":{"description":"The model step: assistant text plus tool calls the client must run locally.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistantChatResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"422":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"429":{"description":"Rate limit exceeded for the organization. Retry after the number of seconds in `Retry-After`.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"Whole seconds until the rate-limit window rolls over and the request can be retried."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"502":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_assistant_chat","summary":"Run one model step of the on-device assistant (mobile app only)","x-agmeo-effect":"compute"}},"/api/{orgId}/assistant/entitlement":{"get":{"description":"Whether the caller may use the assistant. Every signed-in member is entitled ('free'): the assistant runs on the caller's agmeo Chat allowance, and the chat relay answers 429 once it is used up. An API key is not entitled, because the relay takes session tokens only.","tags":["Assistant"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"responses":{"200":{"description":"Entitlement state.","content":{"application/json":{"schema":{"type":"object","properties":{"entitled":{"type":"boolean"},"source":{"type":"string","enum":["free"],"nullable":true}},"required":["entitled","source"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_assistant_entitlement","summary":"Check whether the caller may use the assistant (every signed-in member; not an API key)","x-keywords":"assistent assistentenzugang","x-agmeo-effect":"read"}},"/api/{orgId}/assistant/web-search":{"get":{"description":"Web-search relay for the assistant's webSearch tool (Brave, German-market bias). Degrades to an empty result list when the key is missing or the upstream fails, keeping the assistant turn alive.","tags":["Assistant"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"q","required":true,"schema":{"type":"string"},"description":"Search query"},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":5,"maximum":10},"description":"Maximum number of results"}],"responses":{"200":{"description":"Search results (possibly empty).","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"url":{"type":"string"},"snippet":{"type":"string"}}}}}}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}}},"operationId":"get_assistant_web_search","summary":"Search the web for the assistant","x-keywords":"websuche internet","x-agmeo-effect":"read"}},"/api/{orgId}/live-locations":{"post":{"description":"Batch-ingest live driver GPS fixes from the agmeo-field app. The driver identity is the authenticated user (tokens without a user context are rejected). Idempotent on the client-generated point ids: replayed points are counted as duplicates, never 409.","tags":["Live Locations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLiveLocationsRequest"}}}},"responses":{"200":{"description":"Full replay — every point was already stored. Returns { inserted, duplicates }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLiveLocationsResponse"}}}},"201":{"description":"At least one new point stored. Returns { inserted, duplicates }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLiveLocationsResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_live_locations","summary":"Ingest live driver GPS fixes from the field app","x-agmeo-effect":"create"}},"/api/{orgId}/saved-locations":{"get":{"description":"Map bookmarks saved in the agmeo-field app, by name. ?since= switches to delta mode (updatedAt after the timestamp, soft-deleted rows as tombstones). Each row carries a denormalized snapshot of its client-side category (id, name, color).","tags":["Saved Locations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"since","required":false,"schema":{"type":"string","format":"date-time"},"description":"Delta sync: locations with updatedAt after this timestamp, incl. tombstones"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSavedLocationsResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_saved_locations","summary":"List saved map locations (bookmarks)","x-keywords":"orte lesezeichen punkte hofstelle places","x-agmeo-effect":"read"},"post":{"description":"Create a saved location. Idempotent on the client-generated id: first call 201, replay 200 — never 409.","tags":["Saved Locations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSavedLocationRequest"}}}},"responses":{"200":{"description":"Replay — the location already exists. Returns { id }."},"201":{"description":"Created. Returns { id }."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_saved_locations","summary":"Create a saved map location","x-keywords":"ort speichern lesezeichen","x-agmeo-effect":"create"}},"/api/{orgId}/saved-locations/{id}":{"patch":{"description":"Rename or recategorize a saved location. Only provided fields change.","tags":["Saved Locations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The saved location ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchSavedLocationRequest"}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedLocationResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"patch_saved_locations_id","summary":"Rename or recategorize a saved map location","x-agmeo-effect":"update"},"delete":{"description":"Soft-delete a saved location (tombstoned in ?since= delta syncs). Idempotent: 204 also when it is already deleted or unknown.","tags":["Saved Locations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The saved location ID"}],"responses":{"204":{"description":"Deleted."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_saved_locations_id","summary":"Delete a saved map location","x-agmeo-effect":"delete"}},"/api/{orgId}/soil-sampling/sessions":{"post":{"description":"Create a soil sampling session. Idempotent on the client-generated id: first call 201, replay 200.","tags":["Soil Sampling"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSoilSamplingSessionRequest"}}}},"responses":{"200":{"description":"Replay — the session already exists. Returns { id }."},"201":{"description":"Created. Returns { id }."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"409":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_soil_sampling_sessions","summary":"Create a soil sampling session (a sampling run in the field)","x-keywords":"probenahme beprobung bodenprobe ziehen sitzung","x-agmeo-effect":"create"}},"/api/{orgId}/soil-sampling/sessions/{id}":{"delete":{"description":"Delete a session and its points. Idempotent: 204 also when it is already deleted or unknown.","tags":["Soil Sampling"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The session ID"}],"responses":{"204":{"description":"Deleted."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_soil_sampling_sessions_id","summary":"Delete a soil sampling session with its points","x-agmeo-effect":"delete"}},"/api/{orgId}/soil-sampling/sessions/{id}/points":{"post":{"description":"Add a probe to a session. Idempotent on the client-generated id: first call 201, replay 200.","tags":["Soil Sampling"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The session ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSoilSamplingPointRequest"}}}},"responses":{"200":{"description":"Replay — the point already exists. Returns { id }."},"201":{"description":"Created. Returns { id }."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"409":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_soil_sampling_sessions_id_points","summary":"Add a probe point to a soil sampling session","x-keywords":"probenahmepunkt einstich probe","x-agmeo-effect":"create"}},"/api/{orgId}/soil-sampling/sessions/{id}/points/{pointId}":{"delete":{"description":"Delete a probe. Idempotent: 204 also when it is already deleted or unknown.","tags":["Soil Sampling"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The session ID"},{"in":"path","name":"pointId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The point ID"}],"responses":{"204":{"description":"Deleted."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_soil_sampling_sessions_id_points_point_id","summary":"Delete a probe point of a soil sampling session","x-agmeo-effect":"delete"}},"/api/{orgId}/files/presign":{"post":{"description":"Presigned PUT URLs (Hetzner object storage, ~300 s TTL) for a batch of uploads. Register the files after uploading via /files/confirm.","tags":["Files"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresignFilesRequest"}}}},"responses":{"200":{"description":"Presigned URLs per file.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresignFilesResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_files_presign","summary":"Get presigned upload URLs for a batch of files","x-keywords":"hochladen upload","x-agmeo-effect":"compute"}},"/api/{orgId}/files/confirm":{"post":{"description":"Register uploaded files as UserFiles rows after the presigned PUTs succeeded. Idempotent — replayed fileKeys are ignored.","tags":["Files"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmFilesRequest"}}}},"responses":{"200":{"description":"Success: Returns { success: true }."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_files_confirm","summary":"Register files after their presigned uploads","x-keywords":"hochladen upload","x-agmeo-effect":"create"}},"/api/{orgId}/fields/{id}/weather":{"get":{"description":"48 h hourly weather with the platform's per-hour spray score (0 = best, 3 = unsuitable — the server convention from the web app's condition scoring) and 7 d daily aggregates, from the field's latest cultivation timeseries. Wind speeds in m/s.","tags":["Weather"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"}],"responses":{"200":{"description":"Hourly + daily weather.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldWeatherResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_weather","summary":"Get a field's weather: 48 h hourly with spray score, 7 d daily (rain, temperature, wind)","x-keywords":"wetter wettervorhersage vorhersage forecast regen niederschlag rain precipitation temperatur wind spritzwetter spray window spritzfenster next days nächste tage","x-agmeo-effect":"read"}},"/api/{orgId}/tasks":{"get":{"description":"All task rows of the organization (one per operation that has task metadata: assignment, priority, deadline, comments), most urgent deadline first. Filters: operationId, assignedOperatorId, priority. Soft-deleted tasks are hidden; with ?since= they are returned as { id, deleted: true } tombstones.","tags":["Tasks"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"operationId","required":false,"schema":{"type":"string","format":"uuid"},"description":"Only the task of this operation"},{"in":"query","name":"assignedOperatorId","required":false,"schema":{"type":"string","format":"uuid"},"description":"Only tasks assigned to this operator"},{"in":"query","name":"priority","description":"Only tasks of this priority","required":false,"schema":{"type":"string","enum":["LOW","NORMAL","HIGH","URGENT"]}},{"in":"query","name":"done","required":false,"schema":{"type":"boolean"},"description":"Filter by completion (done = every transaction of the operation is DOCUMENTATION)"},{"in":"query","name":"since","required":false,"schema":{"type":"string","format":"date-time"},"description":"Delta sync: only tasks with updatedAt after this timestamp — deletions included as tombstones"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTasksResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_tasks","summary":"List tasks (assignment, priority, deadline, done) of the organization's operations","x-keywords":"aufgaben todo to-do offen open urgent dringend fällig deadline arbeitsaufträge auftrag assigned","x-agmeo-effect":"read"}},"/api/{orgId}/tasks/{id}":{"patch":{"description":"Set task completion. done: true documents the task's whole operation (all transaction rows → DOCUMENTATION incl. warehouse booking and BBCH snapshot freeze); false rolls back to PLANNING. Idempotent.","tags":["Tasks"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The task ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchTaskRequest"}}}},"responses":{"200":{"description":"The task.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"patch_tasks_id","summary":"Mark a task done or not done","x-keywords":"aufgabe erledigt abhaken","x-agmeo-effect":"update"}},"/api/{orgId}/tasks/{id}/comments":{"post":{"description":"Append a comment to the task. Append-only and idempotent on the client-supplied comment id (201 on first write, 200 on replay). Author from the token: session tokens store the acting user with a denormalized name, api-key tokens store null.","tags":["Tasks"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The task ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaskCommentRequest"}}}},"responses":{"200":{"description":"Idempotent replay: Returns { id }."},"201":{"description":"Created: Returns { id }."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_tasks_id_comments","summary":"Add a comment to a task","x-keywords":"aufgabe kommentar notiz","x-agmeo-effect":"create"}},"/api/{orgId}/operations/{id}/task":{"get":{"description":"The task metadata of one operation.","tags":["Tasks"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The operation ID"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_operations_id_task","summary":"Get the task of one operation","x-keywords":"aufgabe","x-agmeo-effect":"read"},"put":{"description":"Upsert the operation's task metadata — created on first write, one task per operation (same semantics as the app's task board). Only provided fields change; a soft-deleted task is resurrected by the write.","tags":["Tasks"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The operation ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertTaskRequest"}}}},"responses":{"200":{"description":"The task after the upsert.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"put_operations_id_task","summary":"Create or update the task of an operation (assignee, priority, deadline)","x-keywords":"aufgabe anlegen zuweisen priorität frist create task assign","x-agmeo-effect":"update"},"delete":{"description":"Soft-delete the operation's task metadata. The task disappears from listings but is kept as a tombstone for GET /tasks?since= delta sync; a later PUT resurrects it.","tags":["Tasks"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The operation ID"}],"responses":{"204":{"description":"Deleted."},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_operations_id_task","summary":"Delete the task of an operation","x-keywords":"aufgabe löschen","x-agmeo-effect":"delete"}},"/api/{orgId}/news":{"get":{"description":"The organization's current news feed: org-scoped and global items within their validity window, audience-filtered, newest first (max 20). ?lang=de|en selects the language (default de). Generated items refresh on demand — idempotent within each generator's cadence window.","tags":["News"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"lang","required":false,"schema":{"type":"string","enum":["de","en"],"default":"de"},"description":"Falls back to the Accept-Language header"},{"in":"query","name":"since","required":false,"schema":{"type":"string","format":"date-time"},"description":"Delta sync: items touched after this timestamp; no-longer-visible ones as tombstones"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetNewsResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_news","summary":"List the organization's current news feed items","x-keywords":"neuigkeiten announcements meldungen hinweise","x-agmeo-effect":"read"}},"/api/{orgId}/settings/display":{"get":{"description":"The organization's effective measurement system, currency, country and time zone, resolved exactly like the web app (explicit Settings → Region values win; otherwise derived from the org's fields). `explicit` holds the hand-set values (null = derived). Prices from /articles and /prices are nominal values in `currency`; quantities on the wire stay canonical metric whatever `measurementSystem` says.","tags":["Settings"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisplaySettingsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_settings_display","summary":"Get the organization's units, currency, country and time zone","x-keywords":"metric imperial measurement system region locale währung einheiten zeitzone land","x-agmeo-effect":"read"}},"/api/{orgId}/predictions/timeseries":{"post":{"description":"Cultivation timeseries for a field/year: weather, satellite indices, disease risk and phenology as stored in CultivationTimeseries (filled by the platform's crawlers).","tags":["Predictions"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostTimeseriesRequest"}}}},"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralTimeseries"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_predictions_timeseries","summary":"Get a field's stored time series: weather, satellite indices, disease risk, phenology","x-keywords":"zeitreihe verlauf krankheitsrisiko infektionsrisiko disease pressure ndvi trend history","x-agmeo-effect":"compute"}},"/api/{orgId}/crop-rotations":{"get":{"description":"Get all crop rotations for the organization.","tags":["Crop Rotations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":0,"minimum":0},"description":"Page number (0-indexed)"},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":1000},"description":"Number of items per page"},{"in":"query","name":"includeEntries","required":false,"schema":{"type":"boolean","default":false},"description":"Include rotation entries in response"}],"responses":{"200":{"description":"Success: Returns list of crop rotations.","headers":{"X-Page":{"schema":{"type":"integer"},"description":"Current page number"},"X-Page-Size":{"schema":{"type":"integer"},"description":"Items per page"},"X-Total-Items":{"schema":{"type":"integer"},"description":"Total items"},"X-Has-Next":{"schema":{"type":"boolean"},"description":"More pages available"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCropRotationsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_crop_rotations","summary":"List crop rotations with their crop sequence","x-keywords":"fruchtfolge fruchtfolgen rotation sequence","x-agmeo-effect":"read"},"post":{"description":"Create a new crop rotation with optional entries.","tags":["Crop Rotations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"description":"Crop rotation data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCropRotationRequest"}}}},"responses":{"201":{"description":"Success: Returns the created crop rotation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropRotationResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_crop_rotations","summary":"Create a crop rotation","x-keywords":"fruchtfolge anlegen","x-agmeo-effect":"create"}},"/api/{orgId}/crop-rotations/{id}":{"get":{"description":"Get a single crop rotation by ID with all its entries.","tags":["Crop Rotations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The crop rotation ID"}],"responses":{"200":{"description":"Success: Returns the crop rotation with entries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropRotationResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_crop_rotations_id","summary":"Get one crop rotation with its entries","x-keywords":"fruchtfolge","x-agmeo-effect":"read"},"patch":{"description":"Update a crop rotation.","tags":["Crop Rotations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The crop rotation ID"}],"requestBody":{"required":true,"description":"Crop rotation update data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCropRotationRequest"}}}},"responses":{"200":{"description":"Success: Returns the updated crop rotation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropRotationResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"patch_crop_rotations_id","summary":"Rename a crop rotation","x-keywords":"fruchtfolge ändern","x-agmeo-effect":"update"},"delete":{"description":"Delete a crop rotation (entries are cascade deleted).","tags":["Crop Rotations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The crop rotation ID"}],"responses":{"204":{"description":"Crop rotation deleted successfully"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_crop_rotations_id","summary":"Delete a crop rotation","x-keywords":"fruchtfolge löschen","x-agmeo-effect":"delete"}},"/api/{orgId}/crop-rotations/{id}/entries":{"post":{"description":"Add a new entry to a crop rotation.","tags":["Crop Rotations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The crop rotation ID"}],"requestBody":{"required":true,"description":"Crop rotation entry data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCropRotationEntryRequest"}}}},"responses":{"201":{"description":"Success: Returns the created entry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropRotationEntryResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_crop_rotations_id_entries","summary":"Add a crop to a crop rotation","x-keywords":"fruchtfolge glied hinzufügen","x-agmeo-effect":"create"}},"/api/{orgId}/crop-rotations/{id}/entries/{entryId}":{"patch":{"description":"Update a crop rotation entry.","tags":["Crop Rotations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The crop rotation ID"},{"in":"path","name":"entryId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The entry ID"}],"requestBody":{"required":true,"description":"Entry update data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCropRotationEntryRequest"}}}},"responses":{"200":{"description":"Success: Returns the updated entry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropRotationEntryResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"patch_crop_rotations_id_entries_entry_id","summary":"Update a crop rotation entry","x-agmeo-effect":"update"},"delete":{"description":"Delete a crop rotation entry.","tags":["Crop Rotations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The crop rotation ID"},{"in":"path","name":"entryId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The entry ID"}],"responses":{"204":{"description":"Entry deleted successfully"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_crop_rotations_id_entries_entry_id","summary":"Remove a crop from a crop rotation","x-agmeo-effect":"delete"}},"/api/{orgId}/warehouse/stock":{"get":{"description":"Get the organization's warehouse stock entries (non-voided bookings), newest bookedAt first. The polymorphic product reference (Article fqn | PSM kennr | crop variety) is resolved server-side to a stable articleId + display-ready articleName; stock per article = Σ IN − OUT − OPERATION. Supports pagination and filtering by articleId, direction, and booking time.","tags":["Warehouse"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":0,"minimum":0},"description":"Page number (0-indexed)"},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","default":200,"minimum":1,"maximum":1000},"description":"Number of items per page (default: 200, max: 1000)"},{"in":"query","name":"articleId","required":false,"schema":{"type":"string"},"description":"Filter by resolved product key (Article fqn, PSM kennr, or crop variety uuid — the same value returned as articleId)"},{"in":"query","name":"direction","required":false,"schema":{"type":"string","enum":["IN","OUT","OPERATION"]},"description":"Filter by booking direction"},{"in":"query","name":"since","required":false,"schema":{"type":"string","format":"date-time"},"description":"Only entries with bookedAt >= since (ISO datetime)"}],"responses":{"200":{"description":"Success","headers":{"X-Page":{"schema":{"type":"integer"},"description":"Current page number (0-indexed)"},"X-Page-Size":{"schema":{"type":"integer"},"description":"Number of items per page"},"X-Total-Items":{"schema":{"type":"integer"},"description":"Total number of items matching the filters"},"X-Has-Next":{"schema":{"type":"boolean"},"description":"Whether there are more pages available"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetWarehouseStockResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_warehouse_stock","summary":"List warehouse stock bookings (IN, OUT, OPERATION) per article","x-keywords":"lager lagerbestand bestand vorrat inventory warehouse balance wareneingang","x-agmeo-effect":"read"}},"/api/{orgId}/articles":{"get":{"description":"Get the organization's own articles and the system articles offered in its countries (the catalogue the web pickers show: a US organization gets no German BVL/KTBL-only articles). Prices are in the organization's currency (`currency` on every item): system catalogue prices are EUR defaults, converted for European organizations and null for all others.","tags":["Articles"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":0,"minimum":0},"description":"Page number (0-indexed)"},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":1000},"description":"Number of items per page"},{"in":"query","name":"operationCategory","required":false,"schema":{"type":"string"},"description":"Filter by operation category"},{"in":"query","name":"actionOrProduct","required":false,"schema":{"type":"string","enum":["action","product"]},"description":"Filter by action or product"},{"in":"query","name":"ownerOnly","required":false,"schema":{"type":"boolean","default":false},"description":"Only show organization-owned articles (exclude system articles)"}],"responses":{"200":{"description":"Success: Returns list of articles.","headers":{"X-Page":{"schema":{"type":"integer"},"description":"Current page number"},"X-Page-Size":{"schema":{"type":"integer"},"description":"Items per page"},"X-Total-Items":{"schema":{"type":"integer"},"description":"Total items"},"X-Has-Next":{"schema":{"type":"boolean"},"description":"More pages available"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetArticlesResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_articles","summary":"List articles: products and machine actions with their ids (FQN) and prices","x-keywords":"artikel produkte betriebsmittel dünger duenger fertilizer pflanzenschutzmittel psm pesticide seed saatgut article id fqn katalog catalogue name lookup","x-agmeo-effect":"read"}},"/api/{orgId}/articles/{fqn}":{"get":{"description":"Get a single article by fqn, priced like the list (organization currency). Not country-gated, so historic operations keep resolving every article they reference.","tags":["Articles"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"fqn","required":true,"schema":{"type":"string"},"description":"The article fully qualified name"}],"responses":{"200":{"description":"Success: Returns the article.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_articles_fqn","summary":"Get one article by its id (FQN), with its price","x-keywords":"artikel produkt nährstoffgehalt nutrient content","x-agmeo-effect":"read"}},"/api/{orgId}/articles/{fqn}/metadata":{"get":{"description":"Get all metadata for an article.","tags":["Article Metadata"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"fqn","required":true,"schema":{"type":"string"},"description":"The article fully qualified name"}],"responses":{"200":{"description":"Success: Returns list of metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetArticleMetadataResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_articles_fqn_metadata","summary":"List an article's metadata (manufacturer, website, data sheet, properties)","x-keywords":"hersteller datenblatt sicherheitsdatenblatt artikel zusatzinfo","x-agmeo-effect":"read"},"post":{"description":"Create new metadata for an article.","tags":["Article Metadata"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"fqn","required":true,"schema":{"type":"string"},"description":"The article fully qualified name"}],"requestBody":{"required":true,"description":"Metadata data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateArticleMetadataRequest"}}}},"responses":{"201":{"description":"Success: Returns the created metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleMetadataResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_articles_fqn_metadata","summary":"Add metadata to an article","x-keywords":"hersteller datenblatt artikel","x-agmeo-effect":"create"}},"/api/{orgId}/articles/{fqn}/metadata/{metadataId}":{"patch":{"description":"Update article metadata (only metadata created by this org can be updated).","tags":["Article Metadata"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"fqn","required":true,"schema":{"type":"string"},"description":"The article fully qualified name"},{"in":"path","name":"metadataId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The metadata ID"}],"requestBody":{"required":true,"description":"Metadata update data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateArticleMetadataRequest"}}}},"responses":{"200":{"description":"Success: Returns the updated metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleMetadataResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"patch_articles_fqn_metadata_metadata_id","summary":"Update one of the organization's article metadata rows","x-agmeo-effect":"update"},"delete":{"description":"Delete article metadata (only metadata created by this org can be deleted).","tags":["Article Metadata"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"fqn","required":true,"schema":{"type":"string"},"description":"The article fully qualified name"},{"in":"path","name":"metadataId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The metadata ID"}],"responses":{"204":{"description":"Metadata deleted successfully"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_articles_fqn_metadata_metadata_id","summary":"Delete one of the organization's article metadata rows","x-agmeo-effect":"delete"}},"/api/{orgId}/files":{"get":{"description":"Get all files for the organization. Supports pagination and filtering by year, by folder (folderId) or by system folder (systemFolder — resolved to the org's app-managed folder). Every item carries its folderId; the folder tree is at GET /api/{orgId}/files/folders.","tags":["Files"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":0,"minimum":0},"description":"Page number (0-indexed)"},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":1000},"description":"Number of items per page"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Filter by year"},{"in":"query","name":"folderId","required":false,"schema":{"type":"string","format":"uuid"},"description":"Only direct children of this folder (see GET /api/{orgId}/files/folders)"},{"in":"query","name":"systemFolder","required":false,"schema":{"type":"string","enum":["imports","exports","applicationMaps","reports"]},"description":"Only files in this app-managed folder; takes precedence over folderId"}],"responses":{"200":{"description":"Success: Returns list of files.","headers":{"X-Page":{"schema":{"type":"integer"},"description":"Current page number"},"X-Page-Size":{"schema":{"type":"integer"},"description":"Items per page"},"X-Total-Items":{"schema":{"type":"integer"},"description":"Total items"},"X-Has-Next":{"schema":{"type":"boolean"},"description":"More pages available"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetFilesResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_files","summary":"List the organization's files (name, type, size, folder)","x-keywords":"dateien dokumente documents uploads pdf","x-agmeo-effect":"read"},"post":{"description":"Upload a new file. The file is stored in object storage with a generated key. The mime type and size are derived automatically from the uploaded file. Organization storage limits apply.","tags":["Files"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"description":"File upload as multipart/form-data","content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"The file to upload"},"name":{"type":"string","description":"Override for filename (optional, defaults to original filename)"},"year":{"type":"integer","description":"Year associated with the file (optional)"},"description":{"type":"string","description":"File description (optional)"}}}}}},"responses":{"201":{"description":"Success: Returns the created file metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"413":{"description":"Storage limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_files","summary":"Upload a file (multipart)","x-keywords":"datei hochladen","x-agmeo-effect":"create"}},"/api/{orgId}/files/{fileKey}":{"get":{"description":"Get file metadata by key. Use ?download=true to get a presigned download URL instead. The fileKey is scoped to your organization (e.g., 'uuid_filename.pdf').","tags":["Files"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"fileKey","required":true,"schema":{"type":"string"},"description":"The scoped file key (e.g., 'uuid_filename.pdf'). This is the key returned by the upload or list endpoints."},{"in":"query","name":"download","required":false,"schema":{"type":"boolean","default":false},"description":"Set to true to get a presigned download URL instead of file metadata"}],"responses":{"200":{"description":"Success: Returns file metadata or presigned URL depending on download parameter.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/FileResponse"},{"$ref":"#/components/schemas/PresignedUrlResponse"}]}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_files_file_key","summary":"Get one file's metadata or a download URL","x-keywords":"datei download link","x-agmeo-effect":"read"},"patch":{"description":"Update file metadata.","tags":["Files"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"fileKey","required":true,"schema":{"type":"string"},"description":"The scoped file key (e.g., 'uuid_filename.pdf'). This is the key returned by the upload or list endpoints."}],"requestBody":{"required":true,"description":"File metadata to update","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFileRequest"}}}},"responses":{"200":{"description":"Success: Returns the updated file.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"patch_files_file_key","summary":"Update a file's name, year or description","x-keywords":"datei umbenennen beschreibung","x-agmeo-effect":"update"},"delete":{"description":"Soft-delete a file.","tags":["Files"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"fileKey","required":true,"schema":{"type":"string"},"description":"The scoped file key (e.g., 'uuid_filename.pdf'). This is the key returned by the upload or list endpoints."}],"responses":{"204":{"description":"File deleted successfully"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_files_file_key","summary":"Delete a file","x-keywords":"datei löschen","x-agmeo-effect":"delete"}},"/api/{orgId}/files/storage":{"get":{"description":"Get storage usage information for the organization. Returns used bytes, limit, percentage, and remaining bytes.","tags":["Files"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"responses":{"200":{"description":"Success: Returns storage usage information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageUsageResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_files_storage","summary":"Get the organization's storage usage","x-keywords":"speicherplatz quota","x-agmeo-effect":"read"}},"/api/{orgId}/usage/analyses":{"get":{"description":"The organization's raster analyses of one calendar month (UTC), one row per polygon or field: the name, file and attributes the caller sent as `reference` with the analysis, its hectares, the layers, the requests and the credits at list price (50 per request, 5,000 per hectare once per layer and month). Billable callers only (API keys, OAuth apps, agmeo Maps). `format=csv` downloads the accounting export. The credit ledger is what is billed; this is its per-polygon breakdown.","tags":["B2B Raster Analysis"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"month","required":false,"schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"description":"Calendar month as YYYY-MM (UTC); default: the current one."},{"in":"query","name":"format","required":false,"schema":{"type":"string","enum":["json","csv"],"default":"json"},"description":"`csv` downloads the rows as a CSV file (UTF-8, comma-separated)."}],"responses":{"200":{"description":"The month's analyses per polygon, largest area first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisUsageResponse"}},"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_usage_analyses","summary":"List the organization's billed raster analyses of one month","x-keywords":"kartenanalysen analysenabrechnung billing","x-agmeo-effect":"read"}},"/api/{orgId}/files/folders":{"get":{"description":"The organization's folder tree as a flat list (parentId links children to parents), including the app-managed system folders (systemKey imports | exports | applicationMaps | reports). Combine with GET /api/{orgId}/files?folderId= to list a folder's files.","tags":["Files"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"responses":{"200":{"description":"Success: Returns the folder list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetFileFoldersResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_files_folders","summary":"List the organization's file folders","x-keywords":"ordner verzeichnis","x-agmeo-effect":"read"}},"/api/{orgId}/files/content":{"get":{"description":"Raw bytes of a stored file (at most 128 MB) with the file's own Content-Type, served from the API origin. In the chat sandbox agmeo.load_file(fileKey) calls this and saves the file to /workspace/in. GET /files/{fileKey} returns the metadata or a presigned URL instead.","tags":["Files"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"fileKey","required":true,"schema":{"type":"string"},"description":"The fileKey as listed by GET /files (with or without the organization prefix)"}],"responses":{"200":{"description":"The file content","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"413":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_files_content","summary":"Download a file's raw bytes by fileKey","x-keywords":"datei inhalt lesen read download","x-agmeo-effect":"read"}},"/api/{orgId}/import/schema":{"get":{"description":"The FarmImportRequest contract as JSON Schema, generated from the deployed zod definition. Fetch it at session start and validate every chunk against it before POST …/chunks — vendored copies cannot drift from the server this way. Input-typed: fields with server-side defaults stay optional.","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportSchemaResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_import_schema","summary":"Get the import payload contract (FarmImportRequest) as JSON Schema","x-keywords":"importformat datenimport importschema pflichtfelder","x-agmeo-effect":"read"}},"/api/{orgId}/import/snapshot":{"get":{"description":"Existing org data in a compact, import-oriented shape so an external matcher can propose matchHints and reference stable ids. Deliberately bounded: field geometries only with `geometry=simplified`, `include` + `year` scope the read, id-cursor pagination per entity via `entity` + `cursor`. `year` is required when including cultivations or operations. To match staged outlines against existing fields prefer POST /api/{orgId}/import/field-overlaps over comparing geometries client-side.","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"include","required":false,"schema":{"type":"string","default":"fields"},"description":"Comma list of fields, fieldGroups, cultivations, articles, operations"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Harvest year — required for cultivations and operations"},{"in":"query","name":"status","required":false,"schema":{"type":"string","enum":["PLANNING","IN_EXECUTION","DOCUMENTATION"]},"description":"Operations only: filter by transaction status"},{"in":"query","name":"geometry","required":false,"schema":{"type":"string","enum":["simplified"]},"description":"Fields only: add each field's outline (WGS84 GeoJSON, simplified to ≈1 m, 6 decimals). Large — lower pageSize"},{"in":"query","name":"entity","required":false,"schema":{"type":"string","enum":["fields","fieldGroups","cultivations","operations"]},"description":"Entity the `cursor` applies to (one entity is paginated per request)"},{"in":"query","name":"cursor","required":false,"schema":{"type":"string"},"description":"Last-seen id of `entity` from a previous response's nextCursors"},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","default":500,"minimum":1,"maximum":500},"description":"Rows per entity"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportSnapshotResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_import_snapshot","summary":"Get the organization's existing data in a compact shape for import matching","x-keywords":"datenimport importabgleich","x-agmeo-effect":"read"}},"/api/{orgId}/import/field-overlaps":{"post":{"description":"Read-only geometry matching before staging fields: for each staged outline (≤500 per call, each with a client `ref`), every existing org field sharing ground with it, with both stagedShare (intersection / staged area) and existingShare (intersection / existing area), a relation per overlap and a classification per outline (match | ambiguous | split | larger | partial | none | invalid). Tells a 1:1 match apart from a staged part of an existing field (split) and a staged field covering existing ones (larger) — the plan's geometry pass only measures the staged share. Broken geometries come back `invalid` with a reason; the rest of the batch still runs.","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportFieldOverlapsRequest"}}}},"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportFieldOverlapsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportValidationError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_import_field_overlaps","summary":"Match staged field outlines against the existing fields","x-agmeo-effect":"compute"}},"/api/{orgId}/import/jobs":{"get":{"description":"The 50 most recent import jobs of the organization (journal listing), newest first. ?requestId= restricts to the jobs linked to one AI-import request.","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"requestId","required":false,"schema":{"type":"string","format":"uuid"},"description":"Only jobs fulfilling this import request"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetImportJobsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_import_jobs","summary":"List the 50 most recent import jobs","x-keywords":"importe datenimport","x-agmeo-effect":"read"},"post":{"description":"Create an import job in `staging`. Then POST chunks, POST plan (dry-run diff + confirmationToken) and POST commit. With an idempotencyKey a retried creation returns the existing job (200, reused=true) instead of a duplicate. Pass requestId to link the job to the AI-import request it fulfils.","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateImportJobRequest"}}}},"responses":{"200":{"description":"Existing job returned for the idempotencyKey (reused=true).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportJobCreatedResponse"}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportJobCreatedResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportValidationError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_import_jobs","summary":"Create an import job","x-keywords":"import starten datenimport","x-agmeo-effect":"create"}},"/api/{orgId}/import/jobs/{jobId}":{"get":{"description":"Job status plus the journal records of the latest plan: what was imported, changed, skipped or not understood — each with matchedBy, changes, warnings, reason and (after commit) outcome.","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"jobId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The import job ID"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportJobDetailResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_import_jobs_job_id","summary":"Get an import job's status and per-record journal","x-keywords":"importstatus datenimport importfortschritt importprotokoll","x-agmeo-effect":"read"},"delete":{"description":"Abandon a not-yet-committed job (status → abandoned, staged data kept for audit). Committed and committing jobs are permanent audit records and return 409.","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"jobId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The import job ID"}],"responses":{"200":{"description":"Abandoned.","content":{"application/json":{"schema":{"type":"object","required":["jobId","status"],"properties":{"jobId":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["abandoned"]}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"409":{"description":"Job is committed or committing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_import_jobs_job_id","summary":"Abandon an import job that is not committed","x-agmeo-effect":"delete"}},"/api/{orgId}/import/jobs/{jobId}/chunks":{"post":{"description":"Stage one chunk (schema: GET /api/{orgId}/import/schema) — inline as a FarmImportRequest body, or by reference as {fileKey} / {chunkUrl} naming a JSON or NDJSON file of up to 25 MB that the server reads, validates as a whole and splits into chunks of the usual size (prefer this above ~200 records: the payload never passes through the caller). Each chunk is fully validated on receipt, so errors surface with entity paths (422; NDJSON issues carry the line). Soil method spellings and boundaries above 500 vertices are auto-corrected the same way for every source. tempIds must be unique across all chunks of a job. Staging is idempotent: the same file bytes or the same records again return duplicate=true and change nothing. Otherwise adding a chunk to a `planned` job resets it to `staging` and voids the confirmation token — a commit can only apply what the latest plan diffed. The chunk's contractVersion must match the job's (409 otherwise). Every call is journaled with its source and content hashes (chunkSources on GET …/jobs/{jobId}).","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"jobId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The import job ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/FarmImportRequest"},{"$ref":"#/components/schemas/ImportChunkReference"}]}}}},"responses":{"200":{"description":"Chunk staged (or duplicate=true: already staged, nothing changed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportChunkAcceptedResponse"}}}},"400":{"description":"Malformed reference: not exactly one of fileKey / chunkUrl, not https, host not allowed, redirect","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"chunkUrl names another bucket of the storage endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"409":{"description":"Job is no longer accepting chunks, contractVersion mismatch, or a concurrent staging call won (retry)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"413":{"description":"Referenced file is larger than 25 MB","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"415":{"description":"chunkUrl answered with a content type other than JSON / NDJSON / text","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportValidationError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"502":{"description":"chunkUrl could not be downloaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"504":{"description":"chunkUrl timed out (30 s)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_import_jobs_job_id_chunks","summary":"Stage one chunk of records in an import job","x-agmeo-effect":"update"}},"/api/{orgId}/import/jobs/{jobId}/uploads":{"post":{"description":"Presigned PUT URL (15 min) for a chunk file of this job — JSON or NDJSON, at most 25 MB — in the job's staging area of the org's object storage. Upload with plain HTTP (`curl -T operations.ndjson '<uploadUrl>'`), then POST …/chunks {fileKey}. Staging files get no UserFiles row, so they never appear in the customer's file browser or Imports folder.","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"jobId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The import job ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateImportUploadRequest"}}}},"responses":{"201":{"description":"Upload URL issued.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportUploadResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"409":{"description":"Job is no longer accepting chunks","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"413":{"description":"sizeBytes above 25 MB — split the file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_import_jobs_job_id_uploads","summary":"Get a presigned upload URL for an import chunk file","x-agmeo-effect":"create"}},"/api/{orgId}/import/jobs/{jobId}/plan":{"post":{"description":"Dry-run: match every staged record against existing org data and return a structured per-record diff (create / update / status-change / skip / conflict / invalid) with a confirmationToken. Nothing is written to domain tables. Re-planning replaces the journal rows; the token is bound to the diff. A job whose commit failed is planned again the same way — that is how the commit is retried. The response starts with `jobId`, `status` and `confirmationToken`; the records follow.","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"jobId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The import job ID"}],"responses":{"200":{"description":"Planned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportPlanResponse"}}}},"400":{"description":"Job has no staged records","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"409":{"description":"Job is committed, committing or abandoned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_import_jobs_job_id_plan","summary":"Dry-run an import job: per-record diff against existing data, and the confirmationToken","x-agmeo-effect":"update"}},"/api/{orgId}/import/jobs/{jobId}/commit":{"post":{"description":"Apply the confirmed plan. The job must be `planned` and the confirmationToken must equal the one the latest plan returned. The plan is rebuilt against current DB state — if org data changed since (another import, a user edit) the commit returns 409 and the caller must re-plan and confirm again. On success records are applied transactionally, per-record outcomes journaled, and the same async side effects as the interactive write paths dispatched (zonation run, weather/satellite crawls). On failure the job is `failed` with the error (see GET job) and the staged data is kept. The records are applied in one transaction: a failure up to its end wrote nothing, a failure after it (status changes, stock bookings, the per-record outcomes) leaves them written and the 500 carries their `idMap`. Either way plan the job again and commit with the new token — the plan is built against what the database holds by then, so its diff shows what is left to apply and what already exists.","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"jobId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The import job ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommitImportJobRequest"}}}},"responses":{"200":{"description":"Committed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportCommitResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"409":{"description":"Job not planned (the message says what its state allows: already committed, plan first, …), token does not match the latest plan, org data changed, or commit already running","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"No usable confirmationToken in the body: send the `confirmationToken` string of the latest plan response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiValidationError"}}}},"500":{"description":"Commit failed — job is `failed`, staged data kept; `error` names the cause, `message` whether the records were written. Plan again to retry","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string"},"error":{"type":"string"},"idMap":{"type":"object","description":"Only when the failure came after the records were written: the ids of the created entities, as in the 200 response"}}}}}}},"operationId":"post_import_jobs_job_id_commit","summary":"Apply an import job's latest plan (body: the confirmationToken that plan returned)","x-agmeo-effect":"create"}},"/api/{orgId}/import/requests":{"get":{"description":"AI-import requests of the organization, newest first. ?status= is a comma list (requested, in_progress, done, failed, cancelled); ?mine=1 restricts to requests of the calling user (session tokens only).","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"status","required":false,"schema":{"type":"string"},"description":"Comma list of requested, in_progress, done, failed, cancelled"},{"in":"query","name":"mine","required":false,"schema":{"type":"string","enum":["1"]},"description":"Only the calling user's requests (requires a user token)"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetImportRequestsResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_import_requests","summary":"List the organization's AI-import requests","x-keywords":"importanfragen ki-import datenübernahme","x-agmeo-effect":"read"},"post":{"description":"Open an AI-import request for the organization — the API twin of the app's 'request import' button. Snapshots the Imports folder (GET /api/{orgId}/files?systemFolder=imports to upload first), records the requester and opens the toolshed ticket that notifies the team. Requires a user identity (session or user-scoped API key); agvolution staff may file on behalf of a customer org (the staff user is then the requester). Idempotent while a request is open: returns the existing one with `created: false`. Effect: write.","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateImportRequestRequest"}}}},"responses":{"200":{"description":"A request is already open — returned as is (`created: false`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateImportRequestResponse"}}}},"201":{"description":"Request opened","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateImportRequestResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"409":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"post_import_requests","summary":"Open an AI-import request for the files in the Imports folder","x-keywords":"datenimport anfordern ki-import import beauftragen","x-agmeo-effect":"create"}},"/api/{orgId}/import/requests/{requestId}":{"get":{"description":"One request plus the LIVE contents of the Imports folder (files added after the request count too), each with a presigned download URL (300 s), plus the import jobs linked to it — the single call the fulfilment agent needs to start working.","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"requestId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The import request ID"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportRequestDetailResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_import_requests_request_id","summary":"Get one AI-import request with its files and jobs","x-keywords":"importanfrage ki-import dateien stand","x-agmeo-effect":"read"},"patch":{"description":"Move the request through its lifecycle: in_progress (claim), done (requires resultSummary — e-mails the requester, shows the in-app dialog, mirrors the toolshed ticket), failed (requires failureReason), cancelled. importJobIds are merged, learnings appended. Terminal states are final (409 on any further transition). Staff users may call this for any organization.","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"requestId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The import request ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportRequestPatchRequest"}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"409":{"description":"Transition not allowed from the current status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportValidationError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"patch_import_requests_request_id","summary":"Move an AI-import request through its lifecycle","x-agmeo-effect":"update"}},"/api/{orgId}/import/requests/{requestId}/acknowledge":{"post":{"description":"The requester dismissed the 'import ready' dialog. Only the requesting user can acknowledge (user token required); idempotent — acknowledged=false when already acknowledged or not the caller's request.","tags":["Import"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"requestId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The import request ID"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcknowledgeImportRequestResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_import_requests_request_id_acknowledge","summary":"Dismiss the 'import ready' dialog of a request","x-agmeo-effect":"update"}},"/api/{orgId}/support/bug-reports/check":{"post":{"description":"AI pre-flight of a bug report or feature request draft: an actionability score (0-100), one suggestion and up to four clarifying questions. Nothing is filed. Call it before POST /support/bug-reports and fold the answers into the text.","tags":["Support"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckBugReportRequest"}}}},"responses":{"200":{"description":"Assessment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckBugReportResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"502":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_support_bug_reports_check","summary":"Pre-check a bug report or feature request draft","x-keywords":"fehler melden feedback ticket","x-agmeo-effect":"compute"}},"/api/{orgId}/support/bug-reports":{"post":{"description":"File a bug report or feature request with the agvolution team as a ticket on internal.agvolution.com, on behalf of the calling user (their e-mail and organization are taken from the token — a user token is required, org-only API keys get 400). `priority` is recorded for Agvolution staff only. Screenshots are image files of the organization referenced by fileKey (upload them through the files API first), 4 MB in total. Returns the ticket number; reporters follow their tickets at https://internal.agvolution.com/feedback/my.","tags":["Support"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitBugReportRequest"}}}},"responses":{"201":{"description":"Ticket filed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitBugReportResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"413":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"502":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"503":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_support_bug_reports","summary":"File a bug report or feature request with the agvolution team","x-keywords":"fehler melden problem feedback wunsch ticket support","x-agmeo-effect":"create"}},"/api/staff/import-requests":{"get":{"description":"Cross-organization AI-import queue for Agvolution staff and the import agent. Not org-scoped: requires a session token or a user API key whose Clerk user has a staff e-mail (403 otherwise). Default lists open requests (requested, in_progress). Each item is fulfilled via the org-scoped /api/{orgId}/import/requests/{requestId} endpoints, which staff may call for any organization.","tags":["Import"],"parameters":[{"in":"query","name":"status","required":false,"schema":{"type":"string","default":"requested,in_progress"},"description":"Comma list of requested, in_progress, done, failed, cancelled"},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":500},"description":"Maximum number of requests"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetImportRequestsResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Staff access required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_staff_import_requests","summary":"List AI-import requests of all organizations (staff only)","x-keywords":"importanfragen alle betriebe mitarbeiter","x-agmeo-effect":"read"}},"/api/staff/import-requests/learnings":{"get":{"description":"What fulfilment hit that the product does not cover yet, aggregated across all requests by kind + entity with the latest example descriptions — roadmap input for the import contract. Staff only (session token or user API key with a staff e-mail).","tags":["Import"],"parameters":[{"in":"query","name":"since","required":false,"schema":{"type":"string","format":"date"},"description":"Only requests made on/after this ISO date"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportLearningsResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Staff access required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_staff_import_requests_learnings","summary":"List aggregated import learnings (staff only)","x-keywords":"importerkenntnisse lernpunkte mitarbeiter","x-agmeo-effect":"read"}},"/api/{orgId}/fields/{id}/{year}/soil-maps":{"get":{"description":"Get the soil map for a field with its zones.","tags":["Soil Maps"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"The harvest year"}],"responses":{"200":{"description":"Success: Returns the soil map with zones.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoilMapWithZonesResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_year_soil_maps","summary":"Get a field's soil map with its zones","x-keywords":"bodenkarte bodenart zonen","x-agmeo-effect":"read"},"post":{"description":"Create a soil map for a field.","tags":["Soil Maps"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"The harvest year"}],"requestBody":{"required":true,"description":"Soil map data with optional zones","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSoilMapRequest"}}}},"responses":{"201":{"description":"Success: Returns the created soil map.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoilMapWithZonesResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"409":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_fields_id_year_soil_maps","summary":"Create a soil map with zones for a field","x-keywords":"bodenkarte anlegen","x-agmeo-effect":"create"},"delete":{"description":"Delete a soil map for a field.","tags":["Soil Maps"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"The harvest year"}],"responses":{"204":{"description":"Soil map deleted successfully"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"delete_fields_id_year_soil_maps","summary":"Delete a field's soil map","x-keywords":"bodenkarte löschen","x-agmeo-effect":"delete"}},"/api/{orgId}/fields/{id}/{year}/satellite":{"get":{"description":"Retrieve a satellite image for a given field. Provide either date (direct lookup) or woy (searches for best scene in the ISO week). date takes priority over woy.","tags":["Satellite"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"The harvest year"},{"in":"query","name":"date","required":false,"schema":{"type":"string","format":"date"},"description":"Exact scene date (YYYY-MM-DD). Takes priority over woy. Either date or woy must be provided."},{"in":"query","name":"woy","required":false,"schema":{"type":"number","minimum":1,"maximum":53},"description":"Week of year. Fallback if date is not provided. Searches for the best scene (least cloud coverage) within the ISO week."},{"in":"query","name":"layer","required":true,"schema":{"type":"string","enum":["ndvi","lai","ndmi","ndwi","clouds","rgb","bsi","savi"]},"description":"Satellite layer type. For the 'clouds' layer, pixel values indicate: 1=CLEAR (rgb(141,211,199)), 2=SHADOW (rgb(255,255,179)), 3=WATER (rgb(190,186,218)), 4=CIRRUS (rgb(251,128,114)), 5=CLOUD (rgb(128,177,211)), 6=SNOW (rgb(253,180,98)). RGB colors apply to PNG output using Set3 colormap."},{"in":"query","name":"output","required":false,"schema":{"type":"string","enum":["geotiff","png"]},"default":"geotiff","description":"Output format. Default: geotiff"},{"in":"query","name":"resolution","required":false,"schema":{"type":"string","enum":["10m","3m"]},"default":"10m","description":"Image resolution. Default: 10m"}],"responses":{"200":{"description":"GeoTiff or PNG image in binary format","headers":{"x-cloud-coverage":{"description":"The cloud coverage percentage of the satellite image","schema":{"type":"number","format":"float","minimum":0,"maximum":100,"example":12.5}},"x-image-date":{"description":"The date of the satellite image","schema":{"type":"string","format":"date","example":"2023-01-01"}},"x-bounding-box-epsg-3857":{"description":"The bounding box of the returned image in EPSG:3857 coordinates (minX,minY,maxX,maxY)","schema":{"type":"string","example":"710609.9575104312,6016433.629414422,710999.9575104312,6016448.629414422"}},"x-resolution":{"description":"The resolution of the returned image","schema":{"type":"string","enum":["10m","3m"],"example":"10m"}}},"content":{"image/tiff":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_year_satellite","summary":"Get a satellite index image (NDVI, …) of a field as PNG or GeoTIFF","x-keywords":"satellitenbild ndvi biomasse vegetationsindex sentinel karte bild raster","x-agmeo-effect":"read"}},"/api/{orgId}/cultivations/{id}/satellite":{"get":{"description":"Retrieve a cacheable satellite-index image for a single cultivation. Keyed by cultivation id (not field+year, which is ambiguous — a field can have several cultivations per year via intercrops/double-cropping). An exact scene `date` is required, which makes the image content-addressed (served with a long immutable browser cache).","tags":["Satellite"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The cultivation ID"},{"in":"query","name":"layer","required":true,"schema":{"type":"string","enum":["ndvi","lai","ndmi","ndwi","clouds","rgb","bsi","savi"]},"description":"Satellite layer type. For the 'clouds' layer, pixel values indicate: 1=CLEAR (rgb(141,211,199)), 2=SHADOW (rgb(255,255,179)), 3=WATER (rgb(190,186,218)), 4=CIRRUS (rgb(251,128,114)), 5=CLOUD (rgb(128,177,211)), 6=SNOW (rgb(253,180,98)). RGB colors apply to PNG output using Set3 colormap."},{"in":"query","name":"date","required":true,"schema":{"type":"string","format":"date"},"description":"Exact scene date (YYYY-MM-DD). Required for this endpoint."},{"in":"query","name":"output","required":false,"schema":{"type":"string","enum":["png","geotiff"],"default":"png"},"description":"Output format. Default: png"},{"in":"query","name":"resolution","required":false,"schema":{"type":"string","enum":["10m","3m"]},"default":"10m","description":"Image resolution. Default: 10m"}],"responses":{"200":{"description":"GeoTiff or PNG image in binary format","headers":{"x-cloud-coverage":{"description":"The cloud coverage percentage of the satellite image","schema":{"type":"number","format":"float","minimum":0,"maximum":100,"example":12.5}},"x-image-date":{"description":"The date of the satellite image","schema":{"type":"string","format":"date","example":"2023-01-01"}},"x-bounding-box-epsg-3857":{"description":"The bounding box of the returned image in EPSG:3857 coordinates (minX,minY,maxX,maxY)","schema":{"type":"string","example":"710609.9575104312,6016433.629414422,710999.9575104312,6016448.629414422"}},"x-resolution":{"description":"The resolution of the returned image","schema":{"type":"string","enum":["10m","3m"],"example":"10m"}}},"content":{"image/tiff":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_cultivations_id_satellite","summary":"Get a cacheable satellite index image of one cultivation","x-keywords":"satellitenbild ndvi biomasse kultur","x-agmeo-effect":"read"}},"/api/{orgId}/fields/{id}/{year}/satellite/stats":{"get":{"description":"Retrieve satellite statistics for a given field. Provide either date (direct lookup) or woy (searches for best scene in the ISO week). date takes priority over woy. Returns mean, median, stddev, q20, and q80.","tags":["Satellite"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"The harvest year"},{"in":"query","name":"date","required":false,"schema":{"type":"string","format":"date"},"description":"Exact scene date (YYYY-MM-DD). Takes priority over woy. Either date or woy must be provided."},{"in":"query","name":"woy","required":false,"schema":{"type":"number","minimum":1,"maximum":53},"description":"Week of year. Fallback if date is not provided. Searches for the best scene (least cloud coverage) within the ISO week."},{"in":"query","name":"layer","required":true,"schema":{"type":"string","enum":["ndvi","lai","ndmi","ndwi","clouds","rgb","bsi","savi"]},"description":"Satellite layer type. For the 'clouds' layer, pixel values indicate: 1=CLEAR (rgb(141,211,199)), 2=SHADOW (rgb(255,255,179)), 3=WATER (rgb(190,186,218)), 4=CIRRUS (rgb(251,128,114)), 5=CLOUD (rgb(128,177,211)), 6=SNOW (rgb(253,180,98)). RGB colors apply to PNG output using Set3 colormap."},{"in":"query","name":"resolution","required":false,"schema":{"type":"string","enum":["10m","3m"]},"default":"10m","description":"Image resolution. Default: 10m"}],"responses":{"200":{"description":"Satellite statistics for the specified layer and date range","headers":{"x-image-date":{"description":"The date of the satellite image","schema":{"type":"string","format":"date","example":"2023-01-01"}},"x-cloud-coverage":{"description":"The cloud coverage percentage of the satellite image","schema":{"type":"number","format":"float","minimum":0,"maximum":100,"example":12.5}}},"content":{"application/json":{"schema":{"type":"object","properties":{"statistics":{"type":"object","properties":{"mean":{"type":"number","format":"double","description":"Mean value of the layer within the field boundary","example":0.311},"median":{"type":"number","format":"double","description":"Median value of the layer within the field boundary","example":0.31},"stddev":{"type":"number","format":"double","description":"Standard deviation of the layer values","example":0.029},"q20":{"type":"number","format":"double","description":"20th percentile of the layer values","example":0.283},"q80":{"type":"number","format":"double","description":"80th percentile of the layer values","example":0.338}},"required":["mean","median","stddev","q20","q80"]},"imageDate":{"type":"string","format":"date","nullable":true,"description":"The date of the satellite image","example":"2023-01-01"},"cloudCoverage":{"type":"number","format":"float","description":"The cloud coverage percentage of the satellite image (camelCase here; the scene list calls it cloud_coverage)","x-unit":"%","example":12.5}},"required":["statistics","imageDate","cloudCoverage"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_year_satellite_stats","summary":"Get a field's satellite index statistics for one scene (mean, median, stddev, q20, q80 of NDVI, …)","x-keywords":"ndvi mittelwert biomasse vegetationsindex statistik wert sentinel vitality vitalität","x-agmeo-effect":"read"}},"/api/{orgId}/fields/{id}/{year}/satellite/available":{"get":{"description":"List available satellite scenes for a given field in a given date range.","tags":["Satellite"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"The harvest year"},{"in":"query","name":"start_date","required":true,"schema":{"type":"string","format":"date"},"description":"Start date (YYYY-MM-DD)"},{"in":"query","name":"end_date","required":true,"schema":{"type":"string","format":"date"},"description":"End date (YYYY-MM-DD)"},{"in":"query","name":"coverage","required":false,"schema":{"type":"string","enum":["global","field"]},"default":"global","description":"Coverage type. Default: global"},{"in":"query","name":"max_cloud_cover","required":false,"schema":{"type":"number","minimum":0,"maximum":100},"default":80,"description":"Maximum cloud cover percentage. Default: 80"}],"responses":{"200":{"description":"List of available satellite scenes","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"Scene date","example":"2024-06-15"},"cloud_coverage":{"type":"number","format":"float","description":"Cloud coverage percentage (snake_case here; the scene statistics call it cloudCoverage)","x-unit":"%","example":12.5},"coverage_type":{"type":"string","description":"Coverage type","example":"field"}},"required":["date","cloud_coverage","coverage_type"]}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_year_satellite_available","summary":"List a field's satellite scenes in a date range with their cloud cover","x-keywords":"satellitenszenen aufnahmen überflüge wolken bewölkung cloud dates sentinel verfügbar","x-agmeo-effect":"read"}},"/api/{orgId}/fields/{id}/{year}/harvest":{"get":{"description":"Retrieve the harvest probability and status for a given field and year, derived from the maize-DMC forecast: probability that the crop has reached harvest maturity (whole-plant dry matter at or above the 33% silage target) as of today, a categorical status, a confidence level, and the analysis date. `harvested` requires the probability to stay ≥ 0.9 for three consecutive days — or a satellite-confirmed harvest (`harvestDetected.status = confirmed`, `trust = high`), which overrides the model call with probability 1. The DMC daily predictions are never changed by a satellite detection. Requires a maize field with a sowing date and a variety with a known FAO maturity. This is a maturity PROBABILITY (0–1) for silage maize, not a yield: harvested yields are in GET /fields/{id}/yield-history and GET /economics/profitability/{year}. Only for organizations with maize-DMC access; every other organization gets 401 \"Not authorized to access DMC endpoints\".","tags":["Satellite"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"The harvest year"}],"responses":{"200":{"description":"Harvest probability and status for a field, derived from the maize-DMC forecast","content":{"application/json":{"schema":{"type":"object","properties":{"fieldId":{"type":"string","description":"The field ID","example":"field_abc123"},"year":{"type":"integer","description":"The year of analysis","example":2024},"harvestProbability":{"type":"number","format":"float","description":"Probability that the crop has reached harvest maturity (whole-plant dry matter at or above the 33% silage target) as of today — a proxy for 'already harvested'. 1 when a satellite-confirmed harvest overrides the model.","minimum":0,"maximum":1,"example":0.85},"harvestStatus":{"type":"string","enum":["not_harvested","possibly_harvested","harvested"],"description":"Status bucketed from the probability: not_harvested (P < 0.5), possibly_harvested (0.5 ≤ P < 0.9), harvested (P ≥ 0.9 on three consecutive days, or a satellite-confirmed harvest — see harvestDetected).","example":"possibly_harvested"},"detectionDate":{"type":"string","format":"date","description":"Date of the harvest detection analysis (UTC).","example":"2024-08-15"},"confidence":{"type":"number","format":"float","description":"Decisiveness of the call: |2·P − 1|. 1 when the probability is clearly 0 or 1, 0 at maximal uncertainty (P = 0.5).","minimum":0,"maximum":1,"example":0.78},"harvestDetected":{"type":"object","description":"Satellite harvest detection (Sentinel-2 field-mean NDVI): a sudden drop between two cloud-free scenes a few days apart, reproduced by the scenes 2–5 days later. Present only when a candidate drop exists for the field/year.","properties":{"status":{"type":"string","enum":["unconfirmed","confirmed","rejected"],"description":"unconfirmed = drop seen, no cloud-free scene 2–5 days later yet; confirmed = reproduced by the following scenes; rejected = the following scenes or a later sampling contradicted the drop.","example":"confirmed"},"trust":{"type":"string","enum":["high","medium"],"description":"high = NDVI fell ≥ 0.30 to ≤ 0.30 (bare soil/stubble); medium = a weaker but still sudden drop. Only confirmed + high overrides harvestStatus.","example":"high"},"windowStart":{"type":"string","format":"date","description":"Last cloud-free scene still showing a standing crop.","example":"2026-08-07"},"windowEnd":{"type":"string","format":"date","description":"First cloud-free scene showing the drop — the harvest happened in (windowStart, windowEnd].","example":"2026-08-09"},"confirmedAt":{"type":"string","format":"date","nullable":true,"description":"Day the detection was confirmed (UTC), null unless confirmed.","example":"2026-08-11"}},"required":["status","trust","windowStart","windowEnd","confirmedAt"]}},"required":["fieldId","year","harvestProbability","harvestStatus","detectionDate","confidence"]}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"422":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"502":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_year_harvest","summary":"Get a maize field's harvest probability and status (maize-DMC customers only)","x-keywords":"erntezeitpunkt reife silomais trockenmasse dmc","x-agmeo-effect":"read"},"post":{"description":"Report the actual harvest date of the field. Stored as ground truth for validating the harvest probability and the satellite harvest detection; it does not change the forecast. Idempotent per (field, date). Only for organizations with maize-DMC access; every other organization gets 401 \"Not authorized to access DMC endpoints\".","tags":["Satellite"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"The harvest year"}],"requestBody":{"required":true,"description":"The actual harvest date of the field","content":{"application/json":{"schema":{"type":"object","properties":{"harvestedAt":{"type":"string","format":"date","description":"Day the field was harvested (YYYY-MM-DD, not in the future, within the cultivation year).","example":"2026-09-04"},"isUpperBound":{"description":"Set when only 'harvested by harvestedAt' is known, not the exact day.","example":false,"type":"boolean"},"note":{"description":"Free text.","example":"Reported by the regional team","type":"string","maxLength":500}},"required":["harvestedAt"],"description":"Report the actual harvest date of the field (ground truth; does not change the forecast)."}}}},"responses":{"200":{"description":"The stored harvest report. 201 when newly created, 200 when the same report already existed.","content":{"application/json":{"schema":{"type":"object","properties":{"fieldId":{"type":"string","format":"uuid"},"year":{"type":"integer","example":2026},"harvestedAt":{"type":"string","format":"date","example":"2026-09-04"},"isUpperBound":{"type":"boolean","example":false},"created":{"type":"boolean","description":"false when an identical report already existed."}},"required":["fieldId","year","harvestedAt","isUpperBound","created"]}}}},"201":{"description":"The stored harvest report. 201 when newly created, 200 when the same report already existed.","content":{"application/json":{"schema":{"type":"object","properties":{"fieldId":{"type":"string","format":"uuid"},"year":{"type":"integer","example":2026},"harvestedAt":{"type":"string","format":"date","example":"2026-09-04"},"isUpperBound":{"type":"boolean","example":false},"created":{"type":"boolean","description":"false when an identical report already existed."}},"required":["fieldId","year","harvestedAt","isUpperBound","created"]}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"422":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_fields_id_year_harvest","summary":"Report a field's actual harvest date","x-keywords":"erntedatum melden geerntet","x-agmeo-effect":"create"}},"/api/{orgId}/fields/{id}/{year}/bbch":{"get":{"description":"Model-derived current BBCH growth stage for the field's cultivation (GDD / biological-days phenology model, calibration-corrected). Returns the calibrated currentBbch plus the raw modelBbch and the latest farmer calibration. Used by the mobile assistant to resolve the current stage.","tags":["Fields"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"The cultivation year"}],"responses":{"200":{"description":"Model-derived current BBCH stage for the field's cultivation","content":{"application/json":{"schema":{"type":"object","properties":{"fieldId":{"type":"string","description":"The field ID","example":"field_abc123"},"year":{"type":"integer","description":"The cultivation year","example":2025},"cultivationId":{"type":"string","format":"uuid","description":"The resolved cultivation ID"},"crop":{"type":"string","nullable":true,"description":"Crop of the cultivation","example":"winterWheat"},"currentBbch":{"type":"integer","nullable":true,"description":"Calibration-corrected current BBCH stage (0–99), or null when the model can't run.","example":32},"modelBbch":{"type":"integer","nullable":true,"description":"Raw model BBCH (before farmer calibration).","example":30},"calibrationDate":{"type":"string","format":"date","nullable":true,"description":"Date of the most recent farmer BBCH calibration, if any."},"calibrationBbch":{"type":"integer","nullable":true,"description":"Observed BBCH at the most recent calibration."},"sowingDate":{"type":"string","format":"date","nullable":true,"description":"Sowing date used by the model."}},"required":["fieldId","year","cultivationId","crop","currentBbch","modelBbch"]}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"502":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_year_bbch","summary":"Get a field's current BBCH growth stage (model, corrected by observations)","x-keywords":"bbch wachstumsstadium entwicklungsstadium growth stage phenology phänologie","x-agmeo-effect":"read"}},"/api/{orgId}/fields/{id}/{year}/irrigation":{"get":{"description":"FAO-56 water-balance snapshot for the field: usable field capacity (nFK = FC − PWP), current soil-water deficit and level (ok/warning/critical), season ET and rainfall totals, and the recent daily deficit trend. Uses the measured topsoil texture (Wösten pedotransfer) — a real balance, not a soil-class Faustzahl.","tags":["Fields"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"The cultivation year"}],"responses":{"200":{"description":"FAO-56 water-balance snapshot for a field (nFK, current deficit, ET, rainfall)","content":{"application/json":{"schema":{"type":"object","properties":{"fieldId":{"type":"string","description":"The field ID","example":"field_abc123"},"crop":{"type":"string","nullable":true,"example":"silageMaize"},"year":{"type":"integer","example":2025},"nfkMm":{"type":"number","nullable":true,"description":"Usable field capacity (nutzbare Feldkapazität, FC − PWP) over the root zone, mm. GET /irrigation/water-balances calls it awcMm.","example":120},"rootDepthM":{"type":"number","description":"Rooting depth the balance used, m — crop-specific (FAO-56 Table 22), overridable per cultivation.","example":1.8},"thetaFc":{"type":"number","nullable":true,"description":"Field capacity as volumetric water content in percent (28 = 28 %).","x-unit":"% vol."},"thetaPwp":{"type":"number","nullable":true,"description":"Permanent wilting point as volumetric water content in percent (12 = 12 %).","x-unit":"% vol."},"currentDeficitMm":{"type":"number","nullable":true,"description":"Current soil-water deficit below field capacity, mm.","example":24},"deficitLevel":{"type":"string","nullable":true,"enum":["ok","warning","critical"],"description":"Deficit severity bucket.","example":"warning"},"totalPrecipitationMm":{"type":"number","description":"Season precipitation total, mm."},"totalEtaMm":{"type":"number","description":"Season actual evapotranspiration total, mm."},"sowingDate":{"type":"string","format":"date","nullable":true},"simulationStartDate":{"type":"string","format":"date","nullable":true},"recentDays":{"type":"array","description":"Recent daily balance for the deficit trend.","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"deficitMm":{"type":"number"},"etaMm":{"type":"number"},"precipMm":{"type":"number"},"irrigationMm":{"type":"number"}},"required":["date","deficitMm","etaMm","precipMm","irrigationMm"]}}},"required":["fieldId","crop","year","nfkMm","rootDepthM","currentDeficitMm","deficitLevel"]}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"502":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_year_irrigation","summary":"Get a field's soil water balance: deficit, usable field capacity, ET, rain","x-keywords":"bewässerung beregnung wasserbilanz bodenwasser bodenfeuchte soil moisture water deficit nfk trockenstress drought irrigation need","x-agmeo-effect":"read"}},"/api/{orgId}/fields/{id}/yield-history":{"get":{"description":"Harvested yield history of one field in t/ha, one entry per cultivation and year, from the documented harvest operations (harvest-product quantity, zone- and worked-area-weighted). Use it for 'what did this field yield', trends and like-for-like averages (?crop=). Not to be confused with GET /fields/{id}/{year}/harvest, the maize-DMC harvest probability, which holds no yield.","tags":["Yield & Profitability"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"query","name":"crop","required":false,"schema":{"type":"string"},"description":"Only this crop's cultivations, e.g. winterWheat — recommended for an average"}],"responses":{"200":{"description":"The field's yield history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YieldHistoryResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_yield_history","summary":"Get a field's harvested yields (t/ha) of all years, optionally for one crop","x-keywords":"ertrag erträge ertragshistorie ernte yield history average durchschnitt harvest result","x-agmeo-effect":"read"}},"/api/{orgId}/fields/{id}/{year}/analog-yield":{"get":{"description":"Expected yield (t/ha) of a crop the field has not grown yet, from measured yield-map zones of the SAME crop on comparable ground: other cultivations' zones ranked by LUFA soil type, management, variety and season recency; expectedTpHa is their median. Never the previous crop's number — transferFromPreviousCrop says what the field's own map may still contribute. For planning, scenario prognosis and cost accounting.","tags":["Yield & Profitability"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"The harvest year"},{"in":"query","name":"crop","required":true,"schema":{"type":"string"},"description":"Crop to plan, e.g. winterRape"}],"responses":{"200":{"description":"The analog yield expectation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalogYieldResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"502":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_year_analog_yield","summary":"Estimate the yield of a crop the field has not grown yet, from comparable fields","x-keywords":"ertragserwartung ertragsschätzung expected yield estimate neue kultur","x-agmeo-effect":"read"}},"/api/{orgId}/cultivations/{id}/yield-raster":{"get":{"description":"The cultivation's merged yield map as a colour-ramped PNG (RdYlGn) on the EPSG:3857 analytics grid — for display, not for numbers: yields per field are in GET /fields/{id}/yield-history, pixel statistics in the Grid Analytics yield-map endpoint. rangeMin/rangeMax put several fields on one shared colour scale. Browsers get a PNG rendered before as a 302 redirect to a presigned object-storage URL; the agmeo Chat sandbox always gets the PNG itself (200) with the headers below.","tags":["Yield & Profitability"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The cultivation ID"},{"in":"query","name":"metric","required":false,"schema":{"type":"string","enum":["wet","dry","dmc"],"default":"wet"},"description":"Raster band: wet = trade-standard wet mass (t/ha), dry = dry matter (t/ha), dmc = dry-matter content (%)"},{"in":"query","name":"rangeMin","required":false,"schema":{"type":"number"},"description":"Lower end of the colour scale, in the metric's unit; needs rangeMax"},{"in":"query","name":"rangeMax","required":false,"schema":{"type":"number"},"description":"Upper end of the colour scale, in the metric's unit; needs rangeMin"}],"responses":{"200":{"description":"The rendered yield map","headers":{"x-bounding-box-epsg-3857":{"schema":{"type":"string"},"description":"JSON array `[minX, minY, maxX, maxY]` of the image in EPSG:3857"},"x-value-range":{"schema":{"type":"string"},"description":"JSON array `[min, max]` the colour ramp spans, in the metric's unit"},"x-yield-raster-id":{"schema":{"type":"string"},"description":"Id of the stored yield raster"}},"content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"302":{"description":"Browsers: redirect to the stored PNG (presigned URL, valid 1 h)"},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_cultivations_id_yield_raster","summary":"Get a cultivation's yield map as a PNG image","x-keywords":"ertragskarte yield map bild","x-agmeo-effect":"read"}},"/api/{orgId}/economics/profitability/{year}":{"get":{"description":"The farm's P&L for one harvest year, per cultivation and per ha — the analysis page's numbers from the same function: revenue, seed/fertilizer/protection/other direct costs, DFL, CM I, CM II, land and overhead costs, subsidies and the farm result, plus diesel, hours, yield and applied N. Only DOCUMENTATION-status operations count. Read `coverage` before quoting a margin: it lists planned but undocumented operations, unpriced articles and articles whose unit cannot be converted to their price.","tags":["Yield & Profitability"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer","minimum":2000,"maximum":2100},"description":"The harvest year"}],"responses":{"200":{"description":"The farm P&L of the year","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProfitabilityResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_economics_profitability_year","summary":"Get the farm's profit and loss per cultivation and ha: revenue, costs, margins, N, diesel","x-keywords":"wirtschaftlichkeit deckungsbeitrag db dfl gewinn verlust kosten erlös umsatz rentabilität marge gross margin contribution margin profit cost revenue economics betriebsergebnis direktkosten maschinenkosten stickstoff nitrogen kg n arbeitszeit hours diesel","x-agmeo-effect":"read"}},"/api/{orgId}/fields/{id}/{year}/climate-context":{"get":{"description":"This season's daily weather at the field (ERA5 archive, from sowing until a few days ago) plus a per-metric climatology of the same window in earlier years — to tell whether the season is wetter, drier, hotter or frostier than usual. The weather point is the field centroid (lat/lon in the response). The season starts at the recorded sowing date; pass ?sowingDate= when none is recorded.","tags":["Weather"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"The harvest year"},{"in":"query","name":"sowingDate","required":false,"schema":{"type":"string","format":"date"},"description":"Season start (YYYY-MM-DD); overrides the recorded sowing date"},{"in":"query","name":"baselineYears","required":false,"schema":{"type":"integer","minimum":3,"maximum":20,"default":10},"description":"Number of earlier years in the climatology (clamped to 3–20)"}],"responses":{"200":{"description":"Season series and baselines","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClimateContextResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"422":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"502":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_year_climate_context","summary":"Get a field's daily weather of the season so far and how it compares with earlier years","x-keywords":"wetter rückblick historie past weather rainfall rain last week yesterday recent days since sowing seit aussaat niederschlagssumme regen letzte woche gefallen temperature sum temperatursumme gdd growing degree days frost drought trockenheit climatology klima era5 season","x-agmeo-effect":"read"}},"/api/{orgId}/fields/{id}/annotations":{"get":{"description":"Get spatial annotations for a field in a given context (date, source, layer). Returns a GeoJSON FeatureCollection. If no annotations exist, returns an empty FeatureCollection.","tags":["Annotations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"query","name":"date","required":false,"schema":{"type":"string","format":"date"},"description":"Context date (YYYY-MM-DD). Omit to fetch annotations across all dates."},{"in":"query","name":"source","required":true,"schema":{"type":"string","enum":["satellite","yield","soil"]},"description":"Origin context, e.g. \"satellite\", \"yield\", \"soil\""},{"in":"query","name":"layer","required":false,"schema":{"type":"string","enum":["ndvi","lai","rgb","savi","bsi","ndmi"]},"description":"Optional sub-context, e.g. \"ndvi\", \"lai\", \"rgb\""}],"responses":{"200":{"description":"GeoJSON FeatureCollection of annotations for the given context","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnotationsFeatureCollection"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}}},"operationId":"get_fields_id_annotations","summary":"List a field's map annotations (points and areas marked on a layer)","x-keywords":"markierungen kartennotizen befall schadstellen scouting marker","x-agmeo-effect":"read"},"post":{"description":"Create a single spatial annotation for a field.","tags":["Annotations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"}],"requestBody":{"required":true,"description":"Create a single annotation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostAnnotationRequest"}}}},"responses":{"200":{"description":"Annotation created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"}}}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}}},"operationId":"post_fields_id_annotations","summary":"Create a map annotation (point or area with a note) on a field","x-keywords":"markierung anlegen schadstelle befall melden marker","x-agmeo-effect":"create"},"put":{"description":"Update an existing annotation's note.","tags":["Annotations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"}],"requestBody":{"required":true,"description":"Update an annotation's note","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"note":{"type":"string"}},"required":["id","note"]}}}},"responses":{"200":{"description":"Annotation updated","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","example":true}}}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}}},"operationId":"put_fields_id_annotations","summary":"Update the note of a field map annotation","x-keywords":"markierung ändern","x-agmeo-effect":"update"},"delete":{"description":"Delete a single annotation by ID.","tags":["Annotations"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"query","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Annotation ID to delete"}],"responses":{"200":{"description":"Annotation deleted","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","example":true}}}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}}},"operationId":"delete_fields_id_annotations","summary":"Delete a field map annotation","x-keywords":"markierung löschen","x-agmeo-effect":"delete"}},"/api/{orgId}/fields/{id}/{year}/soil/profile":{"get":{"description":"Model-based soil profile at the field location, looked up from the global soil map index (e.g. BÜK200): texture, bulk density, SOC, soil type (KA5/USDA) and van-Genuchten hydraulic parameters per layer. Contains NO measured nutrient values — for measured P₂O₅/K₂O/MgO/pH/Nmin use the Soil Nutrients endpoints (/soil/parameters, /soil/zones). One object per layer, top layer first (sort by layer_from to be sure). Units: layer_from/layer_to/depth cm, bulk_density g/cm³, sand/silt/clay/soc/theta_fc/theta_pwp %, dist degrees (distance of the index point, not metres). Keys are snake_case here, camelCase in Soil Nutrients.","tags":["Soil Profile (Model)"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"The harvest year"}],"responses":{"200":{"description":"A soil profile as array holding the soil properties of multiple layers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoilProfile"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_year_soil_profile","summary":"Get a field's modelled soil profile by depth: texture, bulk density, SOC, soil type","x-keywords":"bodenprofil bodenart bodentyp textur ton clay sand schluff silt lagerungsdichte feldkapazität welkepunkt bük200 soil map organic carbon","x-agmeo-effect":"read"}},"/api/{orgId}/fields/{id}/soil/parameters":{"get":{"description":"Measured/entered soil values of a field: canonical oxide nutrients (p2o5/k2o/mgo) plus pH, humus, Nmin, texture and trace nutrients — each with soil layer, sampling date, lab method, method-dependent unit and computed VDLUFA supply stage (A–E). Year-independent (soil values outlive cultivations). Defaults to the most recent value per parameter and layer.","tags":["Soil Nutrients"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"},{"in":"query","name":"history","required":false,"schema":{"type":"boolean","default":false},"description":"Return every sampling date instead of only the most recent value per parameter and layer"},{"in":"query","name":"layerFrom","required":false,"schema":{"type":"integer","minimum":0},"description":"Only values whose layer starts at this depth in cm (e.g. 0 for topsoil)"},{"in":"query","name":"layerTo","required":false,"schema":{"type":"integer","minimum":0},"description":"Only values whose layer ends at this depth in cm (e.g. 30 for topsoil)"}],"responses":{"200":{"description":"Measured/entered soil values of the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSoilParametersResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_soil_parameters","summary":"Get a field's measured soil values: pH, P2O5, K2O, MgO, humus, Nmin, texture","x-keywords":"bodenprobe bodenproben bodenuntersuchung bodenanalyse nährstoffe naehrstoffe gehaltsklasse versorgungsstufe ph-wert phosphor phosphorus kalium potassium magnesium humus nmin stickstoff ton clay sand schluff soil sample lab nutrients","x-agmeo-effect":"read"},"post":{"description":"Write measured soil values for a field. Upsert: same (parameter, layer, date) overwrites, a new date creates a new history entry. Values follow the canonical conventions (oxide form, method per value); nmin is derived per layer+date as no3 + nh4 when not sent explicitly. Physically impossible values (pH outside 0–14, percentages outside 0–100, soc above 58 %, clay + silt + sand of one layer and date outside 90–110 %, bd outside 0.5–2 g/cm³) are rejected with 400. Clay, silt or sand sent without the other fractions are checked together with the stored ones: a layer whose clay + silt + sand would then be outside 90–110 % is rejected with 400, unless the write moves an already-off sum towards that range. Returns the written values including derived ones.","tags":["Soil Nutrients"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"}],"requestBody":{"required":true,"description":"Soil values to write.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostSoilParametersRequest"}}}},"responses":{"200":{"description":"The written soil values, including derived nmin entries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSoilParametersResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_fields_id_soil_parameters","summary":"Write measured soil values (lab results) for a field","x-keywords":"bodenprobe eintragen laborergebnis bodenuntersuchung erfassen ph nmin record soil sample","x-agmeo-effect":"update"}},"/api/{orgId}/fields/{id}/soil/zones":{"get":{"description":"Active soil sampling zonation of a field with per-zone geometry, area, KA5 soil type and measured topsoil (0–30 cm) values including lab method and VDLUFA supply stage. Imported survey zones additionally carry soilTypeText, nfkMm, the nfk30/50/70Pct thresholds and sourceRef (null on generated zonations). Year-independent. Returns 404 if the field has no active zonation.","tags":["Soil Nutrients"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"}],"responses":{"200":{"description":"The active zonation with its zones and values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSoilZonesResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_soil_zones","summary":"Get a field's soil sampling zones with their measured values","x-keywords":"bodenzonen probenahmezonen teilflächen zonierung bodenkarte beprobung","x-agmeo-effect":"read"},"post":{"description":"Generate a soil sampling zonation from the field geometry: the source raster (twi from the agmeo B2B rasters, or the best satellite scene of the last 365 days for ndvi/savi/ndmi) is clipped to the field, zones are clustered and smoothed, then enriched with texture/SOC from the DSM rasters. Same engine as the app. WARNING: supersedes the currently active zonation — manually entered zone values do not carry over (field-level soil parameters are kept). Takes a few seconds per field. Returns the new zonation in the GET format; 422 when the source raster is not accessible for the org/country or no zones could be produced.","tags":["Soil Nutrients"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The field ID"}],"requestBody":{"required":true,"description":"Zonation config.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostSoilZonesRequest"}}}},"responses":{"200":{"description":"The newly generated zonation with its zones and values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSoilZonesResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"422":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_fields_id_soil_zones","summary":"Generate soil sampling zones for a field from terrain or satellite data","x-keywords":"probenahmeplan zonierung bodenzonen erstellen beprobungsplan","x-agmeo-effect":"create"}},"/api/{orgId}/fields/{id}/{year}/vrn/recommendation":{"post":{"description":"Zones the field-year's main crop (secondary and catch crops last, then the largest area) and rates each zone. Needs a harvest product row with the planned yield (409 otherwise).","tags":["VRN"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"The field id, as returned by the respective POST request"},{"in":"path","name":"year","required":true,"schema":{"type":"number"},"description":"The harvest year"}],"requestBody":{"required":true,"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostVrnRecommendationRequest"}}}},"responses":{"200":{"description":"Success: Returns the VRN recommendation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostVrnRecommendationResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"409":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_fields_id_year_vrn_recommendation","summary":"Compute a variable-rate nitrogen recommendation for a field","x-keywords":"teilflächenspezifische düngung n-düngung stickstoff applikationskarte vrn empfehlung","x-agmeo-effect":"update"}},"/api/{orgId}/fields/{id}/{year}/vrs/recommendation":{"post":{"description":"Zones the field-year's main crop (secondary and catch crops last, then the largest area) and rates each zone. Needs a harvest product row with the planned yield (409 otherwise).","tags":["VRS"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"The field id, as returned by the respective POST request"},{"in":"path","name":"year","required":true,"schema":{"type":"number"},"description":"The harvest year"}],"requestBody":{"required":true,"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostVrsRecommendationRequest"}}}},"responses":{"200":{"description":"Success: Returns the VRS recommendation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostVrsRecommendationResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"409":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_fields_id_year_vrs_recommendation","summary":"Compute a variable-rate seeding recommendation for a field","x-keywords":"teilflächenspezifische aussaat saatstärke aussaatstärke vrs empfehlung","x-agmeo-effect":"update"}},"/api/{orgId}/fields/{id}/{year}/vrs/zonation-base":{"get":{"description":"Retrieve the raster a base zonation is cut from, clipped to the field's boundary of the harvest year, as GeoTIFF (EPSG:3857, 10 m, NaN/nodata outside the field) or PNG. Satellite sources are composited on demand from the satellite API: `ndvi_longterm` is the pixel-wise median of the clearest June/July scene of the last five years (or of the `yearAnalysis` years), `ndvi_recent` the clearest scene of the last 180 days. Any other `source` is an R2 raster layer id (e.g. `twi`, `soil-type-ka5`, `sand-dsm`, `clay-dsm`) the organization has access to. Computed per request; no prior VRS recommendation is needed.","tags":["VRS"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"The field id, as returned by the respective POST request"},{"in":"path","name":"year","required":true,"schema":{"type":"number"},"description":"The harvest year"},{"in":"query","name":"output","required":false,"schema":{"type":"string","enum":["tiff","png"],"default":"tiff"},"description":"Output format: 'tiff' (default) for GeoTIFF or 'png' for PNG image"},{"in":"query","name":"source","required":false,"schema":{"type":"string","default":"ndvi_longterm"},"description":"Raster source: 'ndvi_longterm' (default), 'ndvi_recent' or an R2 raster layer id such as 'twi', 'soil-type-ka5' or 'sand-dsm'"},{"in":"query","name":"yearAnalysis","required":false,"schema":{"type":"string","example":"2022,2023,2024"},"description":"Comma-separated years whose June/July scenes make up the 'ndvi_longterm' composite (same meaning as rasterBase.yearAnalysis of /vrs/recommendation). Only valid with source=ndvi_longterm."}],"responses":{"200":{"description":"The zonation base raster file","headers":{"x-bounding-box-epsg-3857":{"schema":{"type":"string"},"description":"JSON array `[minX, minY, maxX, maxY]` of the raster in EPSG:3857"},"x-scene-dates":{"schema":{"type":"string"},"description":"Satellite sources: comma-separated dates (YYYY-MM-DD) of the scenes in the composite"}},"content":{"image/tiff":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The organization has no access to the requested raster layer in the field's country.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"404":{"description":"No field boundary for this field and year, no clear satellite scene in the analysed window, or no valid raster pixels inside the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_year_vrs_zonation_base","summary":"Download the raster a field's base zonation is cut from, as GeoTIFF","x-keywords":"zonierung basis raster","x-agmeo-effect":"read"}},"/api/{orgId}/application-maps/fertilizing":{"post":{"description":"Generate a machine-readable ISOXML application map for fertilizing operations. Converts GeoJSON management zones with application rates into terminal-specific formats (e.g., John Deere, Fendt, CLAAS). Returns a ZIP file containing the ISOXML task file that can be imported into the terminal.\n\nThe zones must include a RATE property (application rate per hectare) and a UNIT property (kg_ha or l_ha). All zones must use the same unit.","tags":["Application Maps"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"description":"Fertilizing application map generation request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostFertilizingApplicationMapsRequest"}}}},"responses":{"200":{"description":"Success: Returns ISOXML application map as ZIP archive","headers":{"Content-Disposition":{"schema":{"type":"string"},"description":"Attachment filename for the ZIP file"}},"content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_application_maps_fertilizing","summary":"Generate a fertilizing application map (ISOXML ZIP for a terminal) from zones of one field","x-keywords":"applikationskarte streukarte düngung terminal isobus export","x-agmeo-effect":"compute"}},"/api/{orgId}/application-maps/seeding":{"post":{"description":"Generate a machine-readable ISOXML application map for seeding operations. Converts GeoJSON management zones with seeding rates into terminal-specific formats (e.g., John Deere, Fendt, CLAAS). Returns a ZIP file containing the ISOXML task file that can be imported into the terminal.\n\nThe zones must include a RATE property (seeding rate per hectare or per m²) and a UNIT property (kg_ha or grains_m2). All zones must use the same unit.","tags":["Application Maps"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"description":"Seeding application map generation request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostSeedingApplicationMapsRequest"}}}},"responses":{"200":{"description":"Success: Returns ISOXML application map as ZIP archive","headers":{"Content-Disposition":{"schema":{"type":"string"},"description":"Attachment filename for the ZIP file"}},"content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_application_maps_seeding","summary":"Generate a seeding application map (ISOXML ZIP for a terminal) from zones of one field","x-keywords":"applikationskarte aussaatkarte saat terminal isobus export","x-agmeo-effect":"compute"}},"/api/{orgId}/application-maps/fertilizing/batch":{"post":{"description":"Generate a single machine-readable ISOXML or shapefile for multiple fields at once. For ISOXML terminals (e.g. Fendt, Amazone, CLAAS), produces one TASKDATA with multiple tasks/fields. For shapefile terminals (e.g. John Deere), produces one ZIP with per-field subfolders.\n\nAll fields must use the same unit (kg_ha or l_ha).","tags":["Application Maps"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"description":"Batch fertilizing application map generation request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostFertilizingApplicationMapsBatchRequest"}}}},"responses":{"200":{"description":"Success: Returns a single ZIP archive containing ISOXML TASKDATA (with multiple tasks) or shapefiles (with per-field subfolders)","headers":{"Content-Disposition":{"schema":{"type":"string"},"description":"Attachment filename for the ZIP file"}},"content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_application_maps_fertilizing_batch","summary":"Generate one fertilizing application map file (ISOXML or shapefile) for several fields","x-keywords":"applikationskarten streukarten mehrere schläge","x-agmeo-effect":"compute"}},"/api/{orgId}/application-maps/seeding/batch":{"post":{"description":"Generate a single machine-readable ISOXML or shapefile for multiple seeding fields at once. For ISOXML terminals (e.g. Fendt, Amazone, CLAAS), produces one TASKDATA with multiple tasks/fields. For shapefile terminals (e.g. John Deere), produces one ZIP with per-field subfolders.\n\nAll fields must use the same unit (kg_ha or grains_m2).","tags":["Application Maps"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"description":"Batch seeding application map generation request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostSeedingApplicationMapsBatchRequest"}}}},"responses":{"200":{"description":"Success: Returns a single ZIP archive containing ISOXML TASKDATA (with multiple tasks) or shapefiles (with per-field subfolders)","headers":{"Content-Disposition":{"schema":{"type":"string"},"description":"Attachment filename for the ZIP file"}},"content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_application_maps_seeding_batch","summary":"Generate one seeding application map file (ISOXML or shapefile) for several fields","x-keywords":"applikationskarten aussaatkarten mehrere schläge","x-agmeo-effect":"compute"}},"/api/{orgId}/application-maps/terminals":{"get":{"description":"List all supported terminal types for application map generation. Each terminal includes a human-readable label, the machine-readable value to use in requests, and the output format (isoxml or shapefile).","tags":["Application Maps"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"responses":{"200":{"description":"List of supported terminals with their output format","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","description":"Human-readable terminal name","example":"John Deere Gen4 Command Center"},"value":{"type":"string","description":"Machine-readable terminal identifier to use in targetTerminal field","example":"JD_GEN4_COMMAND_CENTER"},"format":{"type":"string","enum":["isoxml","shapefile"],"description":"Output format produced for this terminal","example":"shapefile"}},"required":["label","value","format"]}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_application_maps_terminals","summary":"List the terminal types application maps can be generated for","x-keywords":"terminals isobus hersteller formate","x-agmeo-effect":"read"}},"/api/satellite":{"post":{"description":"Retrieve a satellite image for a given arbitrary field boundary (without field id). Provide either date (direct lookup) or year+woy (searches for best scene in the ISO week). date takes priority over woy.","tags":["Satellite"],"parameters":[{"in":"query","name":"date","required":false,"schema":{"type":"string","format":"date"},"description":"Exact scene date (YYYY-MM-DD). Takes priority over woy. Either date or woy must be provided."},{"in":"query","name":"year","required":false,"schema":{"type":"number"},"description":"Year. Required when using woy instead of date."},{"in":"query","name":"woy","required":false,"schema":{"type":"number","minimum":1,"maximum":53},"description":"Week of year. Fallback if date is not provided. Searches for the best scene (least cloud coverage) within the ISO week."},{"in":"query","name":"layer","required":true,"schema":{"type":"string","enum":["ndvi","lai","ndmi","ndwi","clouds","rgb","bsi","savi"]},"description":"Satellite layer type. For the 'clouds' layer, pixel values indicate: 1=CLEAR (rgb(141,211,199)), 2=SHADOW (rgb(255,255,179)), 3=WATER (rgb(190,186,218)), 4=CIRRUS (rgb(251,128,114)), 5=CLOUD (rgb(128,177,211)), 6=SNOW (rgb(253,180,98)). RGB colors apply to PNG output using Set3 colormap."},{"in":"query","name":"output","required":false,"schema":{"type":"string","enum":["geotiff","png"]},"default":"geotiff","description":"Output format. Default: geotiff"},{"in":"query","name":"resolution","required":false,"schema":{"type":"string","enum":["10m","3m"]},"default":"10m","description":"Image resolution. Default: 10m"}],"requestBody":{"required":true,"description":"Field boundary as GeoJSON Polygon or MultiPolygon Feature","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldBoundary"}}}},"responses":{"200":{"description":"GeoTiff or PNG image in binary format","headers":{"x-cloud-coverage":{"description":"The cloud coverage percentage of the satellite image","schema":{"type":"number","format":"float","minimum":0,"maximum":100,"example":12.5}},"x-image-date":{"description":"The date of the satellite image","schema":{"type":"string","format":"date","example":"2023-01-01"}},"x-bounding-box-epsg-3857":{"description":"The bounding box of the returned image in EPSG:3857 coordinates (minX,minY,maxX,maxY)","schema":{"type":"string","example":"710609.9575104312,6016433.629414422,710999.9575104312,6016448.629414422"}},"x-resolution":{"description":"The resolution of the returned image","schema":{"type":"string","enum":["10m","3m"],"example":"10m"}}},"content":{"image/tiff":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_satellite","summary":"Get a satellite index image for any GeoJSON boundary","x-keywords":"satellitenbild ndvi beliebige fläche","x-agmeo-effect":"compute"}},"/api/satellite/stats":{"post":{"description":"Retrieve satellite statistics for a given arbitrary field boundary (without field id). Provide either date (direct lookup) or year+woy (searches for best scene in the ISO week). date takes priority over woy.","tags":["Satellite"],"parameters":[{"in":"query","name":"date","required":false,"schema":{"type":"string","format":"date"},"description":"Exact scene date (YYYY-MM-DD). Takes priority over woy. Either date or woy must be provided."},{"in":"query","name":"year","required":false,"schema":{"type":"number"},"description":"Year. Required when using woy instead of date."},{"in":"query","name":"woy","required":false,"schema":{"type":"number","minimum":1,"maximum":53},"description":"Week of year. Fallback if date is not provided. Searches for the best scene (least cloud coverage) within the ISO week."},{"in":"query","name":"layer","required":true,"schema":{"type":"string","enum":["ndvi","lai","ndmi","ndwi","clouds","rgb","bsi","savi"]},"description":"Satellite layer type. For the 'clouds' layer, pixel values indicate: 1=CLEAR (rgb(141,211,199)), 2=SHADOW (rgb(255,255,179)), 3=WATER (rgb(190,186,218)), 4=CIRRUS (rgb(251,128,114)), 5=CLOUD (rgb(128,177,211)), 6=SNOW (rgb(253,180,98)). RGB colors apply to PNG output using Set3 colormap."},{"in":"query","name":"resolution","required":false,"schema":{"type":"string","enum":["10m","3m"]},"default":"10m","description":"Image resolution. Default: 10m"}],"requestBody":{"required":true,"description":"Field boundary as GeoJSON Polygon or MultiPolygon Feature","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldBoundary"}}}},"responses":{"200":{"description":"Satellite statistics for the specified layer and date range","headers":{"x-image-date":{"description":"The date of the satellite image","schema":{"type":"string","format":"date","example":"2023-01-01"}},"x-cloud-coverage":{"description":"The cloud coverage percentage of the satellite image","schema":{"type":"number","format":"float","minimum":0,"maximum":100,"example":12.5}}},"content":{"application/json":{"schema":{"type":"object","properties":{"statistics":{"type":"object","properties":{"mean":{"type":"number","format":"double","description":"Mean value of the layer within the field boundary","example":0.311},"median":{"type":"number","format":"double","description":"Median value of the layer within the field boundary","example":0.31},"stddev":{"type":"number","format":"double","description":"Standard deviation of the layer values","example":0.029},"q20":{"type":"number","format":"double","description":"20th percentile of the layer values","example":0.283},"q80":{"type":"number","format":"double","description":"80th percentile of the layer values","example":0.338}},"required":["mean","median","stddev","q20","q80"]},"imageDate":{"type":"string","format":"date","nullable":true,"description":"The date of the satellite image","example":"2023-01-01"},"cloudCoverage":{"type":"number","format":"float","description":"The cloud coverage percentage of the satellite image (camelCase here; the scene list calls it cloud_coverage)","x-unit":"%","example":12.5}},"required":["statistics","imageDate","cloudCoverage"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_satellite_stats","summary":"Get satellite index statistics for any GeoJSON boundary","x-keywords":"ndvi statistik beliebige fläche","x-agmeo-effect":"compute"}},"/api/satellite/available":{"post":{"description":"List available satellite scenes for a given arbitrary geometry in a given date range.","tags":["Satellite"],"parameters":[{"in":"query","name":"start_date","required":true,"schema":{"type":"string","format":"date"},"description":"Start date (YYYY-MM-DD)"},{"in":"query","name":"end_date","required":true,"schema":{"type":"string","format":"date"},"description":"End date (YYYY-MM-DD)"},{"in":"query","name":"coverage","required":false,"schema":{"type":"string","enum":["global","field"]},"default":"global","description":"Coverage type. Default: global"},{"in":"query","name":"max_cloud_cover","required":false,"schema":{"type":"number","minimum":0,"maximum":100},"default":80,"description":"Maximum cloud cover percentage. Default: 80"}],"requestBody":{"required":true,"description":"Field boundary as GeoJSON Polygon or MultiPolygon Feature","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldBoundary"}}}},"responses":{"200":{"description":"List of available satellite scenes","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"Scene date","example":"2024-06-15"},"cloud_coverage":{"type":"number","format":"float","description":"Cloud coverage percentage (snake_case here; the scene statistics call it cloudCoverage)","x-unit":"%","example":12.5},"coverage_type":{"type":"string","description":"Coverage type","example":"field"}},"required":["date","cloud_coverage","coverage_type"]}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_satellite_available","summary":"List satellite scenes for any GeoJSON geometry in a date range","x-keywords":"satellitenszenen wolken beliebige fläche","x-agmeo-effect":"compute"}},"/api/soil/profile":{"post":{"description":"Model-based soil profile at the centroid of an arbitrary GeoJSON geometry, looked up from the global soil map index (e.g. BÜK200). Same layer format and units as the field-scoped soil/profile endpoint (cm, g/cm³, %, dist in degrees); contains no measured nutrient values.","tags":["Soil Profile (Model)"],"parameters":[],"requestBody":{"required":true,"description":"GeoJSON geometry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Geometry"}}}},"responses":{"200":{"description":"A soil profile as array holding the soil properties of multiple layers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoilProfile"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_soil_profile","summary":"Get the modelled soil profile at any GeoJSON geometry","x-keywords":"bodenprofil bodenart beliebige fläche","x-agmeo-effect":"compute"}},"/api/asset/latest/enums/fertilizers":{"get":{"description":"Legacy endpoint to list available fertilizers. Do not use for new implementations. Will be superseded by a new endpoint in the future.","tags":["Legacy"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"aliases":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["synthetic","organic"]},"unit":{"type":"string","enum":["l","kg"]},"contentN":{"type":"number"},"description":{"type":"string"}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_asset_latest_enums_fertilizers","summary":"List fertilizers (legacy — use the articles list)","x-agmeo-effect":"read"}},"/api/asset/latest/partfields/{orgId}":{"post":{"description":"Create one or more cultivations for legacy VRN recommendation. Do not use for new implementations.","tags":["Legacy"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"planting_date":{"type":"string","format":"date"},"crop":{"type":"string"},"harvest_year":{"type":"number"},"alias":{"type":"string"},"geometry":{"$ref":"#/components/schemas/Geometry2D"}},"required":["crop","harvest_year","planting_date","geometry","alias"]}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"parentField":{"type":"string"},"alias":{"type":"string"},"geometry":{"$ref":"#/components/schemas/Geometry2D"},"crop":{"type":"string"},"harvest_year":{"type":"number"},"planting_date":{"type":"string","format":"date"}}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_asset_latest_partfields","summary":"Create cultivations for the legacy VRN flow","x-agmeo-effect":"create"}},"/api/model/latest/vrn/{id}/execute":{"post":{"description":"Legacy endpoint to retrieve VRN recommendation. Do not use for new implementations.","tags":["Legacy"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"The partfield id, as returned by the POST /api/asset/latest/partfields/{orgId} request inside id property"}],"requestBody":{"required":true,"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostVrnLegacyRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"applicationMap":{"type":"object","properties":{"type":{"type":"string","enum":["FeatureCollection"]},"features":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"geometry":{"$ref":"#/components/schemas/Geometry2D"},"properties":{"type":"object","properties":{"class":{"type":"number","description":"Zone class index. Counting from 0 to n-1 zones.","example":0},"value":{"type":"number","description":"Recommended N application in kg/ha","example":85.5}}}}}}},"description":"GeoJSON FeatureCollection representing the VRN variable rate application map"},"modelExecutionId":{"type":"string","description":"The model execution ID for reference (constant zeros UUID - kept for compatibility reasons only)","example":"00000000-0000-0000-0000-000000000000"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_model_latest_vrn_id_execute","summary":"Run the legacy VRN recommendation","x-agmeo-effect":"compute"}},"/api/maps/availability":{"get":{"description":"Returns all available B2B Map layers with metadata (name, description, type, category, countries, year range) and the current organization's access permissions for each layer. Layer `name` and `description` fields are i18n keys. Public layers (isPublic: true) are freely accessible to all organizations. Contact sales at sales@agvolution.com to get access to non-public layers.","tags":["B2B Map Tiles"],"parameters":[{"in":"query","name":"orgId","required":false,"schema":{"type":"string"},"description":"Organization ID. If not provided, uses the authenticated user's organization."}],"responses":{"200":{"description":"List of available layers with access permissions","content":{"application/json":{"schema":{"type":"object","properties":{"layers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique layer identifier"},"name":{"type":"string","description":"i18n key for the layer name"},"description":{"type":"string","nullable":true,"description":"i18n key for the layer description"},"type":{"type":"string","enum":["vector","raster"],"description":"Tile format: vector (MVT) or raster (PNG)"},"category":{"type":"string","enum":["boundaries","statistics","soil","topography","climate","risk","vegetation","landuse","suitability"]},"temporalDynamics":{"type":"string","enum":["static","yearly","weekly","dekadal","multi-year"]},"countries":{"type":"array","items":{"type":"string"},"description":"ISO 3166-1 alpha-2 country codes where the layer is available. Empty array means pan-European."},"yearRange":{"type":"object","nullable":true,"properties":{"start":{"type":"integer"},"end":{"type":"integer"}}},"updateFrequency":{"type":"string","nullable":true,"description":"e.g. 'weekly'"},"isPublic":{"type":"boolean","description":"Public layers are freely accessible without purchasing access"},"isNew":{"type":"boolean"},"access":{"type":"object","nullable":true,"description":"Organization's access permissions for this layer, or null if no access","properties":{"regions":{"type":"array","items":{"type":"string"},"description":"ISO country codes or NUTS codes with access"},"years":{"type":"array","items":{"type":"integer"},"description":"Years with access"},"crops":{"type":"array","items":{"type":"string"},"description":"Crop IDs with access (only for crop-market-share layer)"},"enabled":{"type":"boolean"}}}}}}}}}}},"400":{"description":"Missing organization ID","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}}},"operationId":"get_maps_availability","summary":"List the map layers and whether the organization may use each","x-keywords":"karten layer verfügbar freigeschaltet access","x-agmeo-effect":"read"}},"/api/{orgId}/maps/raster-layers":{"get":{"description":"The per-country raster layers (terrain, soil, climate) the organization may load over its own fields: one tile source per region its fields lie in (`DE`, or a state code such as `US-WY` — the US and Canada are tiled per state/province), limited to the layers and regions its access grants, so none of the listed tile URLs answers 403. An organization without located fields gets an empty list.","tags":["B2B Map Tiles"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgRasterLayersResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_maps_raster_layers","summary":"List the raster layers (terrain, soil, climate) available over the organization's fields","x-keywords":"rasterkarten gelände relief höhe boden klima layer ids","x-agmeo-effect":"read"}},"/api/maps/tiles/{path}":{"get":{"description":"Serves B2B Map tiles. Use `GET /api/maps/availability` first to discover available layers, their types, and your organization's access permissions.\n\n**Tile formats**\n\n- **Vector layers** return Mapbox Vector Tiles (MVT, `application/x-protobuf`). Features are filtered to the regions your organization has access to.\n- **Raster layers** return PNG tiles (`image/png`).\n\n**Path formats by layer**\n\n1. **Field boundaries** (vector, yearly): `boundaries/{z}/{x}/{y}?year={year}`\n   - Layer ID: `field-boundaries`. Requires `year` param. Returns crop-colored field polygons.\n2. **Crop market share** (vector, yearly): `stats/crop-share/{z}/{x}/{y}?year={year}&crop={crop}`\n   - Layer ID: `crop-market-share`. Requires `year` and `crop` (crop ID, e.g. `winterWheat`).\n3. **Raster layers with country** (raster, static): `raster/{layer}/{country}/{z}/{x}/{y}`\n   - The `{country}` segment is an ISO 3166-1 alpha-2 code (e.g. `DE`, `AT`), or for the US and Canada — tiled per state/province — the ISO 3166-2 code (e.g. `US-WY`, `CA-SK`). Must match one of the layer's available countries (see `/api/maps/availability`); `GET /api/{orgId}/maps/raster-layers` lists the layers and codes that cover your organization's fields.\n   - **Terrain**: `twi` (DE,AT,CH,UK), `tpi`, `profile-curvature`, `plan-curvature`, `drainage`, `wind-exposure` (DE)\n   - **Digital soil mapping**: `clay-dsm`, `silt-dsm`, `sand-dsm`, `soc-dsm` (DE)\n   - **Risk & quality indices**: `erosion-risk`, `drought-risk`, `waterlogging-risk`, `trafficability-risk`, `erosion-damage`, `awc-proxy`, `nutrient-efficiency`, `soil-fertility`, `terrain-class`, `ylri-score`, `ylri-dominant-factor` (DE)\n   - **Microclimate**: `psri`, `dsr-annual`, `temp-mean-annual`, `temp-max-july`, `temp-min-july`, `gdd`, `frost-risk`, `et-july`, `water-balance` (DE)\n   - Example: `raster/twi/DE/12/2145/1389`\n4. **Static vector layers**: `{layer}/{z}/{x}/{y}`\n   - `parcels`: cadastral parcels, zoom 12–15. Features carry `id`, `nr` (parcel number), `a` (official area in m², may be null) and `cc`.\n\n**Note:** Some layers listed in `/api/maps/availability` with `isPublic: true` (e.g. Copernicus phenology layers) are served directly from external WMTS endpoints and do not use this proxy. Their tile URLs are available in the availability response.\n\nContact sales@agvolution.com to purchase access to non-public layers.","tags":["B2B Map Tiles"],"parameters":[{"in":"path","name":"path","required":true,"schema":{"type":"string"},"description":"Tile path including layer type, optional country code, and ZXY coordinates. See description for the full format per layer."},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Required for yearly layers (`field-boundaries`, `crop-market-share`). Must be within the layer's `yearRange` from `/api/maps/availability`."},{"in":"query","name":"crop","required":false,"schema":{"type":"string"},"description":"Crop identifier for `crop-market-share` (e.g. `winterWheat`, `canola`, `maize`). Must match one of the crop IDs granted to your organization (see `access.crops` in `/api/maps/availability`)."}],"responses":{"200":{"description":"Tile data","content":{"application/x-protobuf":{"schema":{"type":"string","format":"binary","description":"Mapbox Vector Tile (MVT) for vector layers (field-boundaries, crop-market-share). Use with MapLibre GL JS or similar."}},"image/png":{"schema":{"type":"string","format":"binary","description":"PNG raster tile for all raster layers (terrain, soil, risk, microclimate). Use as a standard XYZ tile source."}}}},"204":{"description":"No tile data available for this location (empty tile)"},"400":{"description":"Invalid tile path or missing organization","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Access denied — organization does not have access to this layer, region, year, or crop. Check your permissions via `/api/maps/availability`.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"404":{"description":"Layer not found. Use `/api/maps/availability` to list valid layer IDs.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_maps_tiles_path","summary":"Get a map tile (map display only)","x-agmeo-effect":"read"}},"/api/maps/raster":{"post":{"description":"Clip a raster layer to an arbitrary polygon geometry and return the clipped image.\n\nThe layer is automatically resolved to the correct country COG based on the geometry's location via the `AvailabilityRegions` spatial index.\n\n**Available layers** (same as tile layers in `/api/maps/tiles`):\n- **Terrain**: `twi`, `tpi`, `profile-curvature`, `plan-curvature`, `drainage`, `wind-exposure`\n- **Digital soil mapping**: `clay-dsm`, `silt-dsm`, `sand-dsm`, `soc-dsm`\n- **Risk & quality**: `erosion-risk`, `drought-risk`, `waterlogging-risk`, `trafficability-risk`, `erosion-damage`, `awc-proxy`, `nutrient-efficiency`, `soil-fertility`, `terrain-class`, `ylri-score`, `ylri-dominant-factor`\n- **Microclimate**: `psri`, `dsr-annual`, `temp-mean-annual`, `temp-max-july`, `temp-min-july`, `gdd`, `frost-risk`, `et-july`, `water-balance`\n\nValues are physical units, the same in every country: `clay-dsm`/`silt-dsm`/`sand-dsm`/`soc-dsm` in %, `ph` as pH, `bulk-density` in g/cm³; `soil-fertility` and `nutrient-efficiency` are scores from 0 to 100.","tags":["B2B Raster Analysis"],"parameters":[{"in":"query","name":"layer","required":true,"schema":{"type":"string"},"description":"Raster layer ID (e.g. `twi`, `erosion-risk`, `terrain-class`)"},{"in":"query","name":"output","required":false,"schema":{"type":"string","enum":["geotiff","png"],"default":"geotiff"},"description":"Output format. `geotiff` returns a GeoTIFF with full CRS metadata (EPSG:3857). `png` returns a colored RGBA image using the layer's colormap."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisBoundary"}}}},"responses":{"200":{"description":"Clipped raster image","headers":{"x-bounding-box-epsg-3857":{"schema":{"type":"string"},"description":"JSON array `[minX, minY, maxX, maxY]` of the output bounding box in EPSG:3857"}},"content":{"image/tiff":{"schema":{"type":"string","format":"binary","description":"GeoTIFF with nodata masking outside the polygon"}},"image/png":{"schema":{"type":"string","format":"binary","description":"RGBA PNG colored using the layer's legend colormap"}}}},"204":{"description":"No valid pixels inside polygon"},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"404":{"description":"Raster COG not found in storage","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_maps_raster","summary":"Get a raster layer clipped to any polygon, as an image","x-keywords":"rasterkarte ausschnitt gelände höhe elevation twi","x-agmeo-effect":"compute"}},"/api/maps/raster/stats":{"post":{"description":"Compute zonal statistics for a raster layer clipped to an arbitrary polygon geometry.\n\n**Continuous layers** (e.g. `twi`, `erosion-risk`) return:\n```json\n{ \"statistics\": { \"mean\": 8.42, \"median\": 8.1, \"stddev\": 2.3, \"q20\": 6.0, \"q80\": 10.5 } }\n```\n\n**Categorical layers** (`terrain-class`, `ylri-dominant-factor`) return the percentage distribution:\n```json\n{ \"distribution\": { \"Valley\": 12.5, \"Flat\": 45.0, \"Mid Slope\": 30.0, \"Ridge\": 12.5 } }\n```","tags":["B2B Raster Analysis"],"parameters":[{"in":"query","name":"layer","required":true,"schema":{"type":"string"},"description":"Raster layer ID (e.g. `twi`, `erosion-risk`, `terrain-class`)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisBoundary"}}}},"responses":{"200":{"description":"Zonal statistics or categorical distribution","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RasterStatsResponse"}}}},"204":{"description":"No valid pixels inside polygon"},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_maps_raster_stats","summary":"Get zonal statistics of a raster layer for any polygon (mean, median, quantiles or class shares)","x-keywords":"raster statistik mittelwert gelände höhe elevation slope","x-agmeo-effect":"compute"}},"/api/maps/crops/statistics":{"post":{"description":"Crop shares and, with `include: [\"rotation\"]`, crop-rotation statistics of the classified parcels\nwhose **centroid** lies in a bbox or a Polygon/MultiPolygon (exactly one), for harvest year 2025 or 2026.\n\n- `parcels`, `agriculturalAreaHa` and `agriculturalSharePct` (agricultural area / evaluated region area).\n- `crops`: hectares and share of the agricultural area per crop category.\n- `rotation`: the parcels' 4-year sequences (oldest first), rotation classes and the previous crop of every crop,\n  over the parcels whose history covers all four years (`historyCoverage`).\n\nSimplifications: a parcel counts fully when its centroid lies in the region (parcels are not clipped); areas are\nthe parcels' geodesic areas; crops are 17 categories, not varieties. A crop, sequence or previous-crop group with\nfewer than 5 parcels is reported as `other`. The region must be a valid polygon of 5 to\n10,000 km² (at most 10,000 vertices); use the NUTS endpoints for larger areas. Shares refer to the part\nof the region inside the countries your organization has access to (`evaluatedAreaHa`).\n\n**Credits:** 50 per request plus 5 per hectare of the queried region, billed once per polygon, year and calendar\nmonth (repeats cost the request only). **Limits:** per organization 10 requests per minute and 300 per day\n(scaled by plan), at most 2 region queries at a time.","tags":["Crop Statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropStatisticsRequest"}}}},"responses":{"200":{"description":"Statistics of the region","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropStatisticsResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"429":{"description":"Rate limit exceeded for the organization. Retry after the number of seconds in `Retry-After`.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"Whole seconds until the rate-limit window rolls over and the request can be retried."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_maps_crops_statistics","summary":"Get crop and crop-rotation statistics of any region","x-keywords":"anbaustatistik region kulturanteile flächenanteile","x-agmeo-effect":"compute"}},"/api/maps/crops/field":{"get":{"description":"The classified field boundary at a point, as a GeoJSON Feature with its crop, area, classification\nconfidence, country, NUTS3 region and crop `history` (2022–2026 where known).\n\n**Credits:** 50 per request plus 5,000 per hectare of the returned field, billed once per field and calendar month.\n**Limits:** per organization 60 requests per minute and 2,000 per day (scaled by plan).","tags":["Crop Statistics"],"parameters":[{"in":"query","name":"lng","required":true,"schema":{"type":"number"},"description":"Longitude (WGS 84)"},{"in":"query","name":"lat","required":true,"schema":{"type":"number"},"description":"Latitude (WGS 84)"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Harvest year (2025 or 2026, default 2026)"}],"responses":{"200":{"description":"The field at the point","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldBoundaryFeature"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"429":{"description":"Rate limit exceeded for the organization. Retry after the number of seconds in `Retry-After`.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"Whole seconds until the rate-limit window rolls over and the request can be retried."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_maps_crops_field","summary":"Get the field boundary and crop history at a point","x-keywords":"flurstück schlag fremder nachbar anbauhistorie punkt","x-agmeo-effect":"read"}},"/api/maps/crops/regions":{"get":{"description":"The NUTS regions (level 0 = country … 3 = district) that have crop statistics, with names where known. Ukraine uses GADM district ids (`UKR.6.8_1`) at level 3.","tags":["Crop Statistics"],"parameters":[{"in":"query","name":"level","required":false,"schema":{"type":"integer","minimum":0,"maximum":3},"description":"NUTS level (default 3)"},{"in":"query","name":"country","required":false,"schema":{"type":"string"},"description":"Country code as in NUTS (e.g. DE, EL, UK)"}],"responses":{"200":{"description":"Regions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropRegionList"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"429":{"description":"Rate limit exceeded for the organization. Retry after the number of seconds in `Retry-After`.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"Whole seconds until the rate-limit window rolls over and the request can be retried."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_maps_crops_regions","summary":"List the NUTS regions that have crop statistics","x-keywords":"regionen landkreis","x-agmeo-effect":"read"}},"/api/maps/crops/regions/statistics":{"get":{"description":"The statistics of a NUTS region (`DE`, `DE2`, `DE21`, `DE212`) from precomputed tables, so any level\nanswers fast: crop shares from the delivered NUTS statistics (2022–2026; `source.crops = \"statistics\"`, no parcel\ncounts per crop), rotation (`include=rotation`, 2025–2026) summed from the NUTS3 parcel aggregate. NUTS 0–2 are\nsums of their NUTS3 regions. Same response shape as POST /api/maps/crops/statistics.\n\n**Credits:** as for a polygon: 50 per request plus 5 per hectare of the region (`region.areaHa`),\nbilled once per region, year and calendar month; with or without `include=rotation` alike. **Limits:** per organization 60 requests per minute and 2,000 per day (scaled by plan).","tags":["Crop Statistics"],"parameters":[{"in":"query","name":"code","required":true,"schema":{"type":"string"},"description":"NUTS code (level = length − 2) or a Ukrainian district id"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Harvest year (default 2026)"},{"in":"query","name":"include","required":false,"schema":{"type":"string"},"description":"`rotation` adds the crop-rotation statistics"}],"responses":{"200":{"description":"Statistics of the region","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropStatisticsResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"429":{"description":"Rate limit exceeded for the organization. Retry after the number of seconds in `Retry-After`.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"Whole seconds until the rate-limit window rolls over and the request can be retried."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_maps_crops_regions_statistics","summary":"Get crop and crop-rotation statistics of a NUTS region","x-keywords":"anbaustatistik landkreis kulturanteile","x-agmeo-effect":"read"}},"/api/maps/crops/forecast":{"post":{"description":"**Crop Forecast add-on.** Expected hectares and share per crop in the year after the base year, for a bbox\nor a Polygon/MultiPolygon (same rules as the crop statistics).\n\nThe method is a second-order Markov chain learned from the region's own 4-year parcel histories: each parcel's\narea is spread over the crops that followed its last two crops elsewhere in the region (backing off to the last\ncrop, then to this year's shares, where a state has fewer than 20 parcels). The chain is blended with persistence\n(\"next year = this year\") at the weight (`markovWeight`) that best predicted the base year: `backtest` predicts\nthe base year from the two years before it with a chain that never saw the base year, and reports its mean absolute\nerror next to that of plain persistence. The weight is chosen on that same year, so the reported error is in-sample\nfor it (one parameter of five values). Permanent cultures (grassland, special crops) keep their crop and arable parcels\nmove only between arable crops: transitions between the two are mostly classification changes between data\ndeliveries. Groups of fewer than 5 parcels are reported as `other`, in the backtest too. **Experimental:**\nthe model knows no prices, policy changes or weather.\n\nWithout the add-on the request is refused with 403 `addon_required` and an `upgradeUrl`.\n\n**Credits:** 50 per request plus 5 per hectare of the queried region, billed once per polygon, year and calendar\nmonth (separately from the statistics). **Limits:** as for the crop statistics.","tags":["Crop Forecast (add-on)"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropForecastRequest"}}}},"responses":{"200":{"description":"The forecast","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropForecastResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"No access to the region, or the Crop Forecast add-on is missing (`addon_required`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddonRequiredError"}}}},"429":{"description":"Rate limit exceeded for the organization. Retry after the number of seconds in `Retry-After`.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"Whole seconds until the rate-limit window rolls over and the request can be retried."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_maps_crops_forecast","summary":"Get next year's crop forecast of any region (Crop Forecast add-on)","x-keywords":"anbauprognose region","x-agmeo-effect":"compute"}},"/api/maps/crops/regions/forecast":{"get":{"description":"**Crop Forecast add-on.** The forecast of POST /api/maps/crops/forecast for a NUTS region, from the\nprecomputed NUTS3 parcel aggregate. 403 `addon_required` without the add-on.\n\n**Credits:** as for a polygon: 50 per request plus 5 per hectare of the region (`region.areaHa`),\nbilled once per region, year and calendar month (separately from the region's statistics). **Limits:** as for the crop statistics.","tags":["Crop Forecast (add-on)"],"parameters":[{"in":"query","name":"code","required":true,"schema":{"type":"string"},"description":"NUTS code (level = length − 2) or a Ukrainian district id"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Base year (2025 or 2026, default 2026)"}],"responses":{"200":{"description":"The forecast","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropForecastResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"No access to the region, or the Crop Forecast add-on is missing (`addon_required`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddonRequiredError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"429":{"description":"Rate limit exceeded for the organization. Retry after the number of seconds in `Retry-After`.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"Whole seconds until the rate-limit window rolls over and the request can be retried."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_maps_crops_regions_forecast","summary":"Get next year's crop forecast of a NUTS region (Crop Forecast add-on)","x-keywords":"anbauprognose landkreis","x-agmeo-effect":"read"}},"/api/{orgId}/fields/{id}/{year}/maps/raster":{"get":{"description":"Clip a raster layer to a field boundary and return the clipped image. The field boundary is resolved from the cultivation geometry (if exists for the given year) or falls back to the field blueprint.","tags":["B2B Raster Analysis"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"Organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"string"},"description":"Harvest year (used to resolve the cultivation boundary)"},{"in":"query","name":"layer","required":true,"schema":{"type":"string"},"description":"Raster layer ID (e.g. `twi`, `erosion-risk`, `terrain-class`)"},{"in":"query","name":"output","required":false,"schema":{"type":"string","enum":["geotiff","png"],"default":"geotiff"},"description":"Output format: `geotiff` or `png`"}],"responses":{"200":{"description":"Clipped raster image","headers":{"x-bounding-box-epsg-3857":{"schema":{"type":"string"},"description":"JSON array `[minX, minY, maxX, maxY]` of the output bounding box in EPSG:3857"}},"content":{"image/tiff":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}}}},"204":{"description":"No valid pixels inside field boundary"},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"404":{"description":"Field boundary not found or raster data not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_year_maps_raster","summary":"Get a raster layer (terrain, soil, climate) clipped to a field, as an image","x-keywords":"rasterkarte schlag gelände relief höhe elevation hangneigung twi","x-agmeo-effect":"read"}},"/api/{orgId}/fields/{id}/{year}/maps/raster/stats":{"get":{"description":"Compute zonal statistics for a raster layer within a field boundary. Results are cached for 7 days (static layers). Returns continuous statistics or categorical distribution depending on the layer type.","tags":["B2B Raster Analysis"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"Organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"string"},"description":"Harvest year"},{"in":"query","name":"layer","required":true,"schema":{"type":"string"},"description":"Raster layer ID (e.g. `twi`, `erosion-risk`, `terrain-class`)"}],"responses":{"200":{"description":"Zonal statistics or categorical distribution","headers":{"x-cache":{"schema":{"type":"string","enum":["HIT","MISS"]},"description":"Cache status"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RasterStatsResponse"}}}},"204":{"description":"No valid pixels inside field boundary"},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"404":{"description":"Field boundary not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_fields_id_year_maps_raster_stats","summary":"Get zonal statistics of a raster layer within a field (mean, median, quantiles or class shares)","x-keywords":"raster statistik schlag höhe elevation hangneigung slope twi mittelwert bodenpunkte","x-agmeo-effect":"read"}},"/api/{orgId}/irrigation/water-balances":{"get":{"description":"Per-field irrigation water balances for one harvest year. Each entry contains the field's soil water parameters, a daily FAO-56 water-balance series (soil water content, ETa, precipitation, irrigation, drainage, deficit — all in mm), the current deficit classification and the recorded irrigation events. Use `daysFrom` to trim the daily series to the last N days for lightweight summary polling. Supports pagination via the X-Page / X-Has-Next response headers. Requires the `user:org:read` scope for OAuth tokens.","tags":["Irrigation"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Harvest year to simulate (default: current year)"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":0,"minimum":0},"description":"Page number (0-indexed)"},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","default":1000,"minimum":1,"maximum":1000},"description":"Number of fields per page (default: 1000, max: 1000)"},{"in":"query","name":"fieldId","required":false,"schema":{"type":"string"},"description":"Return only the field with this id"},{"in":"query","name":"daysFrom","required":false,"schema":{"type":"integer","minimum":1,"maximum":366},"description":"Trim each field's daily water-balance series to entries from the last N days (today − N days and newer)"}],"responses":{"200":{"description":"Success","headers":{"X-Page":{"schema":{"type":"integer"},"description":"Current page number (0-indexed)"},"X-Page-Size":{"schema":{"type":"integer"},"description":"Number of items per page"},"X-Has-Next":{"schema":{"type":"boolean"},"description":"Whether there are more pages available"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetWaterBalancesResponse"}}}},"400":{"description":"Invalid query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Missing required OAuth scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_irrigation_water_balances","summary":"List the soil water balance of every field for one harvest year","x-keywords":"bewässerung beregnung wasserbilanz bodenwasser alle schläge irrigation need drought trockenstress","x-agmeo-effect":"read"}},"/api/{orgId}/irrigation/events":{"post":{"description":"Document an irrigation event on a cultivation. Creates the standard two-row IRRIGATION operation (method action + water product, quantity = mm × 10 in m³/ha, status PLANNING). Idempotent on `externalRef`: re-POSTing the same ref returns 200 with the existing operation instead of duplicating it. Corrections: DELETE /api/{orgId}/operations/{operationId}, then re-POST with a NEW externalRef. Requires the `user:org:read` scope for OAuth tokens.","tags":["Irrigation"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostIrrigationEventRequest"}}}},"responses":{"200":{"description":"Idempotent replay — the externalRef was already documented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostIrrigationEventResponse"}}}},"201":{"description":"Event created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostIrrigationEventResponse"}}}},"400":{"description":"Invalid body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Missing required OAuth scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"Cultivation not found in this organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_irrigation_events","summary":"Document an irrigation event (mm of water) on a cultivation","x-keywords":"bewässerung beregnung buchen dokumentieren gabe wassergabe record irrigation","x-agmeo-effect":"create"}},"/api/microclimate/layers":{"get":{"description":"List the microclimate layer registry: every computable variable with its physical model, model version, unit, temporal resolutions and scientific references (DOIs). The `id` of a layer is the `{variable}` of the compute routes. Not organization-scoped: `/api/microclimate/layers`, no `{orgId}` in the path.","tags":["Microclimate"],"responses":{"200":{"description":"Microclimate layer registry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MicroclimateLayersResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"429":{"description":"Rate limit exceeded for the organization. Retry after the number of seconds in `Retry-After`.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"Whole seconds until the rate-limit window rolls over and the request can be retried."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_microclimate_layers","summary":"List the microclimate variables that can be computed (path has no orgId)","x-keywords":"mikroklima kaltluft frost strahlung variablen","x-agmeo-effect":"read"}},"/api/microclimate/{variable}/stats":{"post":{"description":"Compute zonal statistics for one physically-based microclimate layer over a field boundary, on a 10 m grid.\n\nLayers are computed on demand from DEM + Open-Meteo + soil rasters. Depth-aware layers (`soil-temperature`, `n-mineralization-rate`) require the `depth` field (cm). The response echoes model provenance (model, version, references) so every value stays traceable.\n\nLayers with `status: planned` are specced but not yet wired and return `501`.\n\nGive one `date`, or a `dateRange` with an `aggregation` — e.g. `cumulative` for the total of a flux layer (precipitation, ET) over the window. NOT organization-scoped: the path is `/api/microclimate/…` with no `{orgId}` in it (`/api/{orgId}/microclimate/…` does not exist) — the organization is the token's. The field is named in the body: `fieldId` (boundary, crop and sowing date are then read from the field's cultivation in `year`) or a `geometry`.","tags":["Microclimate"],"parameters":[{"in":"path","name":"variable","required":true,"schema":{"type":"string"},"description":"Microclimate layer id — one of GET /api/microclimate/layers, e.g. `precipitation`, `soil-moisture`, `et0`, `et-actual`, `soil-water-deficit`, `soil-temperature`, `air-temperature-max`, `growing-degree-days`."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MicroclimateComputeRequest"}}}},"responses":{"200":{"description":"Zonal statistics with model provenance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MicroclimateStatsResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"413":{"description":"Request body exceeds the maximum accepted size.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"422":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"429":{"description":"Rate limit exceeded for the organization. Retry after the number of seconds in `Retry-After`.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"Whole seconds until the rate-limit window rolls over and the request can be retried."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"501":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_microclimate_variable_stats","summary":"Compute statistics of one microclimate variable for a field (fieldId or geometry; no orgId in path)","x-keywords":"mikroklima frostgefahr kaltluft strahlung bodenfeuchte modelliert","x-agmeo-effect":"compute"}},"/api/microclimate/{variable}/raster":{"post":{"description":"Compute one microclimate layer over the field window and return it as a georeferenced single-band Float32 GeoTIFF in EPSG:3857 (`format: \"geotiff\"`, the default) — its CRS/transform are embedded and its bounds equal the `x-bounding-box-epsg-3857` response header exactly (NoData = -9999) — or as a coloured PNG preview (`format: \"png\"`, hillshade + colour map, not georeferenced). The `x-microclimate-model-version` header carries the model version. `planned` layers return `501`. NOT organization-scoped: the path is `/api/microclimate/…` with no `{orgId}` in it (`/api/{orgId}/microclimate/…` does not exist) — the organization is the token's. The field is named in the body: `fieldId` (boundary, crop and sowing date are then read from the field's cultivation in `year`) or a `geometry`.","tags":["Microclimate"],"parameters":[{"in":"path","name":"variable","required":true,"schema":{"type":"string"},"description":"Microclimate layer id — one of GET /api/microclimate/layers, e.g. `precipitation`, `soil-moisture`, `et0`, `et-actual`, `soil-water-deficit`, `soil-temperature`, `air-temperature-max`, `growing-degree-days`."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MicroclimateComputeRequest"}}}},"responses":{"200":{"description":"Computed microclimate raster: georeferenced GeoTIFF (default) or coloured PNG preview (`format: \"png\"`)","headers":{"x-bounding-box-epsg-3857":{"schema":{"type":"string"},"description":"JSON array `[minX, minY, maxX, maxY]` in EPSG:3857 — the compute-window footprint; equals the GeoTIFF's bounds exactly"},"x-microclimate-model-version":{"schema":{"type":"string"},"description":"Version of the microclimate model that computed the raster"}},"content":{"image/tiff":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"413":{"description":"Request body exceeds the maximum accepted size.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"422":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"429":{"description":"Rate limit exceeded for the organization. Retry after the number of seconds in `Retry-After`.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"Whole seconds until the rate-limit window rolls over and the request can be retried."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"501":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_microclimate_variable_raster","summary":"Compute one microclimate variable for a field as a GeoTIFF (fieldId or geometry; no orgId in path)","x-keywords":"mikroklima karte raster bodenfeuchte","x-agmeo-effect":"compute"}},"/api/microclimate/bundle":{"post":{"description":"Compute the full microclimate bundle (or a requested subset via `variables`) for a field in one call. Each layer is returned with its provenance and statistics; layers that fail (e.g. not yet implemented) carry a per-layer `error` instead of failing the whole request. NOT organization-scoped: the path is `/api/microclimate/…` with no `{orgId}` in it (`/api/{orgId}/microclimate/…` does not exist) — the organization is the token's. The field is named in the body: `fieldId` (boundary, crop and sowing date are then read from the field's cultivation in `year`) or a `geometry`.","tags":["Microclimate"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MicroclimateBundleRequest"}}}},"responses":{"200":{"description":"Per-layer microclimate results for the field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MicroclimateBundleResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"413":{"description":"Request body exceeds the maximum accepted size.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"422":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"429":{"description":"Rate limit exceeded for the organization. Retry after the number of seconds in `Retry-After`.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"Whole seconds until the rate-limit window rolls over and the request can be retried."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_microclimate_bundle","summary":"Compute several microclimate variables for a field in one call (no orgId in path)","x-keywords":"mikroklima","x-agmeo-effect":"compute"}},"/api/microclimate/{variable}/timeseries":{"post":{"description":"Field-aggregate time series of one microclimate layer over `dateRange` (required): one value per day, month or year, or a running total (`aggregation`). Example — total rain on a field since sowing: variable `precipitation`, body `{ fieldId, year, dateRange: { from: <sowing day>, to: <today> } }`, then add up the daily `series` values (mm); `aggregation: \"cumulative\"` returns the running total instead. GET /api/{orgId}/fields/{id}/{year}/climate-context answers the same from the weather archive without the model. NOT organization-scoped: the path is `/api/microclimate/…` with no `{orgId}` in it (`/api/{orgId}/microclimate/…` does not exist) — the organization is the token's. The field is named in the body: `fieldId` (boundary, crop and sowing date are then read from the field's cultivation in `year`) or a `geometry`.","tags":["Microclimate"],"parameters":[{"in":"path","name":"variable","required":true,"schema":{"type":"string"},"description":"Microclimate layer id — one of GET /api/microclimate/layers, e.g. `precipitation`, `soil-moisture`, `et0`, `et-actual`, `soil-water-deficit`, `soil-temperature`, `air-temperature-max`, `growing-degree-days`."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MicroclimateComputeRequest"}}}},"responses":{"200":{"description":"Field-aggregate microclimate time series","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MicroclimateTimeseriesResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"413":{"description":"Request body exceeds the maximum accepted size.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"422":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"429":{"description":"Rate limit exceeded for the organization. Retry after the number of seconds in `Retry-After`.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"Whole seconds until the rate-limit window rolls over and the request can be retried."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"501":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_microclimate_variable_timeseries","summary":"Compute the daily series of one microclimate variable for a field (fieldId; no orgId in path)","x-keywords":"mikroklima verlauf zeitreihe modelliert bodenfeuchte verdunstung precipitation soil moisture","x-agmeo-effect":"compute"}},"/api/{orgId}/rasterize":{"post":{"description":"Rasterize arbitrary vector features (application maps, soil maps, yield maps, …) onto the canonical analytics grid: EPSG:3857, 10m default resolution, origin snapped to multiples of the resolution so all grid rasters overlay pixel-exact.\n\nEach polygon feature burns the numeric value of `valueProperty` into the pixels it covers (later features overwrite earlier ones); uncovered pixels are nodata. `output=geotiff` (default) returns the burned raster as Float32 GeoTIFF, `output=stats` returns the grid definition plus statistics as JSON.","tags":["Grid Analytics"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"Organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RasterizeRequest"}}}},"responses":{"200":{"description":"Burned raster (GeoTIFF) or grid statistics (JSON)","headers":{"x-bounding-box-epsg-3857":{"schema":{"type":"string"},"description":"JSON array `[minX, minY, maxX, maxY]` of the grid bounding box in EPSG:3857"},"x-value-range":{"schema":{"type":"string"},"description":"PNG output: JSON array `[min, max]` — the values the colour ramp spans, in the raster's unit"}},"content":{"image/tiff":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"allOf":[{"type":"object","properties":{"grid":{"$ref":"#/components/schemas/AnalyticsGridDefinition"}}},{"$ref":"#/components/schemas/AnalyticsGridStats"}]}}}},"204":{"description":"No valid pixels"},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_rasterize","summary":"Rasterize vector features onto the 10 m analytics grid","x-keywords":"rasterisieren applikationskarte ertragskarte raster","x-agmeo-effect":"compute"}},"/api/{orgId}/fields/{id}/analytics/kpi":{"post":{"description":"Compute per-pixel KPI surfaces for a field via the operation walk: every operation of the field's cultivations is rasterized onto the analytics grid — application-map or VRN zone rates where they exist, the uniform per-ha value everywhere else — and KPI rasters are derived from the accumulated inputs.\n\nKPIs: `profitability` (revenue − all costs, EUR/ha), `n_efficiency` (yield / N applied, kg/kg N), `p_efficiency` (yield / P₂O₅ applied, kg/kg P₂O₅), `carbon` (kg CO₂e/ha).\n\nA field without any spatial input yields flat rasters by design — the spatial signal grows with every application map (and, later, yield map) attached to a transaction; the `coverage` object reports how many transactions vary spatially. With multiple years the response includes per-pixel stability (mean + coefficient of variation) when the field geometry is unchanged across years.","tags":["Grid Analytics"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"Organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Field ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KpiAnalyticsRequest"}}}},"responses":{"200":{"description":"KPI statistics (JSON) or a single KPI raster (GeoTIFF, one year + one KPI)","headers":{"x-bounding-box-epsg-3857":{"schema":{"type":"string"},"description":"GeoTIFF output only: JSON array of the grid bounding box in EPSG:3857"},"x-kpi-unit":{"schema":{"type":"string"},"description":"GeoTIFF output only: unit of the raster values"},"x-value-range":{"schema":{"type":"string"},"description":"PNG output: JSON array `[min, max]` — the values the colour ramp spans, in the raster's unit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KpiAnalyticsResponse"}},"image/tiff":{"schema":{"type":"string","format":"binary"}}}},"204":{"description":"No valid pixels for the requested KPI"},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"No cultivation found for this field in the given years","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_fields_id_analytics_kpi","summary":"Compute per-pixel KPI maps of a field (profitability, N and P efficiency, carbon)","x-keywords":"teilflächen auswertung stickstoffeffizienz n-effizienz nitrogen efficiency phosphor co2 carbon wirtschaftlichkeit karte within-field","x-agmeo-effect":"compute"}},"/api/{orgId}/fields/{id}/analytics/explain":{"post":{"description":"Rank foundation layers by how strongly they co-vary with a KPI surface: the KPI raster is computed via the operation walk, the driver layers (topography, soil texture, SOC — or any B2B raster layer the organization can access) are sampled onto the same grid, and each driver is scored with Pearson and Spearman correlation plus the mean KPI value per driver quartile.\n\nCorrelation is association, not causality — the ranking points at candidate drivers of within-field variation, it does not prove them. Layers the organization cannot access are reported under `skippedLayers`.","tags":["Grid Analytics"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"Organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Field ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplainAnalyticsRequest"}}}},"responses":{"200":{"description":"Driver ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplainAnalyticsResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"Field boundary or cultivation not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_fields_id_analytics_explain","summary":"Rank which terrain and soil layers explain a field's KPI pattern","x-keywords":"ursachen ertragsunterschiede erklärung treiber driver correlation","x-agmeo-effect":"compute"}},"/api/{orgId}/fields/{id}/analytics/yield-map":{"post":{"description":"Grid a harvest-monitor point shapefile (e.g. a John Deere Operations Center yield export) onto the field's analytics grid. Upload the zip via the Files API first, then pass its fileKey.\n\nThe yield attribute is auto-detected (VRYIELDMAS, DRYMASS, WETMASS, YIELD, ERTRAG — check `attribute` in the response to verify the right column was picked), non-positive values are dropped and the 1st/99th percentiles are clipped against monitor spikes. The gridded map can be passed to the KPI endpoint via `yieldMaps` to distribute the harvest transaction spatially.","tags":["Grid Analytics"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"Organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Field ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/YieldMapAnalyticsRequest"}}}},"responses":{"200":{"description":"Gridded yield statistics (JSON) or the yield raster (GeoTIFF)","headers":{"x-bounding-box-epsg-3857":{"schema":{"type":"string"},"description":"GeoTIFF output only: JSON array of the grid bounding box in EPSG:3857"},"x-yield-attribute":{"schema":{"type":"string"},"description":"GeoTIFF output only: the detected yield attribute"},"x-value-range":{"schema":{"type":"string"},"description":"PNG output: JSON array `[min, max]` — the values the colour ramp spans, in the raster's unit"},"x-yield-raster-id":{"schema":{"type":"string"},"description":"With cultivationId: id of the stored yield raster that was served"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/YieldMapAnalyticsResponse"}},"image/tiff":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"Field boundary or file not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_fields_id_analytics_yield_map","summary":"Grid a harvest-monitor point shapefile onto a field's analytics grid","x-keywords":"ertragskartierung mähdrescher ertragsdaten import yield monitor","x-agmeo-effect":"compute"}},"/api/{orgId}/fields/{id}/analytics/zones":{"post":{"description":"Cluster a KPI surface into management zones and return them as vector polygons (GeoJSON FeatureCollection, EPSG:4326) — the vector output of the analytics chain, directly usable for VRA planning and ISOXML export.\n\nThe KPI raster is computed via the operation walk, clustered with deterministic k-means, and vectorized back to polygons. To zone a yield map, pass `cultivationId`: the cultivation's persisted merged yield raster is clustered as stored (404 while it is still queued for building). `yieldMapFileKey` is deprecated — it re-parses the upload on every request. Zones are numbered 1..n with zone 1 = lowest KPI values; each feature carries `meanValue` and `areaHa`.","tags":["Grid Analytics"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"Organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Field ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZonesAnalyticsRequest"}}}},"responses":{"200":{"description":"Management zones as GeoJSON FeatureCollection","content":{"application/json":{"schema":{"type":"object","description":"GeoJSON FeatureCollection"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"No cultivation found for this field in the given year (kpi), no merged yield raster built yet for the cultivation on this field (cultivationId), or field boundary not found (yieldMapFileKey)","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"post_fields_id_analytics_zones","summary":"Cluster a field's KPI map into management zones (GeoJSON polygons)","x-keywords":"managementzonen teilflächen zonierung ertragszonen","x-agmeo-effect":"compute"}},"/api/{orgId}/fields/{id}/{year}/nitrogen/requirement":{"get":{"description":"The DüV §4 Düngebedarfsermittlung (N requirement, Anlage 4) of the field's cultivation in the harvest year, computed exactly like the DBE column of the app's nitrogen page: stored inputs (crop, yield, soil type, humus, Nmin, previous crop, catch crop, organic N of the previous year, nitrate zone, film/fleece) with the soil-overview values (texture → LUFA class, humus, Nmin) applied on top. `redArea` names the legal basis of the red-area rule the result rests on (the Land's rule for the year, or the farm's own confirmation where that rule is not determinable); without a Nmin the result is an upper bound (`upperBoundWithoutNmin`). Effect: compute.","tags":["Nitrogen"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Harvest year"},{"in":"query","name":"cultivationId","required":false,"schema":{"type":"string","format":"uuid"},"description":"Which cultivation of the field to compute. Required when the field has several in the year (main crop + catch crop, Teilschläge); without it such a field answers 422 naming the cultivation ids"}],"responses":{"200":{"description":"The computed N requirement","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NitrogenRequirementResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"Field not found in this organization, or `cultivationId` is not on this field in the year","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"The field has no cultivation in this year","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Not computable from the stored inputs (no DüV reference data for the crop, or an input the ordinance demands is missing: the message names it), or the field has several cultivations in the year and no `cultivationId` was given (the message lists them)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"get_fields_id_year_nitrogen_requirement","summary":"Compute a field's nitrogen requirement (DüV §4 DBE) from the stored inputs","x-keywords":"düngebedarfsermittlung dbe stickstoffbedarf n-bedarf nmin düngeverordnung fertilizer need","x-agmeo-effect":"read"},"post":{"description":"Same computation with caller overrides (what-if: yield, Nmin, soil type, previous crop, …) — each key replaces the stored value; nMin/nMinSpring re-derive nSupply, nLeaching/nResidual re-derive nLoss. `saveSnapshot: true` stores the determination as the cultivation's DBE snapshot through the save of the nitrogen page: inputs and result are determined from the stored data plus the overrides, the red-area legal basis is stored with them, and a determination the newest snapshot already holds is not written again (200, `snapshot.unchanged`). Effect: compute, or write with saveSnapshot.","tags":["Nitrogen"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Field ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Harvest year"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NitrogenRequirementRequest"}}}},"responses":{"200":{"description":"The computed N requirement; with saveSnapshot: the newest stored snapshot already holds it (`snapshot.unchanged`), none was written","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NitrogenRequirementResponse"}}}},"201":{"description":"Computed and saved as a DBE snapshot (`snapshot` filled)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NitrogenRequirementResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"Field not found in this organization, or `cultivationId` is not on this field in the year","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"The field has no cultivation in this year","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Not computable from the stored inputs (no DüV reference data for the crop, or an input the ordinance demands is missing: the message names it), or the field has several cultivations in the year and no `cultivationId` was given (the message lists them)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"post_fields_id_year_nitrogen_requirement","summary":"Compute a field's nitrogen requirement with overrides (what-if), optionally saving it","x-keywords":"düngebedarfsermittlung dbe stickstoffbedarf n-bedarf nmin ertragsziel what-if","x-agmeo-effect":"compute"}},"/api/{orgId}/dbe/snapshots":{"get":{"description":"Newest saved Düngebedarfsermittlung per cultivation — the 'saved' state the nitrogen page shows, with the red-area legal basis stored with it (`redAreaBasis`). `year` is required unless `cultivationId` narrows the query. Paged by an opaque `cursor` (`limit` default 50, max 200). `include=inputs` adds the stored input row. Effect: read.","tags":["Nitrogen"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Harvest year"},{"in":"query","name":"cultivationId","required":false,"schema":{"type":"string","format":"uuid"},"description":"Single cultivation"},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":50,"maximum":200},"description":"Page size"},{"in":"query","name":"cursor","required":false,"schema":{"type":"string"},"description":"`nextCursor` of the previous page"},{"in":"query","name":"include","required":false,"schema":{"type":"string","enum":["inputs"]},"description":"Add the stored inputs"}],"responses":{"200":{"description":"Latest snapshot per cultivation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDbeSnapshotsResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"get_dbe_snapshots","summary":"List the newest saved nitrogen requirement (DBE) per cultivation","x-keywords":"düngebedarfsermittlung dbe gespeichert stickstoffbedarf snapshot","x-agmeo-effect":"read"},"post":{"description":"Compute and save a DBE snapshot for each cultivation (1–200) — the API twin of the nitrogen page's save: the same record (inputs, red-area legal basis, result), and no new snapshot for a determination the newest stored one already holds (`unchanged`, its date stays). Optional `overrides` apply to every cultivation. 201 when at least one snapshot was written, 200 when every computable one was unchanged, 422 when none could be computed; the others are listed in `skipped` with a reason. Effect: write.","tags":["Nitrogen"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDbeSnapshotsRequest"}}}},"responses":{"200":{"description":"Every computable determination is the one its newest snapshot already holds; nothing written","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDbeSnapshotsResponse"}}}},"201":{"description":"Snapshots written (partial success possible)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDbeSnapshotsResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"422":{"description":"No cultivation could be computed — see `skipped`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDbeSnapshotsResponse"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"post_dbe_snapshots","summary":"Compute and save nitrogen requirement (DBE) snapshots for up to 200 cultivations","x-keywords":"düngebedarfsermittlung dbe speichern stickstoffbedarf bulk","x-agmeo-effect":"create"}},"/api/{orgId}/fertilization-strategies":{"get":{"description":"The N split strategies offered on the nitrogen page: platform defaults (`isDefault: true`) plus the organization's own. Small list — `limit`/`cursor` are accepted for envelope consistency and ignored. Effect: read.","tags":["Nitrogen"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"responses":{"200":{"description":"Strategies","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetFertilizationStrategiesResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"get_fertilization_strategies","summary":"List the nitrogen split strategies (platform defaults and the organization's own)","x-keywords":"düngestrategie gabenteilung stickstoffgaben n-split teilgaben","x-agmeo-effect":"read"}},"/api/{orgId}/export/enni/preflight":{"post":{"description":"Would the ENNI (Niedersachsen) export build? Runs the export's preflight and always answers 200 with the structured issue list (missing org metadata, unmapped crops, advisory field-data warnings) — the export route itself answers 422 on the same issues. `configured` says whether a Betriebsnummer is on file. Year from `?year=` or the optional JSON body `{ year }`. Effect: compute.","tags":["Exports"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Report year (or in the body)"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"year":{"type":"integer"}}}}}},"responses":{"200":{"description":"Preflight result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FederalExportPreflightResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"post_export_enni_preflight","summary":"Check whether the ENNI report (Niedersachsen) would build, with the issue list","x-keywords":"düngemeldung prüfung vorabprüfung fehler niedersachsen validate","x-agmeo-effect":"compute"}},"/api/{orgId}/export/endo/preflight":{"post":{"description":"Would the ENDO (Schleswig-Holstein) export build? Runs the export's preflight and always answers 200 with the structured issue list (missing org metadata, unmapped crops, advisory field-data warnings) — the export route itself answers 422 on the same issues. `configured` says whether a Betriebsnummer is on file. Year from `?year=` or the optional JSON body `{ year }`. Effect: compute.","tags":["Exports"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Report year (or in the body)"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"year":{"type":"integer"}}}}}},"responses":{"200":{"description":"Preflight result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FederalExportPreflightResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"post_export_endo_preflight","summary":"Check whether the ENDO report (Schleswig-Holstein) would build, with the issue list","x-keywords":"düngemeldung prüfung vorabprüfung fehler schleswig-holstein validate","x-agmeo-effect":"compute"}},"/api/{orgId}/export/besyd/preflight":{"post":{"description":"Would the BESYD (BB/SN/ST/TH) export build? Runs the export's preflight and always answers 200 with the structured issue list (missing org metadata, unmapped crops, advisory field-data warnings) — the export route itself answers 422 on the same issues. `configured` says whether a Betriebsnummer is on file. Year from `?year=` or the optional JSON body `{ year }`. Effect: compute.","tags":["Exports"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Report year (or in the body)"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"year":{"type":"integer"}}}}}},"responses":{"200":{"description":"Preflight result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FederalExportPreflightResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"post_export_besyd_preflight","summary":"Check whether the BESYD transfer (BB, SN, ST, TH) would build, with the issue list","x-keywords":"düngebedarfsermittlung prüfung vorabprüfung fehler brandenburg sachsen thüringen validate","x-agmeo-effect":"compute"}},"/api/{orgId}/export/st/preflight":{"post":{"description":"Would the Sachsen-Anhalt Mitteilungspflicht (LLG) export build? Runs the export's preflight and always answers 200 with the structured issue list (missing org metadata, unmapped crops, advisory field-data warnings) — the export route itself answers 422 on the same issues. `configured` says whether an EU-Betriebsnummer is on file. Year from `?year=` or the optional JSON body `{ year }`. Effect: compute.","tags":["Exports"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Report year (or in the body)"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"year":{"type":"integer"}}}}}},"responses":{"200":{"description":"Preflight result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FederalExportPreflightResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"post_export_st_preflight","summary":"Check whether the Sachsen-Anhalt notification (LLG) would build, with the issue list","x-keywords":"mitteilungspflicht prüfung vorabprüfung fehler sachsen-anhalt validate","x-agmeo-effect":"compute"}},"/api/{orgId}/export/obligations":{"get":{"description":"Which federal fertilization reports the organization owes for a report year, from the reporting state the app's fertilizer-reports page uses (manual override, else FLIK-prefix majority when ≥ 50 % of fields carry one, else the farm's Regierungsbezirk or the centroid of all field geometries): ENNI for NI, ENDO for SH, the Mitteilungspflicht (st) for ST, BESYD (import helper, no filing) for BB/SN/ST/TH. Each report carries the statutory deadline (ENNI 30 June for the 2025/2026 reports, else 31 March; ENDO 31 March; ST 30 April of the following year), `daysUntil`, a coarse `status` (due_soon ≤ 60 days), whether the farm number is configured and the export/preflight paths to call next. Default year: previous year until June, current year from July (Europe/Berlin). Effect: read.","tags":["Exports"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Report year"}],"responses":{"200":{"description":"Obligations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportObligationsResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"get_export_obligations","summary":"List the federal fertilization reports the organization owes for a year","x-keywords":"meldepflicht düngemeldung bundesland enni endo besyd behörde frist deadline","x-agmeo-effect":"read"}},"/api/market-prices":{"get":{"description":"Newest weekly EU Agri-food reference price per commodity (EUR/t) for one country. Reference data, not org-scoped: any authenticated token may read it. `stale` is true when the weekly crawler has not stored a quote for the country in 14 days (the route never refreshes on demand). Effect: read.","tags":["Market Prices"],"parameters":[{"in":"query","name":"country","required":false,"schema":{"type":"string","enum":["DE","FR","PL","CZ","NL","IT","RO"],"default":"DE"},"description":"ISO 3166-1 alpha-2 of a supported country"},{"in":"query","name":"commodity","required":false,"schema":{"type":"string"},"description":"Comma list of commodity keys (see `commodities` in the response), e.g. WHEAT_BREAD,RAPESEED"}],"responses":{"200":{"description":"Latest quotes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetMarketPricesResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"get_market_prices","summary":"Get the newest weekly EU reference price per commodity for a country","x-keywords":"marktpreise erzeugerpreise getreidepreis weizenpreis rapspreis börse commodity quote","x-agmeo-effect":"read"}},"/api/{orgId}/providers":{"get":{"description":"List every telematics / FMIS provider the caller may see, with the organization's connection (health computed from timestamps, no token refresh), capabilities and newest import run. Barto is user-keyed and not listed. Tokens are never returned. `agco` is visible to agvolution staff only (403 otherwise); `climavi`/`raindancer` are listed but have no equipment/hierarchy/import/export capabilities (422 on their sub-routes). Requires the `user:org:read` scope for OAuth tokens.","tags":["Providers"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"responses":{"200":{"description":"Providers visible to the caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProvidersResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Not a member of the organization, missing OAuth scope, or staff-only provider (`code: forbidden_org`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_providers","summary":"List the telematics and FMIS providers with the organization's connection state","x-keywords":"john deere claas agco nextfarming integration verbindung schnittstelle connected telemetrie","x-agmeo-effect":"read"}},"/api/{orgId}/providers/{provider}":{"get":{"description":"One provider's summary: connection, capabilities, newest import run. Tokens are never returned. `agco` is visible to agvolution staff only (403 otherwise); `climavi`/`raindancer` are listed but have no equipment/hierarchy/import/export capabilities (422 on their sub-routes). Requires the `user:org:read` scope for OAuth tokens.","tags":["Providers"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"provider","required":true,"schema":{"$ref":"#/components/schemas/ProviderIdEnum"},"description":"Provider id"}],"responses":{"200":{"description":"Provider summary","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderSummary"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Not a member of the organization, missing OAuth scope, or staff-only provider (`code: forbidden_org`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"404":{"description":"Unknown provider, provider not connected for this organization, or job not found (`code: not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_providers_provider","summary":"Get one provider's connection, capabilities and newest import run","x-keywords":"john deere claas integration verbindung status","x-agmeo-effect":"read"}},"/api/{orgId}/providers/{provider}/equipment":{"get":{"description":"Machines, implements, terminals (CLAAS OFT) and operators (John Deere) as the provider reports them. The vendor listing is fetched whole and paged in memory (opaque cursor). Tokens are never returned. `agco` is visible to agvolution staff only (403 otherwise); `climavi`/`raindancer` are listed but have no equipment/hierarchy/import/export capabilities (422 on their sub-routes). Requires the `user:org:read` scope for OAuth tokens.","tags":["Providers"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"provider","required":true,"schema":{"$ref":"#/components/schemas/ProviderIdEnum"},"description":"Provider id"},{"in":"query","name":"kind","required":false,"schema":{"type":"string"},"description":"Comma-separated kinds to include: machine, implement, terminal, operator (default all)"},{"in":"query","name":"includeArchived","required":false,"schema":{"type":"boolean","default":false},"description":"Include archived equipment"},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":50,"minimum":1,"maximum":200},"description":"Page size"},{"in":"query","name":"cursor","required":false,"schema":{"type":"string"},"description":"Opaque cursor from the previous page's nextCursor"}],"responses":{"200":{"description":"Equipment page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProviderEquipmentResponse"}}}},"400":{"description":"Invalid query or body (`code: validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Not a member of the organization, missing OAuth scope, or staff-only provider (`code: forbidden_org`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"404":{"description":"Unknown provider, provider not connected for this organization, or job not found (`code: not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"409":{"description":"Provider rejected the stored credentials — reconnect (`code: conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"422":{"description":"The provider does not support this capability (`code: validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_providers_provider_equipment","summary":"List the machines, implements, terminals and operators known to a provider","x-keywords":"john deere claas maschinen geräte terminal fahrer telemetrie","x-agmeo-effect":"read"}},"/api/{orgId}/providers/{provider}/hierarchy":{"get":{"description":"Provider organizations → farms/clients → fields, each field with the agmeo field it is linked to (`linkedFieldId`) and the John Deere organizations still pending an access grant. A tree, not paginated. Tokens are never returned. `agco` is visible to agvolution staff only (403 otherwise); `climavi`/`raindancer` are listed but have no equipment/hierarchy/import/export capabilities (422 on their sub-routes). Requires the `user:org:read` scope for OAuth tokens.","tags":["Providers"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"provider","required":true,"schema":{"$ref":"#/components/schemas/ProviderIdEnum"},"description":"Provider id"}],"responses":{"200":{"description":"Provider hierarchy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProviderHierarchyResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Not a member of the organization, missing OAuth scope, or staff-only provider (`code: forbidden_org`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"404":{"description":"Unknown provider, provider not connected for this organization, or job not found (`code: not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"409":{"description":"Provider rejected the stored credentials — reconnect (`code: conflict`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"422":{"description":"The provider does not support this capability (`code: validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_providers_provider_hierarchy","summary":"Get a provider's organizations, farms and fields with their linked agmeo fields","x-keywords":"john deere claas betriebe schläge zuordnung verknüpfung mapping","x-agmeo-effect":"read"}},"/api/{orgId}/providers/{provider}/imports":{"get":{"description":"Import jobs (durable provider-import runs) of the provider, newest first; nightly and manual runs alike. Read-only: runs are created by the app's own sync flows. Items omit phases and live progress — GET the job for those. Tokens are never returned. `agco` is visible to agvolution staff only (403 otherwise); `climavi`/`raindancer` are listed but have no equipment/hierarchy/import/export capabilities (422 on their sub-routes). Requires the `user:org:read` scope for OAuth tokens.","tags":["Providers"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"provider","required":true,"schema":{"$ref":"#/components/schemas/ProviderIdEnum"},"description":"Provider id"},{"in":"query","name":"status","required":false,"schema":{"$ref":"#/components/schemas/ProviderImportStatusEnum"},"description":"Only jobs in this status"},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":50,"minimum":1,"maximum":200},"description":"Page size"},{"in":"query","name":"cursor","required":false,"schema":{"type":"string"},"description":"Opaque cursor from the previous page's nextCursor"}],"responses":{"200":{"description":"Import jobs page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProviderImportsResponse"}}}},"400":{"description":"Invalid query or body (`code: validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Not a member of the organization, missing OAuth scope, or staff-only provider (`code: forbidden_org`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"404":{"description":"Unknown provider, provider not connected for this organization, or job not found (`code: not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"422":{"description":"The provider does not support this capability (`code: validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_providers_provider_imports","summary":"List a provider's import runs, newest first","x-keywords":"john deere claas synchronisierung sync importlauf","x-agmeo-effect":"read"}},"/api/{orgId}/providers/{provider}/imports/{id}":{"get":{"description":"One import job with per-chunk phases and, while a John Deere / NEXT Farming operations import is running, its live progress. Tokens are never returned. `agco` is visible to agvolution staff only (403 otherwise); `climavi`/`raindancer` are listed but have no equipment/hierarchy/import/export capabilities (422 on their sub-routes). Requires the `user:org:read` scope for OAuth tokens.","tags":["Providers"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"provider","required":true,"schema":{"$ref":"#/components/schemas/ProviderIdEnum"},"description":"Provider id"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Import job id"}],"responses":{"200":{"description":"Import job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderImportJob"}}}},"400":{"description":"Invalid query or body (`code: validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Not a member of the organization, missing OAuth scope, or staff-only provider (`code: forbidden_org`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"404":{"description":"Unknown provider, provider not connected for this organization, or job not found (`code: not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"422":{"description":"The provider does not support this capability (`code: validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_providers_provider_imports_id","summary":"Get one provider import run with its phases and live progress","x-keywords":"john deere claas synchronisierung sync fortschritt","x-agmeo-effect":"read"}},"/api/{orgId}/providers/{provider}/exports":{"get":{"description":"Application-map export jobs (integration-outbox rows) of the provider, newest first. Tokens are never returned. `agco` is visible to agvolution staff only (403 otherwise); `climavi`/`raindancer` are listed but have no equipment/hierarchy/import/export capabilities (422 on their sub-routes). Requires the `user:org:read` scope for OAuth tokens.","tags":["Providers"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"provider","required":true,"schema":{"$ref":"#/components/schemas/ProviderIdEnum"},"description":"Provider id"},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":50,"minimum":1,"maximum":200},"description":"Page size"},{"in":"query","name":"cursor","required":false,"schema":{"type":"string"},"description":"Opaque cursor from the previous page's nextCursor"}],"responses":{"200":{"description":"Export jobs page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProviderExportsResponse"}}}},"400":{"description":"Invalid query or body (`code: validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Not a member of the organization, missing OAuth scope, or staff-only provider (`code: forbidden_org`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"404":{"description":"Unknown provider, provider not connected for this organization, or job not found (`code: not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"422":{"description":"The provider does not support this capability (`code: validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_providers_provider_exports","summary":"List the application-map export jobs sent to a provider, newest first","x-keywords":"claas agco applikationskarte senden terminal export auftrag","x-agmeo-effect":"read"},"post":{"description":"Push an application (fertilizerApplication) or seeding (planting) map to the provider: CLAAS → the OFT inbox of `target.equipmentId` (required), AGCO → a FarmENGAGE prescription import (optional `target.deviceIds`; the field must be linked by the FarmENGAGE field sync). The push happens inside the request (AGCO waits for FarmENGAGE to parse the file). Always 202 with the job once it is enqueued: `status: sent` when the provider accepted it, `pending` + `lastError` when the push failed and the provider's nightly sync retries it. Only CLAAS and AGCO export (422 otherwise). Tokens are never returned. `agco` is visible to agvolution staff only (403 otherwise); `climavi`/`raindancer` are listed but have no equipment/hierarchy/import/export capabilities (422 on their sub-routes). Requires the `user:org:read` scope for OAuth tokens.","tags":["Providers"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"provider","required":true,"schema":{"$ref":"#/components/schemas/ProviderIdEnum"},"description":"Provider id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostProviderExportRequest"}}}},"responses":{"202":{"description":"Export job (sent or pending)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderExportJob"}}}},"400":{"description":"Invalid query or body (`code: validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Not a member of the organization, missing OAuth scope, or staff-only provider (`code: forbidden_org`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"404":{"description":"Unknown provider, provider not connected for this organization, or job not found (`code: not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"422":{"description":"The provider does not support this capability (`code: validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"502":{"description":"The export failed upstream before a job existed (map converter unavailable); nothing was enqueued (`code: internal`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}}},"operationId":"post_providers_provider_exports","summary":"Send an application or seeding map to a provider's terminal","x-keywords":"claas agco applikationskarte aussaatkarte senden terminal übertragen push prescription","x-agmeo-effect":"create"}},"/api/{orgId}/providers/{provider}/exports/{id}":{"get":{"description":"One export job. Tokens are never returned. `agco` is visible to agvolution staff only (403 otherwise); `climavi`/`raindancer` are listed but have no equipment/hierarchy/import/export capabilities (422 on their sub-routes). Requires the `user:org:read` scope for OAuth tokens.","tags":["Providers"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"provider","required":true,"schema":{"$ref":"#/components/schemas/ProviderIdEnum"},"description":"Provider id"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Export job id"}],"responses":{"200":{"description":"Export job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderExportJob"}}}},"400":{"description":"Invalid query or body (`code: validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Not a member of the organization, missing OAuth scope, or staff-only provider (`code: forbidden_org`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"404":{"description":"Unknown provider, provider not connected for this organization, or job not found (`code: not_found`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"422":{"description":"The provider does not support this capability (`code: validation_failed`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_providers_provider_exports_id","summary":"Get one application-map export job of a provider","x-keywords":"claas agco applikationskarte export status","x-agmeo-effect":"read"}},"/api/{orgId}/application-maps":{"get":{"summary":"List the stored application maps, newest first","description":"Persisted application maps of the organization, newest first, keyset-paginated. No zone geometry — see GET /application-maps/{id}.","tags":["Application Maps"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"year","required":false,"schema":{"type":"integer"},"description":"Harvest year"},{"in":"query","name":"fieldId","required":false,"schema":{"type":"string","format":"uuid"},"description":"Only the maps of this field"},{"in":"query","name":"mode","required":false,"schema":{"type":"string","enum":["fertilizerApplication","planting"]},"description":"Only fertilizer application maps or only seeding maps"},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":50,"minimum":1,"maximum":200},"description":"Page size"},{"in":"query","name":"cursor","required":false,"schema":{"type":"string"},"description":"Opaque cursor from the previous page's nextCursor"}],"responses":{"200":{"description":"Application maps","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetApplicationMapsResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"get_application_maps","x-keywords":"applikationskarten streukarten gespeichert prescription vra","x-agmeo-effect":"read"}},"/api/{orgId}/application-maps/from-zones":{"post":{"summary":"Create and store an application map for a cultivation from its stored zones","description":"Build and persist an application map for a cultivation in one call: resolve the base zones, normalise their relative yields to an area-weighted mean of 1, rate every zone around `standardRate` (multipliers clipped to 0.65–1.35, `invert` puts more where the yield potential is low), and store the map. Zones come from the organisation's stored zonations — soil sampling zones, yield zonations, saved base zonations or a uniform zone. Satellite/TWI zonation is only available in the app. Optionally links the cultivation's product transaction (`linkTransaction`) and stores an ISOXML/shapefile export for a terminal from GET /application-maps/terminals (`export`); the zip is fetched via the returned `export.downloadUrl` or GET /files/{fileKey}?download=true.","tags":["Application Maps"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostApplicationMapFromZonesRequest"}}}},"responses":{"201":{"description":"Map created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationMapFromZonesResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"Cultivation, field or requested zonation not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"A map with this name exists (send overrideExisting: true)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Zonation unusable (e.g. soil-zonation-empty) or unknown article (ApiError); or the map was stored and the converter refused its export (ApplicationMapExportFailure — the body names the stored map)","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ApiError"},{"$ref":"#/components/schemas/ApplicationMapExportFailure"}]}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"The map (and its transaction) was stored, but the converter or the file store was unavailable for the export","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationMapExportFailure"}}}}},"operationId":"post_application_maps_from_zones","x-keywords":"applikationskarte streukarte teilflächen zonen isoxml shapefile prescription","x-agmeo-effect":"create"}},"/api/{orgId}/application-maps/{id}":{"get":{"summary":"Get one stored application map with its zones and download link","description":"One persisted application map with its zones (RATE / UNIT / PRODUCT / TreatmentID / areaFraction per zone). With `download=true` and a stored export, `export.downloadUrl` is a presigned URL (300 s) for the ISOXML/shapefile zip.","tags":["Application Maps"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"The application map ID (from GET /application-maps)"},{"in":"query","name":"download","required":false,"schema":{"type":"boolean"},"description":"true adds a presigned download URL (300 s) of the stored export"}],"responses":{"200":{"description":"Application map","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationMapDetail"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"get_application_maps_id","x-keywords":"applikationskarte streukarte zonen download isoxml shapefile","x-agmeo-effect":"read"}},"/api/{orgId}/base-fertilization/{year}":{"get":{"summary":"List base fertilization (P, K, Mg, lime) status and recommendation per field","description":"P₂O₅ / K₂O / MgO (Grunddüngung) management per field for a harvest year: topsoil pH/P/K/Mg/humus values, VDLUFA supply level and removal-based recommendation (null per nutrient when the soil test is missing), lime requirement, nutrients already applied and planned, and the 6-year P balance with the DüV §6 120 % check. One row per field like the app; capped at 200 rows (`truncated`).","tags":["Base Fertilization"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Harvest year"}],"responses":{"200":{"description":"Field rows","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBaseFertilizationResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"get_base_fertilization_year","x-keywords":"grunddüngung phosphor kalium magnesium kalk kalkung versorgungsstufe gehaltsklasse vdlufa ph","x-agmeo-effect":"read"}},"/api/{orgId}/base-fertilization/need":{"post":{"summary":"Compute the P, K and Mg need for a crop and yield (VDLUFA, nothing stored)","description":"Pure VDLUFA / DüV Anlage 7 computation, nothing is stored: nutrient removal for a crop and yield (grain, plus straw when it leaves the field), supply level from the soil tests (level C without them; P is capped on high-P soils per DüV §4) and the recommendation = removal × level factor, all in kg/ha.","tags":["Base Fertilization"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostBaseFertilizationNeedRequest"}}}},"responses":{"200":{"description":"Need per nutrient","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseFertilizationNeedResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"422":{"description":"Crop without nutrient-removal figures (e.g. fallow, intercrops)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"post_base_fertilization_need","x-keywords":"grunddüngung phosphor kalium magnesium bedarf entzug abfuhr versorgungsstufe","x-agmeo-effect":"compute"}},"/api/{orgId}/fields/{id}/{year}/p2o5-balance":{"get":{"summary":"Get a field's 6-year P₂O₅ balance (supply against removal, DüV §6)","description":"Documented P₂O₅ fertilizer supply vs. removal from documented yields for the years year − 5 … year, per year and in total, with the DüV §6 check (supply ≤ 120 % of removal). Years without a documented yield have removal null.","tags":["Base Fertilization"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Field id"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Last year of the window"}],"responses":{"200":{"description":"P balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldP2o5Balance"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"get_fields_id_year_p2o5_balance","x-keywords":"phosphatbilanz phosphor saldo nährstoffbilanz düngeverordnung","x-agmeo-effect":"read"}},"/api/{orgId}/economics/{year}/settings":{"get":{"summary":"Get the year's overhead and subsidy settings of the profitability computation","description":"Per-year overhead (lease, land tax, insurance, accounting, …) and CAP subsidy settings (base premium, redistribution tranches, eco-schemes) the profitability computation uses. Defaults (all 0, no article-price fallback) when never saved.","tags":["Economics"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Harvest year"}],"responses":{"200":{"description":"Settings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FarmEconomicsSettings"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"get_economics_year_settings","x-keywords":"gemeinkosten pacht prämien agrarförderung gap öko-regelungen festkosten","x-agmeo-effect":"read"},"put":{"summary":"Update the year's overhead and subsidy settings of the profitability computation","description":"Merge a partial settings object into the stored row for the year (defaults ← stored ← body) and return the result. Unknown keys are rejected.","tags":["Economics"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Harvest year"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutFarmEconomicsSettingsRequest"}}}},"responses":{"200":{"description":"Stored settings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FarmEconomicsSettings"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"put_economics_year_settings","x-keywords":"gemeinkosten pacht prämien agrarförderung festkosten ändern","x-agmeo-effect":"update"}},"/api/{orgId}/soil/zonations/runs":{"post":{"summary":"Run the soil sampling zonation for up to 50 fields","description":"Delineate soil sampling zones for up to 50 fields (sequentially, like the app's batch wizard) from a TWI, satellite-index (ndvi/savi/ndmi, best scene of the last 365 days), soil-map (bk50-buek200) or Bodenschätzung (soil-rating) source. Each new zonation supersedes the field's active one. Fields the organization locks (metadata.lockFieldsWithExistingZonation) that already have a zonation are skipped; foreign field ids fail with field-not-found. Read the zones with GET /fields/{id}/soil/zones or GET /soil/zones/export.","tags":["Soil Maps"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostSoilZonationRunsRequest"}}}},"responses":{"200":{"description":"Partial: the time budget ran out before every field was run (`partial: true`). Fields with status skipped and reason deadline were not started — send only those again","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostSoilZonationRunsResponse"}}}},"202":{"description":"Per-field results of the whole batch (`partial: false`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostSoilZonationRunsResponse"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"post_soil_zonations_runs","x-keywords":"bodenzonen probenahme zonierung beprobungszonen twi bodenschätzung","x-agmeo-effect":"create"}},"/api/{orgId}/soil/zonations/upload":{"post":{"summary":"Preview an uploaded zone file matched against the fields (nothing stored)","description":"Parse a zipped shapefile or GeoJSON of sampling zones (≤ 25 MB, multipart part `file`) and match the zones to the organization's fields by overlap. Nothing is stored — the preview (per field: matched zones, coverage, whether a zonation exists; plus unmatched zones) is the input of POST …/upload/import, one call per field.","tags":["Soil Maps"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"Matched zones","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZonationUploadPreview"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"422":{"description":"File could not be parsed as a zone shapefile / GeoJSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"post_soil_zonations_upload","x-keywords":"bodenzonen shapefile geojson hochladen vorschau","x-agmeo-effect":"compute"}},"/api/{orgId}/soil/zonations/upload/import":{"post":{"summary":"Import the uploaded zones of one field as its soil sampling zonation","description":"Store the zones matched to one field (from the upload preview) as its soil sampling zonation: clipped to the boundary, de-overlapped and gap-filled; the previous active zonation is superseded. 201 on success, 200 when skipped (e.g. locked), 422 when the import failed.","tags":["Soil Maps"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostSoilZonationUploadImportRequest"}}}},"responses":{"200":{"description":"Skipped","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZonationUploadResult"}}}},"201":{"description":"Imported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZonationUploadResult"}}}},"400":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"422":{"description":"Import failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZonationUploadResult"}}}},"500":{"description":"Error with a machine-readable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"operationId":"post_soil_zonations_upload_import","x-keywords":"bodenzonen shapefile geojson importieren übernehmen","x-agmeo-effect":"create"}},"/api/{orgId}/crop-varieties/traits":{"get":{"summary":"List a crop's varieties with their agronomic traits (maturity, lodging, yield)","description":"Varieties of a crop with their sowing-relevant agronomic traits (maturity, winter hardiness, lodging, yield, TKG) distilled from the Bundessortenamt descriptive variety list. Public reference data; capped at 400 varieties.","tags":["Crop Varieties"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"crop","required":true,"schema":{"type":"string"},"description":"SupportedCrops key"}],"responses":{"200":{"description":"Varieties","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VarietyTraitsResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_crop_varieties_traits","x-keywords":"sorten sorteneigenschaften bundessortenamt reife standfestigkeit winterhärte tkg","x-agmeo-effect":"read"}},"/api/{orgId}/varieties/resistance":{"get":{"summary":"Get the disease susceptibility ratings of a variety (Bundessortenamt)","description":"Resolves a variety — by `cultivationId` (org-scoped) or by `variety` name (normalized match against the public catalogue, optionally narrowed by `crop`) — and returns its Bundessortenamt disease-susceptibility ratings (1–9). 404 when the variety cannot be resolved.","tags":["Crop Varieties"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"variety","required":false,"schema":{"type":"string"},"description":"Variety name, matched against the public catalogue (required without cultivationId)"},{"in":"query","name":"crop","required":false,"schema":{"type":"string"},"description":"SupportedCrops key that narrows the variety name match"},{"in":"query","name":"cultivationId","required":false,"schema":{"type":"string","format":"uuid"},"description":"Take the variety from this cultivation of the organization instead of a name"}],"responses":{"200":{"description":"Ratings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VarietyResistanceResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"404":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_varieties_resistance","x-keywords":"sorte krankheiten anfälligkeit resistenz mehltau septoria rost fusarium","x-agmeo-effect":"read"}},"/api/{orgId}/plant-protection/products":{"get":{"summary":"Search approved plant-protection products by crop, target or active ingredient","description":"Searches the BVL plant-protection registry (Germany) by crop, target organism and/or active ingredient and returns approved products — one record per product with crops/targets aggregated and conservative safety scalars (bee hazard, water buffer, BBCH window, official Auflagen). Public reference data; the window is alphabetical and capped at 60 products (header `X-Results-Truncated: true` when capped).","tags":["Plant Protection"],"parameters":[{"in":"path","name":"orgId","required":true,"schema":{"type":"string"},"description":"The organization ID"},{"in":"query","name":"crop","required":false,"schema":{"type":"string"},"description":"SupportedCrops key"},{"in":"query","name":"target","required":false,"schema":{"type":"string"},"description":"Target organism (substring)"},{"in":"query","name":"activeIngredient","required":false,"schema":{"type":"string"},"description":"Active ingredient (substring)"}],"responses":{"200":{"description":"Approved products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovedProductsResponse"}}}},"400":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"500":{"description":"General Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"operationId":"get_plant_protection_products","x-keywords":"pflanzenschutzmittel psm zulassung bvl wirkstoff herbizid fungizid insektizid pesticide schaderreger","x-agmeo-effect":"read"}}},"components":{"schemas":{"ImageryResponse":{"description":"GeoTiff or PNG image in binary format","content":{"image/tiff":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}}},"headers":{"x-cloud-coverage":{"description":"The cloud coverage percentage of the satellite image","schema":{"type":"number","format":"float","minimum":0,"maximum":100,"example":12.5}},"x-image-date":{"description":"The date of the satellite image","schema":{"type":"string","format":"date","example":"2023-01-01"}},"x-bounding-box-epsg-3857":{"description":"The bounding box of the returned image in EPSG:3857 coordinates (minX,minY,maxX,maxY)","schema":{"type":"string","example":"710609.9575104312,6016433.629414422,710999.9575104312,6016448.629414422"}},"x-resolution":{"description":"The resolution of the returned image","schema":{"type":"string","enum":["10m","3m"],"example":"10m"}}}},"AnnotationsFeatureCollection":{"type":"object","properties":{"type":{"type":"string","enum":["FeatureCollection"]},"features":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"geometry":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"type":"array","items":{"type":"number"},"example":[11.5,51.3]}},"required":["type","coordinates"]},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"]},{"type":"object","properties":{"type":{"type":"string","enum":["LineString"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"number"}}}},"required":["type","coordinates"]}]},"properties":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Annotation row ID"},"annotationType":{"type":"string","enum":["marker","freehand","polygon","rectangle"],"description":"The type of annotation drawn on the map"},"note":{"type":"string","description":"Optional text note attached to the annotation"},"color":{"type":"string","description":"Hex color of the annotation","example":"#ef4444"},"date":{"type":"string","format":"date","description":"Date this annotation belongs to"},"layer":{"type":"string","nullable":true,"description":"Layer this annotation was created on"}},"required":["id","annotationType","color","date"]}},"required":["type","geometry","properties"]}}},"required":["type","features"]},"PostAnnotationRequest":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"Context date (YYYY-MM-DD)"},"source":{"type":"string","description":"Origin context, e.g. \"satellite\""},"layer":{"type":"string","description":"Optional sub-context, e.g. \"ndvi\""},"year":{"type":"integer","description":"Optional harvest year"},"annotationType":{"type":"string","enum":["marker","freehand","polygon","rectangle"]},"color":{"type":"string","example":"#ef4444"},"note":{"type":"string"},"geometry":{"type":"object","description":"GeoJSON geometry (Point, Polygon, or LineString)"}},"required":["date","source","annotationType","color","geometry"]},"VrnSummary":{"type":"object","properties":{"totalAreaHa":{"type":"number","description":"Total treated area in hectares"},"totalProductKg":{"type":"number","description":"Total product amount needed in kg"},"totalNitrogenKg":{"type":"number","description":"Total nitrogen amount in kg N"},"avgRateKgNPerHa":{"type":"number","description":"Area-weighted average rate in kg N/ha"},"minRateKgNPerHa":{"type":"number","description":"Minimum zone rate in kg N/ha"},"maxRateKgNPerHa":{"type":"number","description":"Maximum zone rate in kg N/ha"},"zoneCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Number of management zones"}},"required":["totalAreaHa","totalProductKg","totalNitrogenKg","avgRateKgNPerHa","minRateKgNPerHa","maxRateKgNPerHa","zoneCount"]},"VrnZone":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"]},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"]}],"description":"Geometry of the management zone"},"properties":{"type":"object","properties":{"zoneId":{"type":"string","description":"Unique identifier for this management zone"},"areaHa":{"type":"number","description":"Zone area in hectares"},"rateKgNPerHa":{"type":"number","description":"Recommended nitrogen rate in kg N/ha"},"rateKgProductPerHa":{"type":"number","description":"Recommended product rate in kg product/ha"},"nMin":{"description":"User-input or modeled Nmin in kg N/ha at season start","type":"number"},"nMinSpring":{"description":"User-input or modeled mineralized N in kg N/ha","type":"number"},"nResidual":{"description":"User-input or modeled Nmin in kg N/ha at season start","type":"number"},"nLoss":{"description":"User-input or modeled N loss in kg N/ha during the season","type":"number"},"nDemand":{"description":"Total crop nitrogen demand for this season in kg N/ha for this zone","type":"number"},"yieldInTpHa":{"description":"Expected yield in t/ha fresh matter for this zone","type":"number"},"reasoning":{"description":"Agronomic explanation for this rate","type":"string"}},"required":["zoneId","areaHa","rateKgNPerHa","rateKgProductPerHa"]}},"required":["type","geometry","properties"]},"VrsSummary":{"type":"object","properties":{"totalAreaHa":{"type":"number","description":"Total treated area in hectares"},"totalSeedKg":{"description":"Total seed amount needed in kg","type":"number"},"avgSeedingRate":{"type":"number","description":"Mean target density over the zones in plants/m²"},"minSeedingRate":{"type":"number","description":"Lowest zone target density in plants/m²"},"maxSeedingRate":{"type":"number","description":"Highest zone target density in plants/m²"},"zoneCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Number of management zones"}},"required":["totalAreaHa","avgSeedingRate","minSeedingRate","maxSeedingRate","zoneCount"]},"VrsZone":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"]},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"]}],"description":"Geometry of the management zone"},"properties":{"type":"object","properties":{"zoneId":{"type":"string","description":"Unique identifier for this management zone"},"areaHa":{"type":"number","description":"Zone area in hectares"},"seedingRateKgPerHa":{"description":"Seeding rate in kg seed per hectare (for weight-based seeding)","type":"number"},"seedingRatePlantsPerM2":{"description":"Seeding rate in plants per square meter (for precision planters)","type":"number"},"seedingRateSeedsPerM2":{"description":"Seeding rate in seeds per square meter (alternative specification)","type":"number"},"targetDensity":{"description":"Target plant density for this zone in plants/m²","type":"number"},"relativeYield":{"description":"Relative yield potential of this zone compared to field average","type":"number"},"reasoning":{"description":"Agronomic explanation for this seeding rate","type":"string"}},"required":["zoneId","areaHa"]}},"required":["type","geometry","properties"]},"AnalyticsGridDefinition":{"type":"object","properties":{"originX":{"type":"number","example":1367890,"description":"Top-left X in EPSG:3857, multiple of resolution"},"originY":{"type":"number","example":6789540,"description":"Top-left Y in EPSG:3857, multiple of resolution"},"resolution":{"type":"number","example":10,"description":"Pixel size in meters"},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":84},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":61}},"required":["originX","originY","resolution","width","height"],"description":"The analytics grid: EPSG:3857, north-up, origin snapped to multiples of the resolution so all grid rasters overlay pixel-exact."},"KpiEnum":{"type":"string","enum":["profitability","n_efficiency","p_efficiency","carbon"],"description":"profitability = revenue − all costs [EUR/ha] · n_efficiency = yield / N applied [kg/kg N] · p_efficiency = yield / P₂O₅ applied [kg/kg P₂O₅] · carbon = accumulated emissions [kg CO₂e/ha]"},"KpiCoverage":{"type":"object","properties":{"cultivations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":1},"transactions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":24},"spatialTransactions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":3,"description":"Transactions whose rate varies spatially (application map or VRN zone quantities)"},"yieldSource":{"type":"string","enum":["uniform","map"],"description":"Where the yield signal comes from — a gridded yield map or the uniform harvest transaction"},"yieldMapCoverage":{"example":0.94,"description":"Fraction of field pixels covered by the yield map (only when yieldSource = map)","type":"number"}},"required":["cultivations","transactions","spatialTransactions","yieldSource"]},"ProviderIdEnum":{"type":"string","enum":["johndeere","claas","agco","nextfarming","climavi","raindancer"],"description":"Provider id. `agco` (PTx FarmENGAGE) is staff-only while AGCO partner credentials are pending; `climavi` and `raindancer` are listed for completeness (connections only, no equipment/hierarchy/import/export capabilities).","example":"johndeere"},"ProviderImportKindEnum":{"type":"string","enum":["all","fields","machinery","products","operations","soilSamples"],"description":"What an import job covers. Per provider: johndeere: all, fields, machinery, products, operations; claas: all, fields, operations; agco: all, fields, operations; nextfarming: all, operations, soilSamples. NEXT Farming `soilSamples` is an alias of its operations import (soil samples are imported with it).","example":"operations"},"ProviderExportKindEnum":{"type":"string","enum":["applicationMap"],"description":"What an export job pushes to the provider.","example":"applicationMap"},"ProviderConnection":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastRefreshedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"accessTokenExpiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"providerOrganizationId":{"nullable":true,"description":"The provider-side organisation the connection is bound to (CLAAS org, FarmENGAGE org); null when the provider has no such concept or none was picked yet.","type":"string"},"scopes":{"nullable":true,"type":"array","items":{"type":"string"}},"health":{"type":"string","enum":["ok","expired","unknown"],"description":"`expired`: the access token is past its expiry and has not been refreshed for 24 h — the org must reconnect. `unknown`: no refresh history to judge by. Computed from timestamps only; listing never refreshes tokens."}},"required":["id","connectedAt","lastUsedAt","lastRefreshedAt","accessTokenExpiresAt","providerOrganizationId","scopes","health"],"description":"An OAuth connection of the organisation. Never carries tokens."},"ProviderCapabilities":{"type":"object","properties":{"equipment":{"type":"boolean"},"hierarchy":{"type":"boolean"},"imports":{"type":"array","items":{"$ref":"#/components/schemas/ProviderImportKindEnum"}},"exports":{"type":"array","items":{"$ref":"#/components/schemas/ProviderExportKindEnum"}}},"required":["equipment","hierarchy","imports","exports"],"description":"What the sub-routes of this provider support; unsupported sub-routes answer 422."},"ProviderImportStatusEnum":{"type":"string","enum":["queued","running","done","failed","cancelled"]},"ProviderLastImport":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"$ref":"#/components/schemas/ProviderImportStatusEnum"},"trigger":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"startedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"finishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","status","trigger","createdAt","startedAt","finishedAt"]},"ProviderSummary":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ProviderIdEnum"},"name":{"type":"string","example":"John Deere Operations Center"},"status":{"type":"string","enum":["available","coming_soon"]},"staffOnly":{"type":"boolean"},"capabilities":{"$ref":"#/components/schemas/ProviderCapabilities"},"connection":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/ProviderConnection"}]},"lastImport":{"nullable":true,"description":"Newest import run of this provider for the organisation (nightly or manual), if any.","allOf":[{"$ref":"#/components/schemas/ProviderLastImport"}]}},"required":["id","name","status","staffOnly","capabilities","connection","lastImport"],"description":"A provider with the organisation's connection state and capabilities."},"ProviderEquipmentKindEnum":{"type":"string","enum":["machine","implement","terminal","operator"]},"ProviderEquipmentItem":{"type":"object","properties":{"id":{"type":"string"},"kind":{"$ref":"#/components/schemas/ProviderEquipmentKindEnum"},"name":{"type":"string"},"make":{"nullable":true,"type":"string"},"model":{"nullable":true,"type":"string"},"serialNumber":{"nullable":true,"type":"string"},"category":{"nullable":true,"description":"Provider type label (JD equipment type, AGCO vehicle type / implement operation type, CLAAS type).","type":"string"},"archived":{"type":"boolean"},"providerOrganizationId":{"nullable":true,"type":"string"},"providerOrganizationName":{"nullable":true,"type":"string"},"telematicsCapable":{"nullable":true,"type":"boolean"},"licenseState":{"nullable":true,"description":"CLAAS OFT terminals only: the file-transfer licence state.","type":"string"}},"required":["id","kind","name","make","model","serialNumber","category","archived","providerOrganizationId","providerOrganizationName","telematicsCapable","licenseState"],"description":"A machine, implement, terminal or operator as the provider reports it."},"ProviderHierarchyField":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"areaInHa":{"nullable":true,"type":"number"},"linkedFieldId":{"nullable":true,"description":"The agmeo field this provider field is linked to (via the field sync), null when not imported yet.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id","name","areaInHa","linkedFieldId"]},"ProviderHierarchyGroup":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/ProviderHierarchyField"}}},"required":["id","name","fields"]},"ProviderHierarchyOrganization":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"farms":{"type":"array","items":{"$ref":"#/components/schemas/ProviderHierarchyGroup"}},"clients":{"type":"array","items":{"$ref":"#/components/schemas/ProviderHierarchyGroup"},"description":"John Deere only (grower/customer groups)."},"unassignedFields":{"type":"array","items":{"$ref":"#/components/schemas/ProviderHierarchyField"}}},"required":["id","name","farms","clients","unassignedFields"]},"ProviderPendingOrganization":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"connectionsUrl":{"type":"string","description":"Where the user grants access in the provider's UI."}},"required":["id","name","connectionsUrl"]},"ProviderImportPhase":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","running","done","failed"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"counters":{"nullable":true,"type":"object","additionalProperties":{"type":"number"}},"error":{"nullable":true,"type":"string"},"startedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"finishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["seq","kind","status","attempts","counters","error","startedAt","finishedAt"]},"ProviderImportLiveProgress":{"type":"object","properties":{"phase":{"type":"string"},"counters":{"type":"object","additionalProperties":{"type":"number"}},"unknownCropFields":{"nullable":true,"type":"array","items":{"type":"string"}},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["phase","counters","unknownCropFields","updatedAt"],"description":"Live in-process progress of the running operations import (John Deere / NEXT Farming only); null otherwise."},"ProviderImportJob":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"provider":{"$ref":"#/components/schemas/ProviderIdEnum"},"trigger":{"type":"string","enum":["onboarding","nightly","manual","reconcile"]},"kinds":{"type":"array","items":{"$ref":"#/components/schemas/ProviderImportKindEnum"}},"status":{"$ref":"#/components/schemas/ProviderImportStatusEnum"},"progress":{"type":"object","properties":{"totalChunks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"doneChunks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failedChunks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percent":{"type":"number"}},"required":["totalChunks","doneChunks","failedChunks","percent"]},"counters":{"nullable":true,"type":"object","additionalProperties":{"type":"number"}},"phases":{"type":"array","items":{"$ref":"#/components/schemas/ProviderImportPhase"},"description":"Per-chunk progress; empty in list responses."},"live":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/ProviderImportLiveProgress"}]},"error":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"startedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"finishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastHeartbeatAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","provider","trigger","kinds","status","progress","counters","phases","live","error","createdAt","startedAt","finishedAt","lastHeartbeatAt"],"description":"An import job = one durable provider-import run, created by the app's own sync flows (nightly, onboarding, Sync now). Read-only through this API. `kinds` is read back from the run's chunks and is empty for runs without chunks (CLAAS, FarmENGAGE)."},"ProviderExportStatusEnum":{"type":"string","enum":["sent","pending","failed"],"description":"`sent`: accepted by the provider. `pending`: the immediate push failed, the provider's nightly sync retries (up to 5 attempts). `failed`: retries exhausted — see lastError."},"ProviderExportJob":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"provider":{"$ref":"#/components/schemas/ProviderIdEnum"},"kind":{"$ref":"#/components/schemas/ProviderExportKindEnum"},"entityId":{"type":"string","description":"The agmeo id that was exported (a cultivationId for application maps)."},"op":{"type":"string","description":"Provider-side operation, e.g. `oftUpload` (CLAAS) or `prescriptionImport` (AGCO)."},"status":{"$ref":"#/components/schemas/ProviderExportStatusEnum"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"nullable":true,"type":"string"},"providerRef":{"nullable":true,"description":"Provider handles once sent: `{ fileId, equipmentId }` (CLAAS OFT) or `{ jobId, fileName }` (FarmENGAGE).","type":"object","additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"sentAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","provider","kind","entityId","op","status","attempts","lastError","providerRef","createdAt","sentAt"],"description":"An export job = one integration-outbox row."},"MeOrganization":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"nullable":true,"type":"string"},"role":{"type":"string"}},"required":["id","name","slug","role"],"description":"An organization the authenticated user is a member of","example":{"id":"org_2abcdefghijklmnopqrstuvwxy","name":"Demo Farm","slug":"demo-farm","role":"org:admin"}},"PutFieldsRequest":{"type":"object","properties":{"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"]},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"]}]},"crop":{"type":"string","enum":["silageMaize","winterWheat","canola","sugarBeet","winterBarleyFodder","springBarleyMalting","springOatsFodder","springWheatFodder","winterRyeBaking","fieldGrassWiltedSilage","permanentGrasslandWiltedSilage","potatoTableLate","peasDry","peasDryFodder","triticaleFodder","broadBeans","sunflower","grassSeed","hardWheat","grainMaize","soybeanBeans","cerealRyeIntercrop","mustardIntercrop","oilRadishIntercrop","persianCloverIntercrop","phaceliaIntercrop","ryeWholePlantSilage","lupine","spelt","landscapeFeature","nonProductiveArea","alfalfa","winterOats","springRye","springTriticale","springCanola","springDurum","winterBroadBeans","winterPeas","potatoStarch","seedPotato","potatoTableEarly","cornCobMix","maizeBiogas","sorghum","buckwheat","millet","lentils","chickpeas","linseed","hemp","poppy","fodderBeet","vetch","quinoa","emmer","einkorn","clover","cloverGrass","alfalfaGrass","intercropMixture","blackOatIntercrop","vetchIntercrop","crimsonCloverIntercrop","alexandrineCloverIntercrop","buckwheatIntercrop","sunflowerIntercrop","nigerIntercrop","sorghumIntercrop","linseedIntercrop","camelinaIntercrop","serradellaIntercrop","ryegrassUndersow","cloverGrassUndersow","onion","garlic","leek","carrot","whiteCabbage","redCabbage","savoyCabbage","cauliflower","broccoli","kale","kohlrabi","brusselsSprouts","chineseCabbage","lettuce","lambsLettuce","spinach","beetroot","celeriac","fennel","endive","bushBeans","sweetCorn","pumpkin","cucumber","tomato","bellPepper","asparagus","strawberry","hops","grapevine","rhubarb","pomeFruit","stoneFruit","rice","cowpeas","dryBeans","grainSorghum","foxtailMillet","pearlMillet","fallow","springCerealMixture","cerealLegumeMixture","legumeMixture","amaranth","otherCereals","otherLegumes","otherOilseeds","crambe","camelina","swede","fenugreek","birdsfootTrefoil","sainfoin","serradella","sweetClover","meadowOrchard","jerusalemArtichoke","sweetPotato","otherVegetables","brassicaVegetables","turnip","brownMustard","watercress","rucola","gardenCress","radish","grainMustard","eggplant","belladonna","melon","watermelon","alliumVegetables","orache","sorrel","parsnip","horseradish","scorzonera","artichoke","otherHerbs","dill","chervil","anise","caraway","cumin","blackCumin","coriander","lovage","parsley","basil","rosemary","sage","borage","oregano","savory","hyssop","verbena","lavender","thyme","lemonBalm","gentian","mint","artemisia","calendula","echinacea","ribwortPlantain","chamomile","yarrow","valerian","stJohnsWort","ladysMantle","milkThistle","goatsRue","dandelion","angelica","mallow","arnica","turfGrass","woad","canaryGrass","tobacco","safflower","nettle","madder","ornamentalPlants","phaceliaMainCrop","otherEnergyCrops","silphium","virginiaMallow","knotweed","switchgrass","miscanthus","szarvasiGrass","reedCanaryGrass","otherFruit","bushBerries","seaBuckthorn","hazelnut","walnut","otherNuts","treeNursery","shortRotationCoppice","poplarCoppice","willowCoppice","otherPermanentCrops","christmasTrees","mushrooms","greenManure","otherArableCrops","unknownCrop"]},"cultivationId":{"description":"The cultivation to update. A field can carry several cultivations (sub-fields) in one year — without this the main crop is updated; several main crops (a split field) answer 422 listing their ids.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"asNewCultivation":{"description":"Create an additional cultivation (sub-field) for this field-year instead of replacing the existing one. Requires `crop`.","type":"boolean"},"secondaryCropType":{"description":"With `asNewCultivation`: create the cultivation as a secondary crop (intercrop or undersow) under the field-year's main crop, on the same ground and in the same year. Only secondary crops are accepted. null is treated like an omitted field.","nullable":true,"type":"string","enum":["INTERCROP","UNDERSOW"]},"variety":{"description":"Variety name (free text). Fuzzy-matched to the catalogue: case-, whitespace- and manufacturer-prefix-insensitive. null is treated like an omitted field.","nullable":true,"type":"string","minLength":1},"usage":{"nullable":true,"description":"Purpose of the cultivation: COMMERCIAL (market production, the default) or SEED_MULTIPLICATION (certified seed production of the same crop). Available for every crop; null is treated like an omitted field.","type":"string","enum":["COMMERCIAL","SEED_MULTIPLICATION"]},"seedLot":{"description":"Seed lot / certification number of a seed multiplication. Only kept while usage is SEED_MULTIPLICATION; null or \"\" clears it.","nullable":true,"type":"string","maxLength":100},"multiplicationGeneration":{"description":"Multiplication generation of a seed multiplication (e.g. Basic, C1, Z1). Only kept while usage is SEED_MULTIPLICATION; null or \"\" clears it.","nullable":true,"type":"string","maxLength":50},"sowingDate":{"format":"date","description":"Sowing date (YYYY-MM-DD). Moves the cultivation's planting operations to this date; a cultivation without planting operations (e.g. created without a template) gets a generic sowing operation inserted. null is treated like an omitted field.","nullable":true,"type":"string"},"sowingDateComputed":{"description":"true: `sowingDate` was not booked in the source system but filled in (e.g. with today) — the planting operations are marked as having a computed date. false: `sowingDate` is booked — a previous mark is removed. Omitted: the mark stays as it is. Only applied together with `sowingDate`.","type":"boolean"},"harvestDate":{"format":"date","description":"Harvest date (YYYY-MM-DD). Shifts the cultivation's harvest operations so the last one lands on this date; a cultivation without harvest operations gets a generic harvest operation inserted. null is treated like an omitted field.","nullable":true,"type":"string"},"harvestDateComputed":{"description":"true: `harvestDate` was not booked in the source system but filled in (e.g. with today) — the harvest operations are marked as having a computed date. false: `harvestDate` is booked — a previous mark is removed. Omitted: the mark stays as it is. Only applied together with `harvestDate`.","type":"boolean"},"templateId":{"description":"The ID of the template to use for this cultivation. If not provided when creating a new cultivation, a default template for the crop will be used. null is treated like an omitted field.","nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"fertiplan":{"description":"Syncs Fertiplan-sourced Fertilizing transactions and soil samples for this field, one cultivation per `matches[].cultivationYear` — not limited to the year in the URL. A year with no existing cultivation is skipped.","type":"object","properties":{"matchedBy":{"type":"string"},"matches":{"type":"array","items":{"type":"object","properties":{"planId":{"anyOf":[{"type":"string"},{"type":"number"}]},"planName":{"type":"string"},"cultivationYear":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fertiplanField":{"type":"object","properties":{"name":{"type":"string"},"areaInHa":{"nullable":true,"type":"number"},"farmNetId":{"type":"string"},"crop":{"nullable":true,"type":"object","properties":{"nameDe":{"type":"string"},"nameFr":{"nullable":true,"type":"string"},"farmNetId":{"type":"string"}},"required":["nameDe","farmNetId"]},"fertilizers":{"type":"array","items":{"type":"object","properties":{"nameDe":{"type":"string"},"nameFr":{"nullable":true,"type":"string"},"farmNetId":{"nullable":true,"type":"string"},"amountPerHa":{"type":"object","properties":{"amount":{"type":"number"},"unit":{"nullable":true,"type":"string"}},"required":["amount"],"description":"Application amount per hectare"},"amountN":{"type":"number"},"amountP2O5":{"type":"number"},"amountK2O":{"type":"number"},"amountMg":{"nullable":true,"type":"number"},"type":{"nullable":true,"type":"string"}},"required":["nameDe","amountPerHa","amountN","amountP2O5","amountK2O"]}},"expectedYield":{"nullable":true,"type":"number"},"nutrientValueN":{"nullable":true,"type":"number"},"nutrientValueP2O5":{"nullable":true,"type":"number"},"nutrientValueK2O":{"nullable":true,"type":"number"},"nutrientValueMg":{"nullable":true,"type":"number"}},"required":["name","farmNetId"]}},"required":["planId","planName","cultivationYear","fertiplanField"]}},"soilSamples":{"type":"array","items":{"type":"object","properties":{"name":{"nullable":true,"type":"string"},"date":{"nullable":true,"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"farmNetId":{"type":"string"}},"required":["name","farmNetId"]}},"reference":{"nullable":true,"type":"string"},"analysisType":{"nullable":true,"type":"string"},"soilType":{"nullable":true,"type":"string"},"percentageHumus":{"nullable":true,"type":"number"},"valuePh":{"nullable":true,"type":"number"},"clayClassification":{"nullable":true,"type":"string"},"correctionFactorP2o5":{"nullable":true,"type":"number"},"correctionFactorK2o":{"nullable":true,"type":"number"},"correctionFactorMg":{"nullable":true,"type":"number"}}}}},"required":["matchedBy","matches"]},"landor":{"description":"When set, syncs every cultivation year in the payload to its own cultivation of this field (missing cultivations are created from the Landor crop). Only Landor-sourced Fertilizing rows are replaced; the outcome is reported in the response's landorSync field.","type":"object","properties":{"matchedBy":{"type":"string"},"matches":{"type":"array","items":{"type":"object","properties":{"planId":{"type":"string"},"planName":{"type":"string"},"cultivationYear":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"landorField":{"type":"object","properties":{"name":{"type":"string"},"areaInHa":{"nullable":true,"type":"number"},"farmNetId":{"type":"string"},"crop":{"type":"object","properties":{"nameDe":{"type":"string"},"nameFr":{"nullable":true,"type":"string"},"farmNetId":{"type":"string"}},"required":["nameDe","farmNetId"]},"growthStates":{"type":"array","items":{"type":"object","properties":{"bbchCode":{"nullable":true,"type":"string"},"date":{"type":"string"},"nameDe":{"nullable":true,"type":"string"},"nameFr":{"nullable":true,"type":"string"},"fertilizer":{"nullable":true,"type":"object","properties":{"nameDe":{"type":"string"},"nameFr":{"nullable":true,"type":"string"},"farmNetId":{"nullable":true,"type":"string"},"amountPerHa":{"type":"object","properties":{"amount":{"type":"number"},"unit":{"nullable":true,"type":"string"}},"required":["amount"],"description":"Application amount per hectare"},"amountN":{"type":"number"},"amountP2O5":{"type":"number"},"amountK2O":{"type":"number"},"amountMg":{"nullable":true,"type":"number"},"amountS":{"nullable":true,"type":"number"},"amountCaO":{"nullable":true,"type":"number"}},"required":["nameDe","amountPerHa","amountN","amountP2O5","amountK2O"]}},"required":["date"]}}},"required":["name","farmNetId","crop","growthStates"]}},"required":["planId","planName","cultivationYear","landorField"]}},"syncYears":{"description":"Cultivation years the caller fetched Landor plans for. A listed year without fertilizer applications has its planned Landor fertilizations removed; without this field such a year is left untouched.","type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["matchedBy","matches"]}},"description":"The request body to update a field in one harvest year: only the keys sent change. All of them are stored on that year's cultivation, so a year without a cultivation needs `crop` too, which creates one. `geometry`: the new outline of the year's cultivation — a bare GeoJSON Polygon or MultiPolygon (WGS84), not a Feature. `crop`: a crop id of GET /api/crops; on a year with a cultivation it replaces that cultivation by one of this crop. `sowingDate` and `harvestDate` also take an ISO 8601 timestamp.","example":{"geometry":{"type":"MultiPolygon","coordinates":[[[[-1,-1],[-1,1],[1,1],[1,-1],[-1,-1]]]]},"crop":"silageMaize","variety":"Benchmark","usage":"SEED_MULTIPLICATION","seedLot":"ZM-2026-0417","multiplicationGeneration":"C1","sowingDate":"2025-05-08","harvestDate":"2025-09-15","templateId":"123e4567-e89b-12d3-a456-426614174000"}},"MachineResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"name":{"type":"string"},"manufacturer":{"type":"string"},"model":{"type":"string"},"category":{"type":"string","enum":["tractor_small","tractor_medium","tractor_large","tractor_xlarge","combine","self_propelled_sprayer","self_propelled_applicator","self_propelled_forage_harvester","self_propelled_root_harvester","track_tractor","telehandler","front_loader","transporter","irrigation_pump","other"]},"yearOfManufacture":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"serialNumber":{"nullable":true,"type":"string"},"inventoryNumber":{"nullable":true,"type":"string"},"licensePlate":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"catalogMachineId":{"nullable":true,"type":"string"},"powerKW":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"emptyMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"operatingMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"operatingMassEmptyKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"operatingMassFullKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"frontAxleFraction":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"tankCapacityL":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"frontTyre":{"nullable":true,"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","nullable":true,"enum":[null]}]},{"type":"object","additionalProperties":{}},{"type":"array","items":{}}]},"rearTyre":{"nullable":true,"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","nullable":true,"enum":[null]}]},{"type":"object","additionalProperties":{}},{"type":"array","items":{}}]},"purchaseDate":{"nullable":true,"type":"string"},"purchasePriceNet":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceGross":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceCurrency":{"type":"string"},"acquisitionType":{"nullable":true,"type":"string","enum":["owned","leased","rented","shared_machine_ring","contractor_owned","on_demonstration"]},"depreciationMethod":{"nullable":true,"type":"string","enum":["linear","declining_balance","performance_based","not_depreciating"]},"usefulLifeYears":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"residualValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceAnnual":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingType":{"nullable":true,"type":"string","enum":["cash","loan","leasing","operating_lease","manufacturer_financing"]},"financingMonthlyPayment":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingEndDate":{"nullable":true,"type":"string"},"leaseEndDate":{"nullable":true,"type":"string"},"maschinenringMemberNumber":{"nullable":true,"type":"string"},"contractorHourlyRate":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"hourlyOperatingCost":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"fuelConsumptionLitresPerHour":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"currentOperatingHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"expectedLifetimeHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"currentMileageKm":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"serviceIntervalHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"lastServiceDate":{"nullable":true,"type":"string"},"lastServiceHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"nextServiceDate":{"nullable":true,"type":"string"},"nextServiceDueHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"maintenanceCostYtd":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"dieselConsumptionYtdLitres":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"tuvUntil":{"nullable":true,"type":"string"},"insuranceUntil":{"nullable":true,"type":"string"},"homeBaseLocation":{"nullable":true,"type":"string"},"telemetryProvider":{"nullable":true,"type":"string"},"telemetryDeviceId":{"nullable":true,"type":"string"},"isobusCompatible":{"nullable":true,"type":"boolean"},"gpsTracking":{"nullable":true,"type":"boolean"},"irrigationType":{"nullable":true,"type":"string","enum":["drip","sprinkler","pivot","hose_reel","sub_irrigation","flood","micro_sprinkler"]},"irrigationFlowRateLPerMin":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"irrigationCoverageHa":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationOperatingPressureBar":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationWaterSourceId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"defaultOperatorId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","sold","scrapped","loaned_out","in_repair","decommissioned"]},"loanedToOrgId":{"nullable":true,"type":"string"},"imageUrl":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"nullable":true,"type":"string"}},"required":["id","orgId","name","manufacturer","model","category","yearOfManufacture","serialNumber","inventoryNumber","licensePlate","notes","catalogMachineId","powerKW","emptyMassKg","operatingMassKg","operatingMassEmptyKg","operatingMassFullKg","frontAxleFraction","tankCapacityL","frontTyre","rearTyre","purchaseDate","purchasePriceNet","purchasePriceGross","purchasePriceCurrency","acquisitionType","depreciationMethod","usefulLifeYears","residualValue","insuranceValue","insuranceAnnual","financingType","financingMonthlyPayment","financingEndDate","leaseEndDate","maschinenringMemberNumber","contractorHourlyRate","hourlyOperatingCost","fuelConsumptionLitresPerHour","currentOperatingHours","expectedLifetimeHours","currentMileageKm","serviceIntervalHours","lastServiceDate","lastServiceHours","nextServiceDate","nextServiceDueHours","maintenanceCostYtd","dieselConsumptionYtdLitres","tuvUntil","insuranceUntil","homeBaseLocation","telemetryProvider","telemetryDeviceId","isobusCompatible","gpsTracking","irrigationType","irrigationFlowRateLPerMin","irrigationCoverageHa","irrigationOperatingPressureBar","irrigationWaterSourceId","defaultOperatorId","status","loanedToOrgId","imageUrl","createdAt","updatedAt","archivedAt"],"title":"MachineResponse","description":"A self-propelled machine of the organization (identity, technical, economic and service data)."},"MachineLocationResponse":{"type":"object","properties":{"jdEquipmentId":{"type":"string","description":"John Deere equipment id (stable per machine)"},"jdName":{"type":"string"},"jdMake":{"nullable":true,"type":"string"},"jdModel":{"nullable":true,"type":"string"},"linkedMachineId":{"nullable":true,"description":"Machine this equipment is mapped to","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"lat":{"type":"number"},"lon":{"type":"number"},"eventTimestamp":{"type":"string","description":"ISO time of the position fix"},"speedKmh":{"nullable":true,"type":"number"},"heading":{"nullable":true,"type":"number"},"machineState":{"nullable":true,"type":"string"},"source":{"type":"string","enum":["aemp","breadcrumb","location"],"description":"John Deere API the fix came from"}},"required":["jdEquipmentId","jdName","jdMake","jdModel","linkedMachineId","lat","lon","eventTimestamp","speedKmh","heading","machineState","source"],"title":"MachineLocationResponse","description":"Last-known position of a John Deere machine."},"ImplementResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"name":{"type":"string"},"manufacturer":{"nullable":true,"type":"string"},"model":{"nullable":true,"type":"string"},"type":{"type":"string","enum":["plow","cultivator","harrow","disc_harrow","power_harrow","rotary_harrow","drill","seeder","combination_drill","precision_drill","fertilizer_spreader","manure_spreader","mower","tedder","rake","baler_round","baler_square","baler_variable","trailer","slurry_tanker","water_tanker","overload_wagon","tine_harrow_weeder","row_crop_cultivator","roller","cultipacker","mulcher","stone_picker","potato_planter","potato_harvester","sugar_beet_harvester","sprayer","grassland_overseeder","grassland_combo","meadow_harrow","grassland_mulcher","slurry_carrier_vehicle","irrigation_drip_line","irrigation_sprinkler","irrigation_hose_reel","irrigation_pivot","other"]},"mountType":{"type":"string","enum":["three_point","trailed","semi_mounted","self_propelled","stationary"]},"yearOfManufacture":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"serialNumber":{"nullable":true,"type":"string"},"inventoryNumber":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"catalogImplementId":{"nullable":true,"type":"string"},"emptyMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"maxFillMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"workingWidthM":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"hitchToCogM":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"loadShareOfAttachedVehicle":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"trailerAxleConfig":{"nullable":true,"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","nullable":true,"enum":[null]}]},{"type":"object","additionalProperties":{}},{"type":"array","items":{}}]},"purchaseDate":{"nullable":true,"type":"string"},"purchasePriceNet":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceGross":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceCurrency":{"type":"string"},"acquisitionType":{"nullable":true,"type":"string","enum":["owned","leased","rented","shared_machine_ring","contractor_owned","on_demonstration"]},"depreciationMethod":{"nullable":true,"type":"string","enum":["linear","declining_balance","performance_based","not_depreciating"]},"usefulLifeYears":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"residualValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceAnnual":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingType":{"nullable":true,"type":"string","enum":["cash","loan","leasing","operating_lease","manufacturer_financing"]},"financingMonthlyPayment":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingEndDate":{"nullable":true,"type":"string"},"leaseEndDate":{"nullable":true,"type":"string"},"maschinenringMemberNumber":{"nullable":true,"type":"string"},"contractorHourlyRate":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"hourlyOperatingCost":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"homeBaseLocation":{"nullable":true,"type":"string"},"maintenanceCostYtd":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationType":{"nullable":true,"type":"string","enum":["drip","sprinkler","pivot","hose_reel","sub_irrigation","flood","micro_sprinkler"]},"irrigationFlowRateLPerMin":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"irrigationCoverageHa":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationOperatingPressureBar":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationWaterSourceId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","sold","scrapped","loaned_out","in_repair","decommissioned"]},"imageUrl":{"nullable":true,"type":"string"},"telemetryProvider":{"nullable":true,"type":"string"},"telemetryDeviceId":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"nullable":true,"type":"string"}},"required":["id","orgId","name","manufacturer","model","type","mountType","yearOfManufacture","serialNumber","inventoryNumber","notes","catalogImplementId","emptyMassKg","maxFillMassKg","workingWidthM","hitchToCogM","loadShareOfAttachedVehicle","trailerAxleConfig","purchaseDate","purchasePriceNet","purchasePriceGross","purchasePriceCurrency","acquisitionType","depreciationMethod","usefulLifeYears","residualValue","insuranceValue","insuranceAnnual","financingType","financingMonthlyPayment","financingEndDate","leaseEndDate","maschinenringMemberNumber","contractorHourlyRate","hourlyOperatingCost","homeBaseLocation","maintenanceCostYtd","irrigationType","irrigationFlowRateLPerMin","irrigationCoverageHa","irrigationOperatingPressureBar","irrigationWaterSourceId","status","imageUrl","telemetryProvider","telemetryDeviceId","createdAt","updatedAt","archivedAt"],"title":"ImplementResponse","description":"A towed/mounted implement of the organization."},"OperatorResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"clerkUserId":{"nullable":true,"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"role":{"type":"string","enum":["machineOperator","fieldWorker","manager","other"]},"staffNumber":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"hourlyCostEuro":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"hourlyCostEuroWithheld":{"description":"Only on rows read by someone who may not see a person's pay: a member who does not administer the organization, and every AI assistant (the agmeo assistant, the assistant an end user connected through the agmeo connector); never for an administrator outside an AI assistant or for the organization's API key. The person has an hourly cost, and it is withheld (hourlyCostEuro is null), not missing. Labour rates without names come from the assistant's labour-rate tool (agmeo_labour_rates_get in the connector).","type":"boolean","enum":[true]},"notesPayWithheld":{"description":"Only on rows read by someone who may not see a person's pay (a member who does not administer the organization, an AI assistant), never for an administrator outside an AI assistant or for the organization's API key: an hourly rate an import left in the notes was taken out of them.","type":"boolean","enum":[true]}},"required":["id","orgId","clerkUserId","firstName","lastName","role","staffNumber","email","phone","notes","hourlyCostEuro","createdAt","updatedAt"],"title":"OperatorResponse","description":"A staff member / operator of the organization."},"TaskResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"assignedOperatorId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customName":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"priority":{"type":"string","enum":["LOW","NORMAL","HIGH","URGENT"]},"deadline":{"nullable":true,"type":"string"},"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"authorClerkUserId":{"nullable":true,"type":"string"},"authorName":{"nullable":true,"type":"string"},"body":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","authorClerkUserId","body","createdAt"]}},"taskGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"done":{"type":"boolean","description":"true when every transaction of the task's operation is DOCUMENTATION"}},"required":["id","orgId","operationId","assignedOperatorId","customName","description","priority","deadline","comments","taskGroupId","createdAt","updatedAt","done"],"title":"TaskResponse","description":"Task metadata of one operation (assignment, priority, deadline, comments) — one task per operation. comments are read-only via the API."},"TaskTombstone":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"deleted":{"type":"boolean","enum":[true]}},"required":["id","deleted"],"title":"TaskTombstone","description":"Delta-sync tombstone of a deleted task — only returned by GET /tasks with ?since=."},"NewsFeedItemResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"createdAt":{"type":"string"},"category":{"type":"string","enum":["weather","tasks","events","prices","advisory","offer","announcement"]},"headline":{"type":"string"},"body":{"type":"string"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"validFrom":{"type":"string"},"validUntil":{"nullable":true,"type":"string"},"ctaUrl":{"nullable":true,"type":"string"},"ctaLabel":{"nullable":true,"type":"string"}},"required":["id","createdAt","category","headline","body","priority","validFrom","validUntil","ctaUrl","ctaLabel"],"title":"NewsFeedItemResponse","description":"One item of the org's news feed (org-scoped or global, within its validity window)."},"SoilParameterValue":{"type":"object","properties":{"parameter":{"type":"string","enum":["soc","humus","clay","silt","sand","ph","p2o5","k2o","mgo","bd","nmin","no3","nh4","cec","nt","s","b","cu","zn","mn","fe","cd","na","ca","mo","smin","nsol","caco3","ct","siltf","siltm","siltc","sandf","sandmc","pb","cr","ni","hg","as","cut","znt"]},"value":{"type":"number"},"unit":{"nullable":true,"type":"string"},"method":{"type":"string"},"vdlufaStage":{"nullable":true,"type":"string","enum":["A","B","C","D","E"]},"layerFrom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"layerTo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"date":{"type":"string"},"source":{"type":"string","enum":["user","lab-probe","zone-mean","dsm-mean","global-index"]}},"required":["parameter","value","unit","method","vdlufaStage","layerFrom","layerTo","date","source"],"description":"One measured/entered soil value. Phosphorus, potassium and magnesium are always reported in canonical oxide form (p2o5/k2o/mgo) together with the lab extraction method — the unit follows the method (e.g. CAL P₂O₅ in mg/100g vs Olsen P in mg P/kg). vdlufaStage is the VDLUFA supply class A–E computed from value + method; date is the sampling date (YYYY-MM-DD).","example":{"parameter":"p2o5","value":14,"unit":"mg/100g","method":"cal","vdlufaStage":"D","layerFrom":0,"layerTo":30,"date":"2026-03-15","source":"lab-probe"}},"SoilZoneResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"zoneLabel":{"type":"string"},"classIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"color":{"type":"string"},"areaHa":{"type":"number","description":"Zone area (named areaHa here; field rows use areaInHa)","x-unit":"ha"},"probeNr":{"nullable":true,"description":"Org-wide probe number of the zone's mixed sample","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bodenartKa5":{"nullable":true,"type":"string"},"soilTypeText":{"nullable":true,"description":"Free-text soil type from an imported survey, e.g. 'Braunerde aus Hanglehm'","type":"string"},"nfkMm":{"nullable":true,"description":"Plant-available water capacity (nFK) in mm over the survey's root depth","type":"number"},"nfk30Pct":{"nullable":true,"description":"Survey-provided threshold at the 30 % nFK mark","type":"number"},"nfk50Pct":{"nullable":true,"description":"Survey-provided threshold at the 50 % nFK mark","type":"number"},"nfk70Pct":{"nullable":true,"description":"Survey-provided threshold at the 70 % nFK mark","type":"number"},"sourceRef":{"nullable":true,"description":"Provenance of an imported zone, e.g. 'bohrstock:zone:ghei_nass'","type":"string"},"geometry":{},"values":{"type":"array","items":{"$ref":"#/components/schemas/SoilParameterValue"}}},"required":["id","zoneLabel","classIndex","color","areaHa","probeNr","bodenartKa5","soilTypeText","nfkMm","nfk30Pct","nfk50Pct","nfk70Pct","sourceRef","geometry","values"],"description":"One zone of the active soil sampling zonation, with its topsoil (0-30 cm) values."},"TransactionResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"fieldId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"crop":{"type":"string"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Groups the action + product rows of one operation event"},"operationCategory":{"type":"string","description":"Operation category, e.g. TILLAGE, PLANTING, FERTILIZING, PROTECTION, MONITORING, MAINTENANCE, HARVESTING, POSTHARVEST, IRRIGATION, MISCELLANEOUS"},"actionOrProduct":{"type":"string","enum":["action","product"]},"articleId":{"type":"string","description":"Article FQN (machine action or product)"},"date":{"type":"string","description":"ISO timestamp of the operation"},"status":{"type":"string","enum":["PLANNING","IN_EXECUTION","DOCUMENTATION"]},"modifiedOrAdded":{"nullable":true,"type":"string","enum":["MODIFIED","ADDED"]},"quantity":{"type":"number","description":"Rate per hectare in `unit` — not a total. Product rows: the applied or harvested amount; action rows: 0."},"unit":{"type":"string","description":"Unit of quantity, always per area: kg_ha, dt_ha, t_ha, l_ha, hl_ha, cbm_ha (m³/ha), h_ha, pieces_ha, plants_m2, grains_m2, % — or \"\" on action rows. GET /api/units/quantity lists the catalogue units."},"frequency":{"type":"number","description":"Treated-area share (1 = the whole area); the CO₂e calculation multiplies quantity by it"},"diesel":{"type":"number","description":"Diesel use of this row","x-unit":"l/ha"},"electricity":{"nullable":true,"description":"Electricity use; null = not recorded","x-unit":"kWh/ha","type":"number"},"co2":{"nullable":true,"description":"Computed CO₂e emissions of this row per hectare (multiply by the area for a total)","x-unit":"kg CO₂e/ha","type":"number"},"cost":{"nullable":true,"description":"Total cost of this row per hectare (machine, labour and product costs)","x-unit":"currency/ha","type":"number"},"price":{"nullable":true,"description":"Product price stored on the row, in priceUnit","type":"number"},"priceUnit":{"nullable":true,"description":"Unit of price, e.g. euro_kg, euro_t, euro_ha","type":"string"},"productCost":{"nullable":true,"description":"price × quantity converted to the price unit","x-unit":"currency/ha","type":"number"},"hours":{"nullable":true,"description":"Working hours of this row","x-unit":"h/ha","type":"number"},"workedAreaInHa":{"nullable":true,"description":"Area the operation actually covered (e.g. one of several partial harvest passes from machine data); null = the whole cultivation. Totals use min(workedAreaInHa, cultivation area) instead of the full area.","x-unit":"ha","type":"number"},"isHarvestProduct":{"nullable":true,"type":"boolean"},"details":{"nullable":true,"description":"Either the CO₂e calculation steps of the row (array), or an object of documentation values written by the apps — e.g. note, plant-protection kennr/awgId/targetOrganism, windSpeed — or null.","anyOf":[{"type":"array","items":{"type":"object","properties":{"inputName":{"type":"string","description":"What the step starts from, e.g. the product quantity or diesel"},"inputValue":{"type":"number"},"inputUnit":{"type":"string"},"parameters":{"type":"array","items":{"type":"object","properties":{"relationInputParameter":{"type":"string","description":"\"x\" (multiply), \"+\" (add) or \"is.in.category\""},"parameterValue":{"type":"number"},"parameterName":{"type":"string"},"parameterUnit":{"type":"string"}},"required":["relationInputParameter","parameterValue","parameterName","parameterUnit"]},"description":"Factors applied to the input value"},"resultValue":{"type":"number"},"resultUnit":{"type":"string","description":"e.g. kg CO2e/ha"},"emissionSource":{"type":"string"},"note":{"type":"string"}},"required":["inputName","inputValue","inputUnit","parameters","resultValue","resultUnit","note"],"title":"Co2eCalculationStep"}},{"type":"object","additionalProperties":{}}]}},"required":["id","cultivationId","fieldId","crop","year","operationId","operationCategory","actionOrProduct","articleId","date","status","modifiedOrAdded","quantity","unit","frequency","diesel","electricity","co2","cost","price","priceUnit","productCost","hours","workedAreaInHa","isHarvestProduct","details"],"description":"One transaction row: a single action (machine pass) or product (input/output) line of an operation. Rows sharing an operationId form one operation event (e.g. FERTILIZING = spreader action + fertilizer product). quantity, diesel, hours, cost, productCost and co2 are per hectare: a field total is the value × the cultivation's areaInHa, or × workedAreaInHa when that is set.","example":{"id":"11111111-1111-1111-1111-111111111111","cultivationId":"22222222-2222-2222-2222-222222222222","fieldId":"33333333-3333-3333-3333-333333333333","crop":"winterWheat","year":2026,"operationId":"44444444-4444-4444-4444-444444444444","operationCategory":"FERTILIZING","actionOrProduct":"product","articleId":"MINERAL__CALCIUM_AMMONIUM_NITRATE","date":"2026-03-20T00:00:00.000Z","status":"DOCUMENTATION","modifiedOrAdded":null,"quantity":250,"unit":"kg_ha","frequency":1,"diesel":0,"electricity":null,"co2":812.4,"cost":96.25,"price":0.385,"priceUnit":"euro_kg","productCost":96.25,"hours":0,"workedAreaInHa":null,"isHarvestProduct":false,"details":null}},"ExportPreflightResult":{"type":"object","properties":{"isValid":{"type":"boolean"},"missingFields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["text","select","boolean"]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"]}},"defaultValue":{"anyOf":[{"type":"string"},{"type":"boolean"}]}},"required":["key","label","type"]}},"missingCropMappings":{"type":"array","items":{"type":"object","properties":{"cropName":{"type":"string"},"cultivationCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["cropName","cultivationCount"]}},"fieldDataWarnings":{"type":"array","items":{"type":"object","properties":{"fieldName":{"type":"string"},"issue":{"type":"string"},"value":{"type":"string"}},"required":["fieldName","issue","value"]}},"issues":{"description":"Validation findings keyed by a stable `code` (translated in the app as exportValidation.<code>); `blocking` issues prevent the export, `warning` and `info` are advisory.","type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"severity":{"type":"string","enum":["blocking","warning","info"]},"stage":{"type":"string","enum":["xsd","pflichtfelder","stammdaten","eingaberoutinen","plausibilitaet"]},"scope":{"type":"string","enum":["betrieb","field","cultivation","fertilization"]},"fieldId":{"type":"string"},"fieldName":{"type":"string"},"cultivationId":{"type":"string"},"value":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"required":["code","severity","stage","scope"]}},"warnings":{"description":"BESYD only","type":"array","items":{"type":"string"}},"skippedRows":{"description":"BESYD only","type":"array","items":{}}},"required":["isValid","missingFields","missingCropMappings"],"description":"Preflight of a federal export: missing org metadata (maintain it in the app under Settings → Export), unmapped crops and advisory field-data warnings (which do not block)."},"FederalExportFormatEnum":{"type":"string","enum":["enni","endo","st","besyd"],"description":"enni = Niedersachsen, endo = Schleswig-Holstein, st = Sachsen-Anhalt (Mitteilungspflicht, LLG), besyd = webBESyD import helper for BB/SN/ST/TH (no filing)"},"DbeOverridesSchema":{"type":"object","properties":{"yieldInT_perArea":{"description":"Expected yield (t/ha)","nullable":true,"type":"number","minimum":0},"nitrateSensitiveZone":{"description":"Red-area flag of the field (the 20 % cut needs the Land's rule in force)","type":"boolean"},"filmOrFleece":{"description":"Crop grown under film or fleece (+20 kg N/ha)","type":"boolean"},"nMin_perArea":{"description":"Nmin in spring (kg N/ha); together with nMinSpring_perArea re-derives nSupply_perArea","nullable":true,"type":"number"},"nMinSpring_perArea":{"description":"N mineralization during the season (kg N/ha)","nullable":true,"type":"number"},"nLeaching_perArea":{"description":"N leaching loss (kg N/ha); with nResidual_perArea re-derives nLoss_perArea","nullable":true,"type":"number"},"nResidual_perArea":{"description":"Target Nmin after harvest (kg N/ha)","nullable":true,"type":"number"},"nOrganicLastYear":{"description":"Organic N applied in the previous year (kg N/ha)","nullable":true,"type":"number"},"soilType":{"description":"LUFA soil type","nullable":true,"type":"string","enum":["S","lS","sU","ssL","lU","sL","uL","L","utL","tL","T"]},"humus":{"description":"Humus content (%)","nullable":true,"type":"number","minimum":0,"maximum":100},"prevCrop":{"description":"Previous main crop (SupportedCrops key)","nullable":true,"type":"string","enum":["silageMaize","winterWheat","canola","sugarBeet","winterBarleyFodder","springBarleyMalting","springOatsFodder","springWheatFodder","winterRyeBaking","fieldGrassWiltedSilage","permanentGrasslandWiltedSilage","potatoTableLate","peasDry","peasDryFodder","triticaleFodder","broadBeans","sunflower","grassSeed","hardWheat","grainMaize","soybeanBeans","cerealRyeIntercrop","mustardIntercrop","oilRadishIntercrop","persianCloverIntercrop","phaceliaIntercrop","ryeWholePlantSilage","lupine","spelt","landscapeFeature","nonProductiveArea","alfalfa","winterOats","springRye","springTriticale","springCanola","springDurum","winterBroadBeans","winterPeas","potatoStarch","seedPotato","potatoTableEarly","cornCobMix","maizeBiogas","sorghum","buckwheat","millet","lentils","chickpeas","linseed","hemp","poppy","fodderBeet","vetch","quinoa","emmer","einkorn","clover","cloverGrass","alfalfaGrass","intercropMixture","blackOatIntercrop","vetchIntercrop","crimsonCloverIntercrop","alexandrineCloverIntercrop","buckwheatIntercrop","sunflowerIntercrop","nigerIntercrop","sorghumIntercrop","linseedIntercrop","camelinaIntercrop","serradellaIntercrop","ryegrassUndersow","cloverGrassUndersow","onion","garlic","leek","carrot","whiteCabbage","redCabbage","savoyCabbage","cauliflower","broccoli","kale","kohlrabi","brusselsSprouts","chineseCabbage","lettuce","lambsLettuce","spinach","beetroot","celeriac","fennel","endive","bushBeans","sweetCorn","pumpkin","cucumber","tomato","bellPepper","asparagus","strawberry","hops","grapevine","rhubarb","pomeFruit","stoneFruit","rice","cowpeas","dryBeans","grainSorghum","foxtailMillet","pearlMillet","fallow","springCerealMixture","cerealLegumeMixture","legumeMixture","amaranth","otherCereals","otherLegumes","otherOilseeds","crambe","camelina","swede","fenugreek","birdsfootTrefoil","sainfoin","serradella","sweetClover","meadowOrchard","jerusalemArtichoke","sweetPotato","otherVegetables","brassicaVegetables","turnip","brownMustard","watercress","rucola","gardenCress","radish","grainMustard","eggplant","belladonna","melon","watermelon","alliumVegetables","orache","sorrel","parsnip","horseradish","scorzonera","artichoke","otherHerbs","dill","chervil","anise","caraway","cumin","blackCumin","coriander","lovage","parsley","basil","rosemary","sage","borage","oregano","savory","hyssop","verbena","lavender","thyme","lemonBalm","gentian","mint","artemisia","calendula","echinacea","ribwortPlantain","chamomile","yarrow","valerian","stJohnsWort","ladysMantle","milkThistle","goatsRue","dandelion","angelica","mallow","arnica","turfGrass","woad","canaryGrass","tobacco","safflower","nettle","madder","ornamentalPlants","phaceliaMainCrop","otherEnergyCrops","silphium","virginiaMallow","knotweed","switchgrass","miscanthus","szarvasiGrass","reedCanaryGrass","otherFruit","bushBerries","seaBuckthorn","hazelnut","walnut","otherNuts","treeNursery","shortRotationCoppice","poplarCoppice","willowCoppice","otherPermanentCrops","christmasTrees","mushrooms","greenManure","otherArableCrops","unknownCrop"]},"hasZwischenfrucht":{"description":"A catch crop preceded this cultivation","type":"boolean"},"zwischenfruchtCrop":{"description":"The catch crop (SupportedCrops key)","nullable":true,"type":"string","enum":["silageMaize","winterWheat","canola","sugarBeet","winterBarleyFodder","springBarleyMalting","springOatsFodder","springWheatFodder","winterRyeBaking","fieldGrassWiltedSilage","permanentGrasslandWiltedSilage","potatoTableLate","peasDry","peasDryFodder","triticaleFodder","broadBeans","sunflower","grassSeed","hardWheat","grainMaize","soybeanBeans","cerealRyeIntercrop","mustardIntercrop","oilRadishIntercrop","persianCloverIntercrop","phaceliaIntercrop","ryeWholePlantSilage","lupine","spelt","landscapeFeature","nonProductiveArea","alfalfa","winterOats","springRye","springTriticale","springCanola","springDurum","winterBroadBeans","winterPeas","potatoStarch","seedPotato","potatoTableEarly","cornCobMix","maizeBiogas","sorghum","buckwheat","millet","lentils","chickpeas","linseed","hemp","poppy","fodderBeet","vetch","quinoa","emmer","einkorn","clover","cloverGrass","alfalfaGrass","intercropMixture","blackOatIntercrop","vetchIntercrop","crimsonCloverIntercrop","alexandrineCloverIntercrop","buckwheatIntercrop","sunflowerIntercrop","nigerIntercrop","sorghumIntercrop","linseedIntercrop","camelinaIntercrop","serradellaIntercrop","ryegrassUndersow","cloverGrassUndersow","onion","garlic","leek","carrot","whiteCabbage","redCabbage","savoyCabbage","cauliflower","broccoli","kale","kohlrabi","brusselsSprouts","chineseCabbage","lettuce","lambsLettuce","spinach","beetroot","celeriac","fennel","endive","bushBeans","sweetCorn","pumpkin","cucumber","tomato","bellPepper","asparagus","strawberry","hops","grapevine","rhubarb","pomeFruit","stoneFruit","rice","cowpeas","dryBeans","grainSorghum","foxtailMillet","pearlMillet","fallow","springCerealMixture","cerealLegumeMixture","legumeMixture","amaranth","otherCereals","otherLegumes","otherOilseeds","crambe","camelina","swede","fenugreek","birdsfootTrefoil","sainfoin","serradella","sweetClover","meadowOrchard","jerusalemArtichoke","sweetPotato","otherVegetables","brassicaVegetables","turnip","brownMustard","watercress","rucola","gardenCress","radish","grainMustard","eggplant","belladonna","melon","watermelon","alliumVegetables","orache","sorrel","parsnip","horseradish","scorzonera","artichoke","otherHerbs","dill","chervil","anise","caraway","cumin","blackCumin","coriander","lovage","parsley","basil","rosemary","sage","borage","oregano","savory","hyssop","verbena","lavender","thyme","lemonBalm","gentian","mint","artemisia","calendula","echinacea","ribwortPlantain","chamomile","yarrow","valerian","stJohnsWort","ladysMantle","milkThistle","goatsRue","dandelion","angelica","mallow","arnica","turfGrass","woad","canaryGrass","tobacco","safflower","nettle","madder","ornamentalPlants","phaceliaMainCrop","otherEnergyCrops","silphium","virginiaMallow","knotweed","switchgrass","miscanthus","szarvasiGrass","reedCanaryGrass","otherFruit","bushBerries","seaBuckthorn","hazelnut","walnut","otherNuts","treeNursery","shortRotationCoppice","poplarCoppice","willowCoppice","otherPermanentCrops","christmasTrees","mushrooms","greenManure","otherArableCrops","unknownCrop"]}},"additionalProperties":false,"description":"Overrides applied on top of the stored inputs before the DüV calculation"},"DbeInput":{"type":"object","properties":{"crop":{"type":"string"},"yieldInT_perArea":{"nullable":true,"type":"number"},"soilType":{"nullable":true,"type":"string"},"humus":{"nullable":true,"type":"number"},"nMinLaw_perArea":{"nullable":true,"description":"Statutory Nmin (kg N/ha): entry, measured sample, planning value or the Land's Richtwert","type":"number"},"nMinLawSource":{"nullable":true,"type":"string","enum":["input","measured","planned","state"]},"nSupply_perArea":{"nullable":true,"type":"number"},"nMin_perArea":{"nullable":true,"type":"number"},"nMinSpring_perArea":{"nullable":true,"type":"number"},"prevCrop":{"nullable":true,"type":"string"},"hasZwischenfrucht":{"type":"boolean"},"zwischenfruchtCrop":{"nullable":true,"type":"string"},"nOrganicLastYear":{"nullable":true,"type":"number"},"nOrganicLastYearDeduction":{"nullable":true,"type":"number"},"nitrateSensitiveZone":{"type":"boolean"},"filmOrFleece":{"type":"boolean"}},"required":["crop","yieldInT_perArea","soilType","humus","nMinLaw_perArea","nMinLawSource","nSupply_perArea","nMin_perArea","nMinSpring_perArea","prevCrop","hasZwischenfrucht","zwischenfruchtCrop","nOrganicLastYear","nOrganicLastYearDeduction","nitrateSensitiveZone","filmOrFleece"],"description":"The effective calculation inputs after soil override and caller overrides"},"DbeResult":{"type":"object","properties":{"nRequirementValue":{"type":"number","description":"DüV N requirement at reference yield (kg N/ha)"},"referenceYield":{"type":"number","description":"DüV reference yield (dt/ha)"},"farmYield":{"type":"number","description":"Farm yield used (dt/ha; dry matter for grassland)"},"farmYieldDtFM":{"description":"Farm yield as fresh matter (dt/ha); absent without a farm yield","type":"number"},"yieldSource":{"description":"reference: no farm yield, the DüV reference yield is the basis","type":"string","enum":["farm","reference"]},"grasslandTmFactor":{"nullable":true,"type":"number"},"yieldDifference":{"type":"number"},"yieldSurcharge":{"type":"number","description":"Yield correction (kg N/ha, negative = deduction)"},"nmin":{"type":"number","description":"Statutory Nmin deducted (kg N/ha, § 4 Abs. 4 DüV); 0 when none is known"},"nminSource":{"description":"missing: no Nmin could be determined and nothing was deducted; notApplicable: grassland","type":"string","enum":["supplied","missing","notApplicable"]},"upperBoundWithoutNmin":{"description":"true: without a Nmin, nFertilizerNeed is an upper bound before the Nmin deduction, not an N requirement","type":"boolean"},"humusDeduction":{"type":"number"},"orgPreviousYearDeduction":{"type":"number"},"previousCropDeduction":{"type":"number"},"catchCropDeduction":{"type":"number"},"foilSurcharge":{"type":"number"},"nFertilizerNeed":{"type":"number","description":"N fertilizer need before the nitrate-zone reduction (kg N/ha)"},"nitrateZoneReduction":{"type":"number","description":"20 % red-area cut applied (kg N/ha); 0 unless the field is flagged and the Land's rule is in force for the year or the farm confirmed it"},"nitrateZoneReductionIfInForce":{"description":"The 20 % cut as a planning value while the Land's rule is suspended or not determinable (kg N/ha); not applied","type":"number"},"redAreaNotDeterminable":{"description":"The field is flagged, but the legal status of the red-area rule is not determinable for its Land and year","type":"boolean"},"nFertilizerNeedFinal":{"type":"number","description":"Final N fertilizer need (kg N/ha)"},"isGrassland":{"type":"boolean"}},"required":["nRequirementValue","referenceYield","farmYield","grasslandTmFactor","yieldDifference","yieldSurcharge","nmin","humusDeduction","orgPreviousYearDeduction","previousCropDeduction","catchCropDeduction","foilSurcharge","nFertilizerNeed","nitrateZoneReduction","nFertilizerNeedFinal","isGrassland"],"description":"Düngebedarfsermittlung result per DüV Anlage 4 (all N values in kg N/ha)"},"DbeRedAreaBasis":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"flagged":{"type":"boolean","description":"The field carries the red-area flag"},"federalState":{"nullable":true,"description":"The Land of the field","type":"string"},"federalStateSource":{"nullable":true,"type":"string","enum":["override","flik","region"]},"status":{"type":"string","enum":["enforced","suspended","withdrawn","unknown"],"description":"Status of the red-area rule the DBE used; only enforced applies the 20 % cut to a flagged field"},"ruleSet":{"type":"string"},"sourceUrl":{"type":"string"},"retrievedAt":{"type":"string"},"confirmation":{"description":"The farm's own statement that decided the status, where the rule table cannot determine it; no legal assessment by agmeo","type":"object","properties":{"federalState":{"type":"string"},"reductionApplies":{"type":"boolean"},"confirmedByName":{"type":"string"},"confirmedAt":{"type":"string"}},"required":["federalState","reductionApplies","confirmedByName","confirmedAt"]}},"required":["year","flagged","federalState","federalStateSource","status","ruleSet","sourceUrl","retrievedAt"],"description":"Legal basis of the red-area rule (§ 13a Abs. 2 DüV) for the field's Land and Düngejahr"},"DbeSnapshotItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"snapshotAt":{"type":"string"},"userId":{"nullable":true,"type":"string"},"result":{"$ref":"#/components/schemas/DbeResult"},"redAreaBasis":{"description":"Stored with the snapshot; absent on snapshots written before it existed","nullable":true,"allOf":[{"$ref":"#/components/schemas/DbeRedAreaBasis"}]},"inputs":{"description":"Only with include=inputs","type":"object","additionalProperties":{}}},"required":["id","cultivationId","snapshotAt","userId","result"],"description":"Newest DBE snapshot of a cultivation"},"FertilizationStrategy":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"splitPercentages":{"type":"array","items":{"type":"number"},"description":"Share of the N need per application (%)"},"productFqns":{"nullable":true,"description":"Article fqn per application","type":"array","items":{"nullable":true,"type":"string"}},"isDefault":{"type":"boolean","description":"Platform default (not owned by the organization)"}},"required":["id","name","description","splitPercentages","productFqns","isDefault"],"description":"A fertilization split strategy"},"MarketCommodityEnum":{"type":"string","enum":["WHEAT_BREAD","WHEAT_FEED","WHEAT_DURUM","BARLEY_FEED","BARLEY_MALTING","RYE_BREAD","MAIZE_GRAIN","OATS_FEED","TRITICALE","RAPESEED","SUNFLOWER","SOYBEAN","PEAS_FEED","SUGAR_BEET","POTATO_TABLE","POTATO_STARCH"],"description":"Internal commodity key joining feed quotes to harvest articles"},"MarketPriceItem":{"type":"object","properties":{"commodity":{"$ref":"#/components/schemas/MarketCommodityEnum"},"country":{"type":"string","description":"ISO 3166-1 alpha-2"},"price":{"type":"number","description":"Reference price"},"priceUnit":{"type":"string","description":"Always euro_t"},"quoteDate":{"type":"string","description":"Week the quote refers to (ISO yyyy-mm-dd)"},"source":{"type":"string","enum":["eu_agrifood","anthropic_search"]},"sourceUrl":{"nullable":true,"type":"string"}},"required":["commodity","country","price","priceUnit","quoteDate","source","sourceUrl"],"description":"Newest stored quote of a commodity in a country","example":{"commodity":"WHEAT_BREAD","country":"DE","price":214.5,"priceUnit":"euro_t","quoteDate":"2026-08-28","source":"eu_agrifood","sourceUrl":"https://agridata.ec.europa.eu/"}},"CaptureAnnotationResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"fieldId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cultivationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["note","photo","voice","receipt"]},"category":{"nullable":true,"type":"string"},"text":{"type":"string"},"gpsLat":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"gpsLon":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"gpsAccuracy":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"capturedAt":{"type":"string"},"photoKeys":{"type":"array","items":{"type":"string"}},"details":{"nullable":true},"createdBy":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"deletedAt":{"nullable":true,"type":"string"},"deleted":{"description":"Present on delta-sync tombstones","type":"boolean","enum":[true]}},"required":["id","orgId","fieldId","cultivationId","kind","category","text","gpsLat","gpsLon","gpsAccuracy","capturedAt","photoKeys","details","createdBy","createdAt","updatedAt","deletedAt"],"title":"CaptureAnnotationResponse","description":"A mobile capture item: note, photo set, voice memo or receipt scan."},"LiveLocationPoint":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Client-generated idempotency key"},"lat":{"type":"number","minimum":-90,"maximum":90},"lon":{"type":"number","minimum":-180,"maximum":180},"timestamp":{"description":"Client capture time of the GPS fix","type":"string"},"speedKmh":{"nullable":true,"type":"number","minimum":0},"heading":{"nullable":true,"type":"number","minimum":0,"maximum":360},"accuracy":{"description":"Horizontal accuracy in meters","nullable":true,"type":"number","minimum":0},"machineId":{"description":"Machine the driver selected; null/absent = not on a machine","nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"}},"required":["id","lat","lon","timestamp"],"title":"LiveLocationPoint","description":"One driver GPS fix from the agmeo-field app."},"SavedLocationResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"name":{"type":"string"},"categoryId":{"nullable":true,"type":"string"},"categoryName":{"nullable":true,"type":"string"},"categoryColor":{"nullable":true,"type":"string"},"lat":{"type":"number","minimum":-140737488355328,"maximum":140737488355327},"lon":{"type":"number","minimum":-140737488355328,"maximum":140737488355327},"createdBy":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string","description":"Delta-sync cursor for ?since="},"deletedAt":{"nullable":true,"type":"string"},"deleted":{"description":"Present on delta-sync tombstones","type":"boolean","enum":[true]}},"required":["id","orgId","name","categoryId","categoryName","categoryColor","lat","lon","createdBy","createdAt","updatedAt","deletedAt"],"title":"SavedLocationResponse","description":"A map bookmark saved in the agmeo-field app, with its denormalized category snapshot."},"OperationDraft":{"type":"object","properties":{"kind":{"type":"string","enum":["operation","observation","note"],"description":"operation = an action performed (spraying, fertilizing, sowing, tillage, harvest, irrigation); observation = a field observation; note = anything else worth recording"},"fieldName":{"nullable":true,"description":"Field/Schlag name exactly as spoken","type":"string"},"category":{"nullable":true,"type":"string","enum":["plantProtection","fertilization","sowing","tillage","harvest","irrigation","other"]},"articleName":{"nullable":true,"description":"Product/article as spoken, not catalog-normalized","type":"string"},"quantity":{"nullable":true,"description":"Application rate (or harvest yield) per hectare in `unit` — always metric","type":"number"},"unit":{"nullable":true,"description":"Canonical transaction unit id (l_ha, kg_ha, t_ha, pieces_ha; cbm_ha = irrigation water, 1 mm = 10 m³/ha). Drafts written before 2026-10-28 carry the spike spellings l/ha, kg/ha, t/ha, stk/ha (stk/ha = pieces_ha).","type":"string","enum":["l_ha","kg_ha","t_ha","pieces_ha","cbm_ha","l/ha","kg/ha","t/ha","stk/ha"]},"bbch":{"nullable":true,"type":"integer","minimum":0,"maximum":99},"partialArea":{"type":"boolean","description":"true only for an explicit partial-area reference"},"partialAreaHa":{"nullable":true,"description":"Partial area in ha (acres converted server-side)","type":"number"},"windMs":{"nullable":true,"description":"Wind speed in m/s (mph, km/h converted server-side)","type":"number"},"tempC":{"nullable":true,"description":"Air temperature in °C (°F converted server-side)","type":"number"},"date":{"nullable":true,"description":"'heute', 'gestern', or an ISO date (YYYY-MM-DD) — resolve relative dates on-device","type":"string"},"operatorHint":{"nullable":true,"type":"string"},"freeText":{"type":"string","description":"Everything relevant the structured fields do not capture"},"missing":{"type":"array","items":{"type":"string"},"description":"Draft field names the farmer must still confirm — render as quick-pickers"},"confidence":{"type":"string","enum":["high","medium","low"],"description":"high => 1-tap confirm; medium => confirm + fill missing; low => show transcript, full review"},"spokenQuantity":{"description":"The rate as dictated (e.g. 32 'fl oz/ac') when it was not said in the stored unit. With quantity null it could not be converted (bu/ac without a spoken crop or a crop on the memo's field, a depth outside irrigation): convert it on the device once the crop is known, or ask.","type":"object","properties":{"value":{"type":"number"},"unit":{"type":"string"}},"required":["value","unit"]}},"required":["kind","fieldName","category","articleName","quantity","unit","bbch","partialArea","partialAreaHa","windMs","tempC","date","operatorHint","freeText","missing","confidence"],"title":"OperationDraft","description":"Structured draft extracted from a farmer's voice dictation. All 16 keys are always present; unknown values are null; values are canonical metric whatever unit was dictated. Gate the confirm UX on missing[] and confidence."},"VoiceDraftResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"orgId":{"type":"string"},"annotationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"The voice CaptureAnnotation this draft belongs to"},"status":{"type":"string","enum":["pending","transcribing","draft","confirmed","rejected","failed"]},"transcript":{"nullable":true,"description":"Raw STT transcript of the voice memo","type":"string"},"draft":{"nullable":true,"description":"Set once status is draft/confirmed/rejected","allOf":[{"$ref":"#/components/schemas/OperationDraft"}]},"missing":{"nullable":true,"type":"array","items":{"type":"string"}},"confidence":{"nullable":true,"type":"string","enum":["high","medium","low"]},"error":{"nullable":true,"description":"Failure reason when status is failed","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","orgId","annotationId","status","transcript","draft","missing","confidence","error","createdAt","updatedAt"],"title":"VoiceDraftResponse","description":"One voice memo's trip through the transcription pipeline: transcript, extracted OperationDraft and confirm/reject state. Produced by the server-side worker after the audio upload finished."},"TargetTerminalTypeEnum":{"type":"string"},"CropResponse":{"type":"object","properties":{"name":{"type":"string"},"sowingCatagory":{"$ref":"#/components/schemas/SowingCategoryEnum"},"harvestCatagory":{"$ref":"#/components/schemas/HarvestCategoryEnum"},"isSecondary":{"type":"boolean"}},"required":["name","sowingCatagory","harvestCatagory","isSecondary"],"description":"A crop definition","example":{"name":"winterWheat","sowingCatagory":"SMALL_GRAINS","harvestCatagory":"HARVEST_GRAIN","isSecondary":false}},"CropVarietyResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"crop":{"type":"string"},"name":{"type":"string"},"type":{"nullable":true,"type":"string"}},"required":["id","crop","name"],"description":"A crop variety","example":{"id":"123e4567-e89b-12d3-a456-426614174000","crop":"winterWheat","name":"Absint","type":"A"}},"CultivationGroupResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"ownerId":{"type":"string"},"name":{"type":"string"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"crop":{"type":"string"},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"isSecondaryOf":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"secondaryCropType":{"nullable":true,"type":"string","enum":["INTERCROP","UNDERSOW"]}},"required":["id","ownerId","name","year","crop","templateId"],"description":"A cultivation group representing a crop year for a set of fields","example":{"id":"123e4567-e89b-12d3-a456-426614174000","ownerId":"org_abc123","name":"Winter Wheat 2025","year":2025,"crop":"winterWheat","templateId":"456e7890-e89b-12d3-a456-426614174000","isSecondaryOf":null,"secondaryCropType":null}},"CultivationResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"cultivationGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"geometry":{"nullable":true,"description":"Boundary of the cultivation as a bare GeoJSON geometry; null without a boundary","anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"]},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"]}]},"mgrs":{"type":"array","items":{"type":"string"}},"utmZone":{"type":"array","items":{"type":"string"}},"areaInHa":{"type":"number","x-unit":"ha"},"derivedFromFieldId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"variety":{"description":"Catalogue UUID of the variety (CropVarieties id, see GET /crop-varieties) — not its name, which GET /fields returns","nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"usage":{"type":"string","enum":["COMMERCIAL","SEED_MULTIPLICATION"],"description":"COMMERCIAL (market production) or SEED_MULTIPLICATION (certified seed production)"},"seedLot":{"nullable":true,"description":"Seed lot of a seed multiplication, null otherwise","type":"string"},"multiplicationGeneration":{"nullable":true,"description":"Multiplication generation of a seed multiplication, null otherwise","type":"string"},"crop":{"description":"Denormalized from the cultivation group","type":"string"},"year":{"description":"Denormalized from the cultivation group","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","cultivationGroupId","geometry","mgrs","utmZone","areaInHa","usage","seedLot","multiplicationGeneration"],"description":"A cultivation representing a field instance in a specific cultivation group"},"SowingCategoryEnum":{"type":"string","enum":["ROOT_ARABLE","ROW_CROPS","SMALL_GRAINS","ROOT_ARABLES"]},"HarvestCategoryEnum":{"type":"string","enum":["HARVEST_GRAIN","HARVEST_WHOLE","ROOT_ARABLES"]},"TechnologyResponse":{"type":"object","properties":{"fqn":{"type":"string"},"cropId":{"type":"string"}},"required":["fqn","cropId"],"description":"A technology representing a management approach for a crop"},"TemplateResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"ownerId":{"type":"string"},"name":{"type":"string"},"crop":{"type":"string"},"technology":{"type":"string"}},"required":["id","ownerId","name","crop","technology"],"description":"A management template for cultivations"},"TemplateTransactionResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"operationCategory":{"type":"string"},"modifiedOrAdded":{"nullable":true,"type":"string","enum":["MODIFIED","ADDED"]},"date":{"type":"string"},"frequency":{"type":"number"},"articleId":{"type":"string"},"actionOrProduct":{"type":"string","enum":["ACTION","PRODUCT"]},"details":{"nullable":true},"diesel":{"type":"number"},"electricity":{"nullable":true,"type":"number"},"quantity":{"type":"number"},"unit":{"type":"string"},"co2":{"nullable":true,"type":"number"},"services":{"nullable":true,"type":"number"},"hours":{"nullable":true,"type":"number"},"materials":{"nullable":true,"type":"number"},"repairs":{"nullable":true,"type":"number"}},"required":["id","templateId","operationId","operationCategory","date","frequency","articleId","actionOrProduct","diesel","quantity","unit"],"description":"A template transaction representing an operation in a template"},"CropRotationResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"name":{"type":"string"},"ownerId":{"type":"string"},"createdAt":{"type":"string"},"entries":{"type":"array","items":{"$ref":"#/components/schemas/CropRotationEntryResponse"}}},"required":["id","name","ownerId","createdAt"],"description":"A crop rotation with its entries"},"CropRotationEntryResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"cropRotationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"crop":{"type":"string"},"templateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"yieldExpectationInTpHa":{"nullable":true,"type":"number"},"cropResidueLeft":{"type":"boolean"},"secondaryCrop":{"nullable":true,"type":"string"},"secondaryCropTemplateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"secondaryCropHarvested":{"nullable":true,"type":"boolean"}},"required":["id","cropRotationId","sortOrder","crop","templateId","cropResidueLeft"],"description":"A crop rotation entry representing a crop in the rotation sequence"},"ArticleActionOrProductEnum":{"type":"string","enum":["action","product"]},"AppliesToEnum":{"type":"string","enum":["ALL","ARABLES","ROOT_ARABLES","HARVEST_GRAIN","ROW_CROPS","HARVEST_WHOLE","SMALL_GRAINS","GRASSLAND","CROP_SPECIFIC","VEGETABLES"]},"ArticleResponse":{"type":"object","properties":{"fqn":{"type":"string"},"name":{"nullable":true,"type":"string"},"actionOrProduct":{"$ref":"#/components/schemas/ArticleActionOrProductEnum"},"operationCategory":{"type":"string"},"actionCategory":{"type":"string"},"machineId":{"nullable":true,"type":"string"},"appliesTo":{"$ref":"#/components/schemas/AppliesToEnum"},"price":{"description":"Default price in `currency` per `priceUnit`. A system article's EUR catalogue price is converted for a European organization (ECB reference rates, rounded to 3 significant digits) and null for any other or when no rate is known — the farmer enters their own. An organization article's price is returned as entered.","nullable":true,"type":"number"},"priceUnit":{"description":"Price unit id (e.g. euro_t = organization currency per tonne), see GET /api/units/price.","nullable":true,"type":"string"},"currency":{"type":"string","description":"ISO-4217 currency of `price`: the organization's effective currency (see /settings/display)."},"dryMatterContent":{"nullable":true,"type":"number"},"humus":{"nullable":true,"type":"number"},"convTtoCbm":{"nullable":true,"type":"number"},"nEffectiveness":{"nullable":true,"type":"number"},"n":{"nullable":true,"type":"number"},"nh4":{"nullable":true,"type":"number"},"p2o5":{"nullable":true,"type":"number"},"k":{"nullable":true,"type":"number"},"k2o":{"nullable":true,"type":"number"},"mgo":{"nullable":true,"type":"number"},"limeEffectPer100Kg":{"nullable":true,"type":"number"},"kgNper100L":{"nullable":true,"type":"number"},"category":{"nullable":true,"type":"string"},"isHarvestProduct":{"type":"boolean"},"isSystemArticle":{"type":"boolean"}},"required":["fqn","actionOrProduct","operationCategory","actionCategory","appliesTo","currency","isHarvestProduct","isSystemArticle"],"description":"An article representing a product or action used in field operations"},"ArticleMetadataResponse":{"type":"object","properties":{"uuid":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"articleId":{"type":"string"},"manufacturer":{"nullable":true,"type":"string"},"website":{"nullable":true,"type":"string"},"fileKey":{"nullable":true,"type":"string"},"metadata":{"nullable":true},"createdAt":{"type":"string"},"createdBy":{"type":"string"}},"required":["uuid","articleId","createdAt","createdBy"],"description":"Metadata associated with an article"},"CreateArticleMetadataRequest":{"type":"object","properties":{"manufacturer":{"type":"string"},"website":{"type":"string"},"fileKey":{"type":"string"},"metadata":{}},"description":"Request body for creating article metadata"},"WarehouseDirectionEnum":{"type":"string","enum":["IN","OUT","OPERATION"],"description":"Booking direction: IN = goods receipt (Wareneingang), OUT = manual issue/correction, OPERATION = consumption booked from a field operation"},"WarehouseStockEntryResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"articleId":{"type":"string","description":"Stable product key resolved from the polymorphic reference: Article fqn (e.g. FERTILIZER.KAS), PSM kennr, or CropVariety uuid. Group/aggregate by this key."},"articleName":{"type":"string","description":"Display-ready product name resolved server-side (Article customName, PSM mittelname, or variety name; falls back to the key)."},"direction":{"$ref":"#/components/schemas/WarehouseDirectionEnum"},"quantity":{"type":"number"},"unit":{"type":"string"},"bookedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Booking timestamp (ISO datetime)"},"pricePerUnitNet":{"nullable":true,"type":"number"},"supplier":{"nullable":true,"type":"string"},"invoiceNumber":{"nullable":true,"type":"string"},"storageLocation":{"nullable":true,"type":"string"},"expiryDate":{"nullable":true,"description":"YYYY-MM-DD, null when the article does not expire","type":"string"}},"required":["id","articleId","articleName","direction","quantity","unit","bookedAt","pricePerUnitNet","supplier","invoiceNumber","storageLocation","expiryDate"],"description":"One warehouse stock booking (non-voided). Stock balance per article = Σ IN − OUT − OPERATION."},"OrgArticlePriceResponse":{"type":"object","properties":{"articleId":{"type":"string"},"year":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"price":{"type":"number","minimum":-140737488355328,"maximum":140737488355327},"priceUnit":{"type":"string"}},"required":["articleId","year","price","priceUnit"],"description":"A per-organization price override for an article (by fqn) in a given harvest year"},"QuantityUnitCategoryEnum":{"type":"string","enum":["MASS_DENSITY","VOLUME_DENSITY","PLANTS_DENSITY","PIECES_DENSITY","PERCENT"]},"QuantityUnitResponse":{"type":"object","properties":{"name":{"type":"string"},"category":{"$ref":"#/components/schemas/QuantityUnitCategoryEnum"},"description":{"nullable":true,"type":"string"}},"required":["name","category"],"description":"A quantity unit used for measuring amounts"},"PriceUnitCategoryEnum":{"type":"string","enum":["CURRENCY_PER_MASS","CURRENCY_PER_AREA","CURRENCY_PER_VOLUME","CURRENCY_PER_PIECES"]},"PriceUnitResponse":{"type":"object","properties":{"name":{"type":"string"},"category":{"$ref":"#/components/schemas/PriceUnitCategoryEnum"},"description":{"nullable":true,"type":"string"}},"required":["name","category"],"description":"A price unit used for monetary values"},"UnitConversionResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"quantityUnit":{"nullable":true,"type":"string"},"priceUnit":{"nullable":true,"type":"string"},"factor":{"type":"number"}},"required":["id","factor"],"description":"A conversion factor between quantity and price units"},"FileResponse":{"type":"object","properties":{"fileKey":{"type":"string"},"organizationId":{"type":"string"},"name":{"type":"string"},"year":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":{"nullable":true,"type":"string"},"mimeType":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"creationTime":{"type":"string"}},"required":["fileKey","organizationId","name","mimeType","size","creationTime"],"description":"A user-uploaded file"},"FileFolderResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"name":{"type":"string"},"parentId":{"nullable":true,"description":"null = top level","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"systemKey":{"nullable":true,"description":"Set for app-managed folders, null for user folders. applicationMaps, exports, imports and reports are the ones GET /files?systemFolder= filters by; others (chat, chatMaps, chatReports, knowledge, projects, soil, soilImports, soilExports) belong to single features","type":"string"},"creationTime":{"type":"string"}},"required":["id","name","parentId","systemKey","creationTime"],"description":"A folder of the org's file storage"},"ImportJobStatusEnum":{"type":"string","enum":["staging","planned","committing","committed","failed","abandoned"],"description":"Job state machine: staging → planned → committing → committed | failed; abandoned via DELETE"},"ImportStagedCounts":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"Staged record counts per contract entity array (fieldGroups, fields, cultivations, operations, statusTransitions, soilValues, soilZones)"},"ImportJobListItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"title":{"nullable":true,"type":"string"},"source":{"type":"string"},"status":{"$ref":"#/components/schemas/ImportJobStatusEnum"},"summary":{"nullable":true,"description":"Per-action counts after commit, e.g. {\"field:create\": 12, \"operation:update\": 3}; null until committed","type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"requestId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"createdAt":{"type":"string"},"committedAt":{"nullable":true,"type":"string"}},"required":["id","title","source","status","summary","requestId","createdAt","committedAt"],"description":"One import job in the journal listing"},"ImportEntityEnum":{"type":"string","enum":["fieldGroup","field","cultivation","operation","statusTransition","soilValues","soilZone"]},"ImportRecordActionEnum":{"type":"string","enum":["create","update","status-change","skip","conflict","invalid"],"description":"What plan decided for a staged record; only create/update/status-change are applied on commit"},"ImportPlanRecord":{"type":"object","properties":{"entity":{"$ref":"#/components/schemas/ImportEntityEnum"},"stagedIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Index into the staged entity array — stable across plan/commit"},"action":{"$ref":"#/components/schemas/ImportRecordActionEnum"},"matchedBy":{"description":"Which pass matched: \"externalRef\" | \"matchHint\" | \"name+parcelId\" | \"name+flik\" | \"name\" | …","nullable":true,"type":"string"},"targetId":{"description":"Existing entity the record matched (update/status-change/skip)","nullable":true,"type":"string"},"externalRef":{"nullable":true,"type":"string"},"sourceRef":{"description":"Caller provenance, e.g. \"Bewässerung2025.xlsx!B14\"","nullable":true,"type":"string"},"changes":{"nullable":true,"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"old":{},"new":{}},"required":["field","old","new"]}},"warnings":{"nullable":true,"type":"array","items":{"type":"string"}},"reason":{"description":"Why the record is a conflict/invalid/skip","nullable":true,"type":"string"},"operationId":{"description":"Operations only: the existing operation a created row joins — its operationRef group partly exists already","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"}},"required":["entity","stagedIndex","action"],"description":"One row of the dry-run diff"},"ImportJobRecord":{"type":"object","properties":{"entity":{"$ref":"#/components/schemas/ImportEntityEnum"},"stagedIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Index into the staged entity array — stable across plan/commit"},"action":{"$ref":"#/components/schemas/ImportRecordActionEnum"},"matchedBy":{"description":"Which pass matched: \"externalRef\" | \"matchHint\" | \"name+parcelId\" | \"name+flik\" | \"name\" | …","nullable":true,"type":"string"},"targetId":{"description":"Existing entity the record matched (update/status-change/skip)","nullable":true,"type":"string"},"externalRef":{"nullable":true,"type":"string"},"sourceRef":{"description":"Caller provenance, e.g. \"Bewässerung2025.xlsx!B14\"","nullable":true,"type":"string"},"changes":{"nullable":true,"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"old":{},"new":{}},"required":["field","old","new"]}},"warnings":{"nullable":true,"type":"array","items":{"type":"string"}},"reason":{"description":"Why the record is a conflict/invalid/skip","nullable":true,"type":"string"},"outcome":{"nullable":true,"description":"Filled during commit; null until commit ran","type":"string","enum":["applied","failed","skipped"]},"outcomeError":{"nullable":true,"type":"string"}},"required":["entity","stagedIndex","action","outcome","outcomeError"],"description":"Journal row of the latest plan, with its commit outcome"},"ImportChunkSource":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"1-based order of the staging call"},"kind":{"type":"string","enum":["inline","file","url"]},"fileKey":{"type":"string"},"url":{"description":"origin + path; the query (signature) is never stored","type":"string"},"name":{"type":"string"},"sha256":{"type":"string","description":"file / url: hash of the bytes (idempotency key); inline: hash of the staged records"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"format":{"type":"string","enum":["json","ndjson"]},"added":{"$ref":"#/components/schemas/ImportStagedCounts"},"chunks":{"type":"array","items":{"type":"object","properties":{"sha256":{"type":"string","description":"Hash of this chunk's records; a re-sent chunk is skipped"},"records":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lines":{"description":"First and last NDJSON line of the chunk's records","type":"array","items":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}]},"minItems":2,"maxItems":2}},"required":["sha256","records"]}},"stagedAt":{"type":"string"},"stagedByUserId":{"nullable":true,"type":"string"}},"required":["seq","kind","sha256","added","chunks","stagedAt","stagedByUserId"],"description":"Staging journal entry: where one POST …/chunks call's records came from"},"ImportRequestStatusEnum":{"type":"string","enum":["requested","in_progress","done","failed","cancelled"],"description":"requested → in_progress → done | failed | cancelled (terminal states are final)"},"ImportRequestFile":{"type":"object","properties":{"fileKey":{"type":"string"},"name":{"type":"string"},"sizeKb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mimeType":{"type":"string"},"path":{"type":"string","description":"Path relative to the Imports folder (\"\" for direct children)"}},"required":["fileKey","name","sizeKb","mimeType","path"],"description":"A file in the org's Imports folder"},"ImportRequestLiveFile":{"type":"object","properties":{"fileKey":{"type":"string"},"name":{"type":"string"},"sizeKb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mimeType":{"type":"string"},"path":{"type":"string","description":"Path relative to the Imports folder (\"\" for direct children)"},"downloadUrl":{"type":"string","format":"uri","description":"Presigned GET URL — plain HTTP download, no Clerk session needed"},"downloadExpiresInSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["fileKey","name","sizeKb","mimeType","path","downloadUrl","downloadExpiresInSeconds"],"description":"Current Imports-folder file with a short-lived download URL"},"ImportLearningKindEnum":{"type":"string","enum":["missing-entity","missing-field","missing-trigger","manual-db","parse","auth","other"]},"ImportLearning":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/ImportLearningKindEnum"},"entity":{"description":"Contract entity or table the gap concerns, e.g. \"fieldGroups\", \"machines\"","type":"string","maxLength":100},"description":{"type":"string","minLength":1,"maxLength":2000},"sourceRef":{"type":"string","maxLength":500}},"required":["kind","description"],"description":"Something fulfilment hit that the product does not cover yet — roadmap input for the import contract"},"ImportResultSummary":{"type":"object","properties":{"created":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":9007199254740991}},"updated":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":9007199254740991}},"skipped":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":9007199254740991}},"notImported":{"type":"array","items":{"type":"object","properties":{"item":{"type":"string","maxLength":300},"reason":{"type":"string","maxLength":1000}},"required":["item","reason"]},"description":"Source items deliberately not imported, with a customer-facing reason"},"note":{"description":"Free text for the requester, in the requester's language when possible","type":"string","maxLength":4000}},"required":["created","updated","skipped","notImported"],"description":"Outcome shown to the requester (e-mail + in-app dialog); counts are per entity kind"},"ImportRequestResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"orgId":{"type":"string"},"status":{"$ref":"#/components/schemas/ImportRequestStatusEnum"},"requestedBy":{"type":"object","properties":{"userId":{"type":"string"},"email":{"nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"}},"required":["userId","email","name"]},"locale":{"nullable":true,"description":"Requester's UI language at request time (drives the result e-mail)","type":"string"},"host":{"nullable":true,"type":"string"},"env":{"type":"string","enum":["prod","staging"],"description":"Deployment the request was filed on (derived from host): prod = agmeo.com / bat-agrar.de, staging = beta-testing and everything else. Fulfil against the matching API (and database) only."},"notes":{"nullable":true,"type":"string"},"files":{"type":"array","items":{"$ref":"#/components/schemas/ImportRequestFile"},"description":"Imports-folder snapshot at request time"},"connectors":{"type":"array","items":{"type":"string"},"description":"Provider ids of OAuth/credential connections the org had at request time"},"assigneeEmail":{"nullable":true,"type":"string"},"assigneeNote":{"nullable":true,"type":"string"},"importJobIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"}},"resultSummary":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/ImportResultSummary"}]},"learnings":{"type":"array","items":{"$ref":"#/components/schemas/ImportLearning"}},"failureReason":{"nullable":true,"type":"string"},"toolshedTicket":{"nullable":true,"description":"Mirror ticket number in toolshed (internal.agvolution.com)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestedAt":{"type":"string"},"startedAt":{"nullable":true,"type":"string"},"doneAt":{"nullable":true,"type":"string"},"acknowledgedAt":{"nullable":true,"description":"Requester dismissed the in-app 'import ready' dialog","type":"string"},"notifiedAt":{"nullable":true,"description":"Requester e-mail sent","type":"string"}},"required":["id","orgId","status","requestedBy","locale","host","env","notes","files","connectors","assigneeEmail","assigneeNote","importJobIds","resultSummary","learnings","failureReason","toolshedTicket","requestedAt","startedAt","doneAt","acknowledgedAt","notifiedAt"],"description":"An AI-import request: the customer's files + notes and the fulfilment state"},"SoilMapMethodEnum":{"type":"string","enum":["yield_potential","ndvi_recent","ndvi_longterm","soil_zonation","twi","satellite_composite","yield_measured"]},"SoilTypeLUFAEnum":{"type":"string","enum":["S","lS","sU","ssL","lU","sL","uL","L","utL","tL","T"]},"SoilMapZoneResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"soilMapId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"soilTypeLUFA":{"$ref":"#/components/schemas/SoilTypeLUFAEnum"},"soilOrganicCarbon":{"type":"number"},"properties":{"nullable":true},"geometry":{},"areaFraction":{"type":"number"}},"required":["id","soilMapId","soilTypeLUFA","soilOrganicCarbon","geometry","areaFraction"],"description":"A zone within a soil map"},"CropCalendarCultivationEntry":{"type":"object","properties":{"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"The cultivation this entry represents. A field can carry several cultivations (sub-fields) in the same year, so this — not field+year+crop — identifies the entry."},"crop":{"type":"string","enum":["silageMaize","winterWheat","canola","sugarBeet","winterBarleyFodder","springBarleyMalting","springOatsFodder","springWheatFodder","winterRyeBaking","fieldGrassWiltedSilage","permanentGrasslandWiltedSilage","potatoTableLate","peasDry","peasDryFodder","triticaleFodder","broadBeans","sunflower","grassSeed","hardWheat","grainMaize","soybeanBeans","cerealRyeIntercrop","mustardIntercrop","oilRadishIntercrop","persianCloverIntercrop","phaceliaIntercrop","ryeWholePlantSilage","lupine","spelt","landscapeFeature","nonProductiveArea","alfalfa","winterOats","springRye","springTriticale","springCanola","springDurum","winterBroadBeans","winterPeas","potatoStarch","seedPotato","potatoTableEarly","cornCobMix","maizeBiogas","sorghum","buckwheat","millet","lentils","chickpeas","linseed","hemp","poppy","fodderBeet","vetch","quinoa","emmer","einkorn","clover","cloverGrass","alfalfaGrass","intercropMixture","blackOatIntercrop","vetchIntercrop","crimsonCloverIntercrop","alexandrineCloverIntercrop","buckwheatIntercrop","sunflowerIntercrop","nigerIntercrop","sorghumIntercrop","linseedIntercrop","camelinaIntercrop","serradellaIntercrop","ryegrassUndersow","cloverGrassUndersow","onion","garlic","leek","carrot","whiteCabbage","redCabbage","savoyCabbage","cauliflower","broccoli","kale","kohlrabi","brusselsSprouts","chineseCabbage","lettuce","lambsLettuce","spinach","beetroot","celeriac","fennel","endive","bushBeans","sweetCorn","pumpkin","cucumber","tomato","bellPepper","asparagus","strawberry","hops","grapevine","rhubarb","pomeFruit","stoneFruit","rice","cowpeas","dryBeans","grainSorghum","foxtailMillet","pearlMillet","fallow","springCerealMixture","cerealLegumeMixture","legumeMixture","amaranth","otherCereals","otherLegumes","otherOilseeds","crambe","camelina","swede","fenugreek","birdsfootTrefoil","sainfoin","serradella","sweetClover","meadowOrchard","jerusalemArtichoke","sweetPotato","otherVegetables","brassicaVegetables","turnip","brownMustard","watercress","rucola","gardenCress","radish","grainMustard","eggplant","belladonna","melon","watermelon","alliumVegetables","orache","sorrel","parsnip","horseradish","scorzonera","artichoke","otherHerbs","dill","chervil","anise","caraway","cumin","blackCumin","coriander","lovage","parsley","basil","rosemary","sage","borage","oregano","savory","hyssop","verbena","lavender","thyme","lemonBalm","gentian","mint","artemisia","calendula","echinacea","ribwortPlantain","chamomile","yarrow","valerian","stJohnsWort","ladysMantle","milkThistle","goatsRue","dandelion","angelica","mallow","arnica","turfGrass","woad","canaryGrass","tobacco","safflower","nettle","madder","ornamentalPlants","phaceliaMainCrop","otherEnergyCrops","silphium","virginiaMallow","knotweed","switchgrass","miscanthus","szarvasiGrass","reedCanaryGrass","otherFruit","bushBerries","seaBuckthorn","hazelnut","walnut","otherNuts","treeNursery","shortRotationCoppice","poplarCoppice","willowCoppice","otherPermanentCrops","christmasTrees","mushrooms","greenManure","otherArableCrops","unknownCrop"]},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Harvest year. A crop sown in the autumn — a winter cereal, or a cover crop drilled after the previous harvest — belongs to the year it is harvested or the year of the main crop it precedes, not the year it was sown. So a cover crop sown in August 2026 has year 2027 and its sowingDate lies in 2026."},"varietyName":{"nullable":true,"type":"string"},"usage":{"type":"string","enum":["COMMERCIAL","SEED_MULTIPLICATION"],"description":"COMMERCIAL (market production) or SEED_MULTIPLICATION (certified seed production)"},"seedLot":{"nullable":true,"description":"Seed lot of a seed multiplication, null otherwise","type":"string"},"multiplicationGeneration":{"nullable":true,"description":"Multiplication generation of a seed multiplication, null otherwise","type":"string"},"isPrimary":{"type":"boolean"},"secondaryCropType":{"nullable":true,"description":"Set on secondary cultivations (intercrop or undersow) grown under the year's main crop","type":"string","enum":["INTERCROP","UNDERSOW"]},"sowingDate":{"nullable":true,"format":"date","type":"string"},"harvestDate":{"nullable":true,"format":"date","type":"string"},"templateId":{"nullable":true,"description":"The ID of the template used for this cultivation","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"templateName":{"nullable":true,"description":"The name of the template used for this cultivation","type":"string"},"areaInHa":{"type":"number","description":"The cultivated area in hectares"}},"required":["cultivationId","crop","year","varietyName","usage","seedLot","multiplicationGeneration","isPrimary","secondaryCropType","sowingDate","harvestDate","templateId","templateName","areaInHa"],"description":"A cultivation entry representing crop data for a specific year","example":{"cultivationId":"223e4567-e89b-12d3-a456-426614174000","crop":"winterWheat","year":2025,"varietyName":"Absint","usage":"COMMERCIAL","seedLot":null,"multiplicationGeneration":null,"isPrimary":true,"secondaryCropType":null,"sowingDate":"2024-10-15","harvestDate":"2025-07-20","templateId":"123e4567-e89b-12d3-a456-426614174000","templateName":"Winter Wheat Standard","areaInHa":12.5}},"CropCalendarFieldEntry":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"name":{"type":"string"},"areaInHa":{"type":"number","description":"The field area in hectares"},"flik":{"nullable":true,"type":"string"},"parcelId":{"nullable":true,"type":"string"},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"]},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"]}]},"cultivations":{"type":"array","items":{"$ref":"#/components/schemas/CropCalendarCultivationEntry"}}},"required":["id","name","areaInHa","flik","parcelId","geometry","cultivations"],"description":"A field with its cultivation history for the crop calendar","example":{"id":"123e4567-e89b-12d3-a456-426614174000","name":"North Field","areaInHa":12.5,"flik":"DEBYXXX123456789","parcelId":"12345","geometry":{"type":"Polygon","coordinates":[[[13,49],[14,49],[14,50],[13,50],[13,49]]]},"cultivations":[{"cultivationId":"223e4567-e89b-12d3-a456-426614174000","crop":"winterWheat","year":2025,"varietyName":"Absint","usage":"COMMERCIAL","seedLot":null,"multiplicationGeneration":null,"isPrimary":true,"secondaryCropType":null,"sowingDate":"2024-10-15","harvestDate":"2025-07-20","templateId":"123e4567-e89b-12d3-a456-426614174000","templateName":"Winter Wheat Standard","areaInHa":12.5}]}},"RasterContinuousStats":{"type":"object","properties":{"statistics":{"type":"object","properties":{"mean":{"type":"number","example":8.42},"median":{"type":"number","example":8.1},"stddev":{"type":"number","example":2.3},"q20":{"type":"number","example":6,"description":"20th percentile"},"q80":{"type":"number","example":10.5,"description":"80th percentile"}},"required":["mean","median","stddev","q20","q80"]}},"required":["statistics"],"description":"Zonal statistics for continuous raster layers (e.g. twi, erosion-risk, drought-risk)."},"RasterCategoricalDistribution":{"type":"object","properties":{"distribution":{"type":"object","additionalProperties":{"type":"number"},"description":"Category label → percentage (0–100)","example":{"Valley":12.5,"Flat":45,"Mid Slope":30,"Ridge":12.5}}},"required":["distribution"],"description":"Percentage distribution for categorical raster layers (e.g. terrain-class, ylri-dominant-factor)."},"WaterBalanceDaySchema":{"type":"object","properties":{"date":{"type":"string","description":"Day (ISO yyyy-mm-dd)"},"swc":{"type":"number","description":"Soil water content (mm)"},"eta":{"type":"number","description":"Actual evapotranspiration ETa = Kc × ET0 (mm)"},"precipitation":{"type":"number","description":"Precipitation (mm)"},"irrigation":{"type":"number","description":"Irrigation applied (mm)"},"drainage":{"type":"number","description":"Drainage below the root zone (mm)"},"deficit":{"type":"number","description":"Water deficit = field capacity − SWC (mm)"},"forecast":{"description":"Present and true on days after today — simulated from the weather forecast, not observations","type":"boolean"}},"required":["date","swc","eta","precipitation","irrigation","drainage","deficit"],"description":"One simulated day of the FAO-56 field water balance. All values in mm.","example":{"date":"2026-06-10","swc":52.3,"eta":3.1,"precipitation":0,"irrigation":20,"drainage":0,"deficit":14.7}},"IrrigationRecommendationSchema":{"type":"object","properties":{"status":{"type":"string","enum":["due","upcoming","none","missing_data"],"description":"due = trigger crossed today; upcoming = crossing expected within the 7-day forecast horizon; none = no crossing in sight; missing_data = soil/weather insufficient"},"triggerDate":{"description":"ISO date the deficit trigger is (expected to be) crossed","type":"string"},"daysUntil":{"description":"Days until the trigger is crossed; 0 = due today","type":"number"},"doseMm":{"description":"Recommended dose (mm), rounded to 5, clamped to 10–35","type":"number"},"deficitMm":{"description":"Today's deficit (mm below FC)","type":"number"},"nfkPct":{"description":"Today's plant-available water as % nFK (0–100)","type":"number"},"triggerMm":{"description":"Absolute trigger deficit (mm): 50 % of AWC, 40 % in sensitive BBCH windows","type":"number"},"reasons":{"description":"Reason codes (open set): deficit_below_trigger, rain_expected, heat_stress_ahead, sensitive_stage","type":"array","items":{"type":"string"}},"heatStressDays":{"description":"Forecast dates (within the horizon) with Tmax at/above the crop's heat-stress threshold","type":"array","items":{"type":"string"}},"bbchStage":{"description":"Last BBCH stage of the Kc curve — from the weather-responsive phenology model when it covers the crop, otherwise estimated from the static FAO-56 crop calendar","type":"number"}},"required":["status"],"description":"Irrigation timing + quantity recommendation derived from the forecast tail of the water-balance series. The base trigger (50 % AWC depletion) equals the deficitLevel ok/warning boundary, so the badge and the recommendation never disagree.","example":{"status":"upcoming","triggerDate":"2026-06-13","daysUntil":3,"doseMm":25,"deficitMm":21.4,"nfkPct":58,"triggerMm":25.6,"reasons":["heat_stress_ahead"],"heatStressDays":["2026-06-14"],"bbchStage":65}},"IrrigationTransactionSchema":{"type":"object","properties":{"id":{"type":"string","description":"Transaction id of the irrigation action"},"operationId":{"type":"string","description":"Groups the action + water product rows of one irrigation event"},"date":{"type":"string","description":"Date of the irrigation event (ISO yyyy-mm-dd)"},"quantityMm":{"type":"number","description":"Irrigation water applied (mm)"},"actionFqn":{"nullable":true,"description":"Irrigation method article fqn (e.g. IRRIGATION_METHOD__SPRINKLER)","type":"string"},"status":{"type":"string","description":"Transaction status (e.g. PLANNING, COMMITTED)"}},"required":["id","operationId","date","quantityMm","actionFqn","status"],"description":"A recorded or planned irrigation event on a cultivation","example":{"id":"8f7f0d7e-1c2c-4d8e-9a51-2f9a4f6f1a01","operationId":"2b1a6c3e-0d4f-4f6a-8d2e-7c5b9e0f1a23","date":"2026-06-08","quantityMm":20,"actionFqn":"IRRIGATION_METHOD__SPRINKLER","status":"PLANNING"}},"FieldIrrigationDataSchema":{"type":"object","properties":{"id":{"type":"string","description":"Field id"},"cultivationId":{"nullable":true,"description":"Cultivation id for the requested year (null if the field has no cultivation that year)","type":"string"},"name":{"type":"string","description":"Display name of the row: the cultivation's sub-field name (Cultivations.properties.name) when set, otherwise the field name"},"fieldName":{"type":"string","description":"Plain name of the parent field"},"soilZone":{"nullable":true,"description":"Soil zone of the field's active zonation matched to this cultivation by maximum area overlap; its surveyed values (nFK, texture) drive the water balance. Null when no zone covers >=30 % of the cultivation - field-level topsoil values apply.","type":"object","properties":{"id":{"type":"string","description":"SoilSamplingZones id"},"label":{"type":"string","description":"Zone label, e.g. west_shallow"},"nfkMm":{"nullable":true,"description":"Surveyed plant-available water capacity (mm)","type":"number"},"overlapShare":{"type":"number","description":"Fraction of the cultivation covered by the zone (0..1)"}},"required":["id","label","nfkMm","overlapShare"]},"crop":{"nullable":true,"description":"Crop of the cultivation (e.g. winterWheat), null without a cultivation","type":"string"},"areaInHa":{"type":"number","description":"Area in hectares"},"fieldGroups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"nullable":true,"type":"string"}},"required":["id","name","color"]},"description":"Field groups the field belongs to"},"soilTypeKa5":{"nullable":true,"description":"KA5 soil texture class derived from the topsoil texture","type":"string"},"soilTypeLUFA":{"nullable":true,"description":"LUFA soil type (currently always null on this endpoint)","type":"string"},"thetaFc":{"nullable":true,"description":"Volumetric water content at field capacity, in percent (28 = 28 %)","x-unit":"% vol.","type":"number"},"thetaPwp":{"nullable":true,"description":"Volumetric water content at permanent wilting point, in percent (12 = 12 %)","x-unit":"% vol.","type":"number"},"awcMm":{"nullable":true,"description":"Available water capacity of the root-zone bucket (GET …/fields/{id}/{year}/irrigation calls it nfkMm)","x-unit":"mm","type":"number"},"rootDepthM":{"type":"number","description":"Rooting depth the balance used (m): the stored override when set, else the crop default"},"rootDepthOverrideM":{"nullable":true,"description":"Per-cultivation rooting-depth override (m); null when the crop default applies","type":"number"},"waterBalance":{"nullable":true,"description":"Daily FAO-56 water-balance series, null when it cannot be simulated (e.g. missing weather)","type":"array","items":{"$ref":"#/components/schemas/WaterBalanceDaySchema"}},"currentDeficit":{"nullable":true,"description":"Most recent water deficit (mm), null without a simulation","type":"number"},"deficitLevel":{"nullable":true,"description":"Classification of the current deficit","type":"string","enum":["ok","warning","critical"]},"totalIrrigated":{"type":"number","description":"Total irrigation over the simulated period (mm)"},"totalPrecipitation":{"type":"number","description":"Total precipitation over the simulated period (mm)"},"totalEta":{"type":"number","description":"Total actual evapotranspiration over the simulated period (mm)"},"simulationStartDate":{"nullable":true,"description":"First simulated day (ISO yyyy-mm-dd), null without a simulation","type":"string"},"sowingDate":{"nullable":true,"description":"Sowing date of the cultivation (ISO yyyy-mm-dd), null if unknown","type":"string"},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/IrrigationTransactionSchema"},"description":"Irrigation events recorded for the cultivation"},"recommendation":{"$ref":"#/components/schemas/IrrigationRecommendationSchema"}},"required":["id","cultivationId","name","fieldName","soilZone","crop","areaInHa","fieldGroups","soilTypeKa5","soilTypeLUFA","thetaFc","thetaPwp","awcMm","rootDepthM","rootDepthOverrideM","waterBalance","currentDeficit","deficitLevel","totalIrrigated","totalPrecipitation","totalEta","simulationStartDate","sowingDate","transactions","recommendation"],"description":"Irrigation water-balance summary for one field and year"},"PaginationCursor":{"type":"string","description":"Opaque, base64url-encoded; pass back unchanged as ?cursor="},"ApplicationMapModeEnum":{"type":"string","enum":["fertilizerApplication","planting"],"description":"fertilizerApplication: a fertilizer product rate; planting: a seeding rate","example":"fertilizerApplication"},"ApplicationMapZoneSource":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["favorite"]}},"required":["type"],"description":"The cultivation's default (starred) base zonation"},{"type":"object","properties":{"type":{"type":"string","enum":["base_zonation"]},"method":{"type":"string","enum":["yield_potential","ndvi_recent","ndvi_longterm","soil_zonation","twi","satellite_composite","yield_measured"],"description":"Base-zonation method the map derives from","example":"soil_zonation"},"numberOfZones":{"type":"integer","minimum":1,"maximum":10},"source":{"description":"Encoded zonation source of the variant (e.g. soil_zonation:<id>); omit to ignore","nullable":true,"type":"string"}},"required":["type","method","numberOfZones"],"description":"A specific stored base-zonation variant"},{"type":"object","properties":{"type":{"type":"string","enum":["soil_zonation"]},"zonationId":{"description":"Soil sampling zonation; default: the field's active one","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type"],"description":"Soil sampling zones of the field (relative yield from SOC)"},{"type":"object","properties":{"type":{"type":"string","enum":["yield_zonation"]},"zonationId":{"description":"Yield zonation (metric wet); default: the cultivation's active one, measured preferred","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type"],"description":"Yield zonation of the cultivation (measured map or satellite estimate)"},{"type":"object","properties":{"type":{"type":"string","enum":["uniform"]}},"required":["type"],"description":"One zone covering the cultivation"}],"description":"Where the zones come from. Only stored zonations are supported here; satellite/TWI zonation is only available in the app.","type":"object"},"ApplicationMapSummary":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldName":{"nullable":true,"type":"string"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"mode":{"$ref":"#/components/schemas/ApplicationMapModeEnum"},"method":{"type":"string","enum":["yield_potential","ndvi_recent","ndvi_longterm","soil_zonation","twi","satellite_composite","yield_measured"],"description":"Base-zonation method the map derives from","example":"soil_zonation"},"numberOfZones":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"articleFqn":{"nullable":true,"description":"Fertilizer article (fertilizerApplication only)","type":"string"},"crop":{"nullable":true,"type":"string"},"variety":{"nullable":true,"type":"string"},"unit":{"type":"string"},"standardRate":{"type":"number"},"weightedRate":{"nullable":true,"description":"Area-weighted mean zone rate","type":"number"},"machine":{"type":"string"},"transactionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creationTime":{"type":"string","description":"ISO timestamp"},"export":{"nullable":true,"type":"object","properties":{"fileKey":{"type":"string","description":"Org-scoped key for GET /files/{fileKey}"},"terminal":{"type":"string"},"exportedAt":{"type":"string","description":"ISO timestamp"},"downloadUrl":{"description":"Presigned download URL (300 s); only with ?download=true","type":"string","format":"uri"}},"required":["fileKey","terminal","exportedAt"],"description":"Stored ISOXML/shapefile export of the map"}},"required":["id","fieldId","fieldName","year","name","mode","method","numberOfZones","articleFqn","crop","variety","unit","standardRate","weightedRate","machine","transactionId","creationTime","export"],"description":"A persisted application map without zone geometry","example":{"id":"0b2e6f1c-1a2b-4c3d-9e8f-7a6b5c4d3e2f","fieldId":"1f3e9c2a-7b4d-4e0f-9a1b-2c3d4e5f6a7b","fieldName":"Am Bach","year":2026,"name":"MINERAL__CALCIUM_AMMONIUM_NITRATE 2026","mode":"fertilizerApplication","method":"soil_zonation","numberOfZones":3,"articleFqn":"MINERAL__CALCIUM_AMMONIUM_NITRATE","crop":null,"variety":null,"unit":"kg_ha","standardRate":120,"weightedRate":120,"machine":"JD_GEN4_COMMAND_CENTER","transactionId":null,"creationTime":"2026-03-02T09:12:44.000Z","export":{"fileKey":"MINERAL_CAN_2026_JD_GEN4_COMMAND_CENTER_1772000000000.zip","terminal":"JD_GEN4_COMMAND_CENTER","exportedAt":"2026-03-02T09:12:45.000Z"}}},"ApplicationMapDetail":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldName":{"nullable":true,"type":"string"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"mode":{"$ref":"#/components/schemas/ApplicationMapModeEnum"},"method":{"type":"string","enum":["yield_potential","ndvi_recent","ndvi_longterm","soil_zonation","twi","satellite_composite","yield_measured"],"description":"Base-zonation method the map derives from","example":"soil_zonation"},"numberOfZones":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"articleFqn":{"nullable":true,"description":"Fertilizer article (fertilizerApplication only)","type":"string"},"crop":{"nullable":true,"type":"string"},"variety":{"nullable":true,"type":"string"},"unit":{"type":"string"},"standardRate":{"type":"number"},"weightedRate":{"nullable":true,"description":"Area-weighted mean zone rate","type":"number"},"machine":{"type":"string"},"transactionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creationTime":{"type":"string","description":"ISO timestamp"},"export":{"nullable":true,"type":"object","properties":{"fileKey":{"type":"string","description":"Org-scoped key for GET /files/{fileKey}"},"terminal":{"type":"string"},"exportedAt":{"type":"string","description":"ISO timestamp"},"downloadUrl":{"description":"Presigned download URL (300 s); only with ?download=true","type":"string","format":"uri"}},"required":["fileKey","terminal","exportedAt"],"description":"Stored ISOXML/shapefile export of the map"},"zones":{"type":"object","properties":{"type":{"type":"string","enum":["FeatureCollection"]},"features":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"]},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"]}]},"properties":{"type":"object","properties":{"TreatmentID":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"RATE":{"type":"number"},"UNIT":{"type":"string"},"PRODUCT":{"type":"string"},"areaFraction":{"nullable":true,"description":"Share of the map's area in this zone (0–1); null for maps stored without zone areas","type":"number"},"relativeYield":{"type":"number"}},"required":["TreatmentID","RATE","UNIT","PRODUCT","areaFraction"],"additionalProperties":{}}},"required":["type","geometry","properties"]}}},"required":["type","features"],"description":"Zone geometries with RATE / UNIT / PRODUCT / TreatmentID / areaFraction"}},"required":["id","fieldId","fieldName","year","name","mode","method","numberOfZones","articleFqn","crop","variety","unit","standardRate","weightedRate","machine","transactionId","creationTime","export","zones"],"description":"A persisted application map including its zones"},"FieldBaseFertilizationManagement":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"areaInHa":{"type":"number"},"cultivationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"crop":{"nullable":true,"type":"string"},"fieldGroups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"nullable":true,"type":"string"}},"required":["id","name","color"]}},"transactions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"date":{"type":"string","description":"yyyy-mm-dd"},"articleId":{"type":"string"},"quantity":{"nullable":true,"type":"number"},"unit":{"nullable":true,"type":"string"},"status":{"type":"string"},"p2o5":{"nullable":true,"type":"number"},"k2o":{"nullable":true,"type":"number"},"mgo":{"nullable":true,"type":"number"},"limeEffectPer100Kg":{"nullable":true,"type":"number"},"convTtoCbm":{"nullable":true,"type":"number"}},"required":["id","operationId","date","articleId","quantity","unit","status","p2o5","k2o","mgo","limeEffectPer100Kg","convTtoCbm"]}},"soil":{"type":"object","properties":{"ph":{"type":"object","properties":{"value":{"nullable":true,"type":"number"},"source":{"nullable":true,"description":"Where the value comes from (measured, model, …)","type":"string"},"method":{"description":"Lab method, e.g. CAL / DL for P","nullable":true,"type":"string"},"impossible":{"description":"The stored reading when it is physically impossible; `value` is then null and no calculation uses it","type":"number"}},"required":["value","source"]},"p2o5":{"type":"object","properties":{"value":{"nullable":true,"type":"number"},"source":{"nullable":true,"description":"Where the value comes from (measured, model, …)","type":"string"},"method":{"description":"Lab method, e.g. CAL / DL for P","nullable":true,"type":"string"},"impossible":{"description":"The stored reading when it is physically impossible; `value` is then null and no calculation uses it","type":"number"}},"required":["value","source"]},"k2o":{"type":"object","properties":{"value":{"nullable":true,"type":"number"},"source":{"nullable":true,"description":"Where the value comes from (measured, model, …)","type":"string"},"method":{"description":"Lab method, e.g. CAL / DL for P","nullable":true,"type":"string"},"impossible":{"description":"The stored reading when it is physically impossible; `value` is then null and no calculation uses it","type":"number"}},"required":["value","source"]},"mgo":{"type":"object","properties":{"value":{"nullable":true,"type":"number"},"source":{"nullable":true,"description":"Where the value comes from (measured, model, …)","type":"string"},"method":{"description":"Lab method, e.g. CAL / DL for P","nullable":true,"type":"string"},"impossible":{"description":"The stored reading when it is physically impossible; `value` is then null and no calculation uses it","type":"number"}},"required":["value","source"]},"humus":{"type":"object","properties":{"value":{"nullable":true,"type":"number"},"source":{"nullable":true,"description":"Where the value comes from (measured, model, …)","type":"string"},"method":{"description":"Lab method, e.g. CAL / DL for P","nullable":true,"type":"string"},"impossible":{"description":"The stored reading when it is physically impossible; `value` is then null and no calculation uses it","type":"number"}},"required":["value","source"]}},"required":["ph","p2o5","k2o","mgo","humus"],"description":"Topsoil values the recommendation is based on"},"soilClass":{"type":"string","enum":["light","medium","heavy"],"description":"Texture class for the VDLUFA supply-level thresholds","example":"medium"},"soilClassKa5":{"nullable":true,"type":"string"},"clayPct":{"nullable":true,"type":"number"},"yieldTpHa":{"nullable":true,"type":"number"},"strawRetained":{"type":"boolean"},"limeRequirementDtCaO":{"nullable":true,"type":"number"},"limeRequirementCalculated":{"nullable":true,"type":"number"},"need":{"nullable":true,"type":"object","properties":{"p2o5":{"nullable":true,"type":"object","properties":{"removalGrain":{"type":"number","description":"kg/ha removed with the main product"},"removalStraw":{"type":"number","description":"kg/ha removed with the by-product (0 when straw stays)"},"removalTotal":{"type":"number"},"level":{"type":"string","enum":["A","B","C","D","E"],"description":"VDLUFA supply level"},"factor":{"type":"number","description":"Correction factor applied to the removal for this supply level"},"recommendation":{"type":"number","description":"kg/ha recommendation = removal × factor"}},"required":["removalGrain","removalStraw","removalTotal","level","factor","recommendation"],"description":"Removal and recommendation of one nutrient (kg/ha)"},"k2o":{"nullable":true,"type":"object","properties":{"removalGrain":{"type":"number","description":"kg/ha removed with the main product"},"removalStraw":{"type":"number","description":"kg/ha removed with the by-product (0 when straw stays)"},"removalTotal":{"type":"number"},"level":{"type":"string","enum":["A","B","C","D","E"],"description":"VDLUFA supply level"},"factor":{"type":"number","description":"Correction factor applied to the removal for this supply level"},"recommendation":{"type":"number","description":"kg/ha recommendation = removal × factor"}},"required":["removalGrain","removalStraw","removalTotal","level","factor","recommendation"],"description":"Removal and recommendation of one nutrient (kg/ha)"},"mgo":{"nullable":true,"type":"object","properties":{"removalGrain":{"type":"number","description":"kg/ha removed with the main product"},"removalStraw":{"type":"number","description":"kg/ha removed with the by-product (0 when straw stays)"},"removalTotal":{"type":"number"},"level":{"type":"string","enum":["A","B","C","D","E"],"description":"VDLUFA supply level"},"factor":{"type":"number","description":"Correction factor applied to the removal for this supply level"},"recommendation":{"type":"number","description":"kg/ha recommendation = removal × factor"}},"required":["removalGrain","removalStraw","removalTotal","level","factor","recommendation"],"description":"Removal and recommendation of one nutrient (kg/ha)"}},"required":["p2o5","k2o","mgo"],"description":"Per-nutrient need; null when the soil test for that nutrient is missing"},"delivered":{"type":"object","properties":{"p2o5":{"type":"number"},"k2o":{"type":"number"},"mgo":{"type":"number"},"cao":{"type":"number"}},"required":["p2o5","k2o","mgo","cao"],"description":"Nutrients supplied by fertilizer transactions (kg/ha)"},"planned":{"type":"object","properties":{"p2o5":{"type":"number"},"k2o":{"type":"number"},"mgo":{"type":"number"},"cao":{"type":"number"}},"required":["p2o5","k2o","mgo","cao"],"description":"Nutrients supplied by fertilizer transactions (kg/ha)"},"p2o5Balance":{"type":"object","properties":{"supplyTotal":{"type":"number"},"removalTotal":{"type":"number"},"yearsWithYield":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0–6 years with a removal; a year without a yield (or without removal values for the crop) adds supply only"}},"required":["supplyTotal","removalTotal","yearsWithYield"]}},"required":["id","name","areaInHa","cultivationId","crop","fieldGroups","transactions","soil","soilClass","soilClassKa5","clayPct","yieldTpHa","strawRetained","limeRequirementDtCaO","limeRequirementCalculated","need","delivered","planned","p2o5Balance"],"description":"One field's P/K/Mg management row for a harvest year"},"VrnSummaryOutput":{"type":"object","properties":{"totalAreaHa":{"type":"number","description":"Total treated area in hectares"},"totalProductKg":{"type":"number","description":"Total product amount needed in kg"},"totalNitrogenKg":{"type":"number","description":"Total nitrogen amount in kg N"},"avgRateKgNPerHa":{"type":"number","description":"Area-weighted average rate in kg N/ha"},"minRateKgNPerHa":{"type":"number","description":"Minimum zone rate in kg N/ha"},"maxRateKgNPerHa":{"type":"number","description":"Maximum zone rate in kg N/ha"},"zoneCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Number of management zones"}},"required":["totalAreaHa","totalProductKg","totalNitrogenKg","avgRateKgNPerHa","minRateKgNPerHa","maxRateKgNPerHa","zoneCount"],"additionalProperties":false},"VrnZoneOutput":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false}],"description":"Geometry of the management zone"},"properties":{"type":"object","properties":{"zoneId":{"type":"string","description":"Unique identifier for this management zone"},"areaHa":{"type":"number","description":"Zone area in hectares"},"rateKgNPerHa":{"type":"number","description":"Recommended nitrogen rate in kg N/ha"},"rateKgProductPerHa":{"type":"number","description":"Recommended product rate in kg product/ha"},"nMin":{"description":"User-input or modeled Nmin in kg N/ha at season start","type":"number"},"nMinSpring":{"description":"User-input or modeled mineralized N in kg N/ha","type":"number"},"nResidual":{"description":"User-input or modeled Nmin in kg N/ha at season start","type":"number"},"nLoss":{"description":"User-input or modeled N loss in kg N/ha during the season","type":"number"},"nDemand":{"description":"Total crop nitrogen demand for this season in kg N/ha for this zone","type":"number"},"yieldInTpHa":{"description":"Expected yield in t/ha fresh matter for this zone","type":"number"},"reasoning":{"description":"Agronomic explanation for this rate","type":"string"}},"required":["zoneId","areaHa","rateKgNPerHa","rateKgProductPerHa"],"additionalProperties":false}},"required":["type","geometry","properties"],"additionalProperties":false},"VrsSummaryOutput":{"type":"object","properties":{"totalAreaHa":{"type":"number","description":"Total treated area in hectares"},"totalSeedKg":{"description":"Total seed amount needed in kg","type":"number"},"avgSeedingRate":{"type":"number","description":"Mean target density over the zones in plants/m²"},"minSeedingRate":{"type":"number","description":"Lowest zone target density in plants/m²"},"maxSeedingRate":{"type":"number","description":"Highest zone target density in plants/m²"},"zoneCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Number of management zones"}},"required":["totalAreaHa","avgSeedingRate","minSeedingRate","maxSeedingRate","zoneCount"],"additionalProperties":false},"VrsZoneOutput":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false}],"description":"Geometry of the management zone"},"properties":{"type":"object","properties":{"zoneId":{"type":"string","description":"Unique identifier for this management zone"},"areaHa":{"type":"number","description":"Zone area in hectares"},"seedingRateKgPerHa":{"description":"Seeding rate in kg seed per hectare (for weight-based seeding)","type":"number"},"seedingRatePlantsPerM2":{"description":"Seeding rate in plants per square meter (for precision planters)","type":"number"},"seedingRateSeedsPerM2":{"description":"Seeding rate in seeds per square meter (alternative specification)","type":"number"},"targetDensity":{"description":"Target plant density for this zone in plants/m²","type":"number"},"relativeYield":{"description":"Relative yield potential of this zone compared to field average","type":"number"},"reasoning":{"description":"Agronomic explanation for this seeding rate","type":"string"}},"required":["zoneId","areaHa"],"additionalProperties":false}},"required":["type","geometry","properties"],"additionalProperties":false},"AnalyticsGridDefinitionOutput":{"type":"object","properties":{"originX":{"type":"number","example":1367890,"description":"Top-left X in EPSG:3857, multiple of resolution"},"originY":{"type":"number","example":6789540,"description":"Top-left Y in EPSG:3857, multiple of resolution"},"resolution":{"type":"number","example":10,"description":"Pixel size in meters"},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":84},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":61}},"required":["originX","originY","resolution","width","height"],"additionalProperties":false,"description":"The analytics grid: EPSG:3857, north-up, origin snapped to multiples of the resolution so all grid rasters overlay pixel-exact."},"KpiCoverageOutput":{"type":"object","properties":{"cultivations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":1},"transactions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":24},"spatialTransactions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":3,"description":"Transactions whose rate varies spatially (application map or VRN zone quantities)"},"yieldSource":{"type":"string","enum":["uniform","map"],"description":"Where the yield signal comes from — a gridded yield map or the uniform harvest transaction"},"yieldMapCoverage":{"example":0.94,"description":"Fraction of field pixels covered by the yield map (only when yieldSource = map)","type":"number"}},"required":["cultivations","transactions","spatialTransactions","yieldSource"],"additionalProperties":false},"ProviderConnectionOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastRefreshedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"accessTokenExpiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"providerOrganizationId":{"nullable":true,"description":"The provider-side organisation the connection is bound to (CLAAS org, FarmENGAGE org); null when the provider has no such concept or none was picked yet.","type":"string"},"scopes":{"nullable":true,"type":"array","items":{"type":"string"}},"health":{"type":"string","enum":["ok","expired","unknown"],"description":"`expired`: the access token is past its expiry and has not been refreshed for 24 h — the org must reconnect. `unknown`: no refresh history to judge by. Computed from timestamps only; listing never refreshes tokens."}},"required":["id","connectedAt","lastUsedAt","lastRefreshedAt","accessTokenExpiresAt","providerOrganizationId","scopes","health"],"additionalProperties":false,"description":"An OAuth connection of the organisation. Never carries tokens."},"ProviderCapabilitiesOutput":{"type":"object","properties":{"equipment":{"type":"boolean"},"hierarchy":{"type":"boolean"},"imports":{"type":"array","items":{"$ref":"#/components/schemas/ProviderImportKindEnum"}},"exports":{"type":"array","items":{"$ref":"#/components/schemas/ProviderExportKindEnum"}}},"required":["equipment","hierarchy","imports","exports"],"additionalProperties":false,"description":"What the sub-routes of this provider support; unsupported sub-routes answer 422."},"ProviderLastImportOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"$ref":"#/components/schemas/ProviderImportStatusEnum"},"trigger":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"startedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"finishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","status","trigger","createdAt","startedAt","finishedAt"],"additionalProperties":false},"ProviderSummaryOutput":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ProviderIdEnum"},"name":{"type":"string","example":"John Deere Operations Center"},"status":{"type":"string","enum":["available","coming_soon"]},"staffOnly":{"type":"boolean"},"capabilities":{"$ref":"#/components/schemas/ProviderCapabilitiesOutput"},"connection":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/ProviderConnectionOutput"}]},"lastImport":{"nullable":true,"description":"Newest import run of this provider for the organisation (nightly or manual), if any.","allOf":[{"$ref":"#/components/schemas/ProviderLastImportOutput"}]}},"required":["id","name","status","staffOnly","capabilities","connection","lastImport"],"additionalProperties":false,"description":"A provider with the organisation's connection state and capabilities."},"ProviderEquipmentItemOutput":{"type":"object","properties":{"id":{"type":"string"},"kind":{"$ref":"#/components/schemas/ProviderEquipmentKindEnum"},"name":{"type":"string"},"make":{"nullable":true,"type":"string"},"model":{"nullable":true,"type":"string"},"serialNumber":{"nullable":true,"type":"string"},"category":{"nullable":true,"description":"Provider type label (JD equipment type, AGCO vehicle type / implement operation type, CLAAS type).","type":"string"},"archived":{"type":"boolean"},"providerOrganizationId":{"nullable":true,"type":"string"},"providerOrganizationName":{"nullable":true,"type":"string"},"telematicsCapable":{"nullable":true,"type":"boolean"},"licenseState":{"nullable":true,"description":"CLAAS OFT terminals only: the file-transfer licence state.","type":"string"}},"required":["id","kind","name","make","model","serialNumber","category","archived","providerOrganizationId","providerOrganizationName","telematicsCapable","licenseState"],"additionalProperties":false,"description":"A machine, implement, terminal or operator as the provider reports it."},"ProviderHierarchyFieldOutput":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"areaInHa":{"nullable":true,"type":"number"},"linkedFieldId":{"nullable":true,"description":"The agmeo field this provider field is linked to (via the field sync), null when not imported yet.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id","name","areaInHa","linkedFieldId"],"additionalProperties":false},"ProviderHierarchyGroupOutput":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/ProviderHierarchyFieldOutput"}}},"required":["id","name","fields"],"additionalProperties":false},"ProviderHierarchyOrganizationOutput":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"farms":{"type":"array","items":{"$ref":"#/components/schemas/ProviderHierarchyGroupOutput"}},"clients":{"type":"array","items":{"$ref":"#/components/schemas/ProviderHierarchyGroupOutput"},"description":"John Deere only (grower/customer groups)."},"unassignedFields":{"type":"array","items":{"$ref":"#/components/schemas/ProviderHierarchyFieldOutput"}}},"required":["id","name","farms","clients","unassignedFields"],"additionalProperties":false},"ProviderPendingOrganizationOutput":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"connectionsUrl":{"type":"string","description":"Where the user grants access in the provider's UI."}},"required":["id","name","connectionsUrl"],"additionalProperties":false},"ProviderImportPhaseOutput":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","running","done","failed"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"counters":{"nullable":true,"type":"object","additionalProperties":{"type":"number"}},"error":{"nullable":true,"type":"string"},"startedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"finishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["seq","kind","status","attempts","counters","error","startedAt","finishedAt"],"additionalProperties":false},"ProviderImportLiveProgressOutput":{"type":"object","properties":{"phase":{"type":"string"},"counters":{"type":"object","additionalProperties":{"type":"number"}},"unknownCropFields":{"nullable":true,"type":"array","items":{"type":"string"}},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["phase","counters","unknownCropFields","updatedAt"],"additionalProperties":false,"description":"Live in-process progress of the running operations import (John Deere / NEXT Farming only); null otherwise."},"ProviderImportJobOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"provider":{"$ref":"#/components/schemas/ProviderIdEnum"},"trigger":{"type":"string","enum":["onboarding","nightly","manual","reconcile"]},"kinds":{"type":"array","items":{"$ref":"#/components/schemas/ProviderImportKindEnum"}},"status":{"$ref":"#/components/schemas/ProviderImportStatusEnum"},"progress":{"type":"object","properties":{"totalChunks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"doneChunks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failedChunks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percent":{"type":"number"}},"required":["totalChunks","doneChunks","failedChunks","percent"],"additionalProperties":false},"counters":{"nullable":true,"type":"object","additionalProperties":{"type":"number"}},"phases":{"type":"array","items":{"$ref":"#/components/schemas/ProviderImportPhaseOutput"},"description":"Per-chunk progress; empty in list responses."},"live":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/ProviderImportLiveProgressOutput"}]},"error":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"startedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"finishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastHeartbeatAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","provider","trigger","kinds","status","progress","counters","phases","live","error","createdAt","startedAt","finishedAt","lastHeartbeatAt"],"additionalProperties":false,"description":"An import job = one durable provider-import run, created by the app's own sync flows (nightly, onboarding, Sync now). Read-only through this API. `kinds` is read back from the run's chunks and is empty for runs without chunks (CLAAS, FarmENGAGE)."},"ProviderExportJobOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"provider":{"$ref":"#/components/schemas/ProviderIdEnum"},"kind":{"$ref":"#/components/schemas/ProviderExportKindEnum"},"entityId":{"type":"string","description":"The agmeo id that was exported (a cultivationId for application maps)."},"op":{"type":"string","description":"Provider-side operation, e.g. `oftUpload` (CLAAS) or `prescriptionImport` (AGCO)."},"status":{"$ref":"#/components/schemas/ProviderExportStatusEnum"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"nullable":true,"type":"string"},"providerRef":{"nullable":true,"description":"Provider handles once sent: `{ fileId, equipmentId }` (CLAAS OFT) or `{ jobId, fileName }` (FarmENGAGE).","type":"object","additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"sentAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","provider","kind","entityId","op","status","attempts","lastError","providerRef","createdAt","sentAt"],"additionalProperties":false,"description":"An export job = one integration-outbox row."},"MeOrganizationOutput":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"nullable":true,"type":"string"},"role":{"type":"string"}},"required":["id","name","slug","role"],"additionalProperties":false,"description":"An organization the authenticated user is a member of","example":{"id":"org_2abcdefghijklmnopqrstuvwxy","name":"Demo Farm","slug":"demo-farm","role":"org:admin"}},"MachineResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"name":{"type":"string"},"manufacturer":{"type":"string"},"model":{"type":"string"},"category":{"type":"string","enum":["tractor_small","tractor_medium","tractor_large","tractor_xlarge","combine","self_propelled_sprayer","self_propelled_applicator","self_propelled_forage_harvester","self_propelled_root_harvester","track_tractor","telehandler","front_loader","transporter","irrigation_pump","other"]},"yearOfManufacture":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"serialNumber":{"nullable":true,"type":"string"},"inventoryNumber":{"nullable":true,"type":"string"},"licensePlate":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"catalogMachineId":{"nullable":true,"type":"string"},"powerKW":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"emptyMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"operatingMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"operatingMassEmptyKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"operatingMassFullKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"frontAxleFraction":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"tankCapacityL":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"frontTyre":{"nullable":true,"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","nullable":true,"enum":[null]}]},{"type":"object","additionalProperties":{}},{"type":"array","items":{}}]},"rearTyre":{"nullable":true,"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","nullable":true,"enum":[null]}]},{"type":"object","additionalProperties":{}},{"type":"array","items":{}}]},"purchaseDate":{"nullable":true,"type":"string"},"purchasePriceNet":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceGross":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceCurrency":{"type":"string"},"acquisitionType":{"nullable":true,"type":"string","enum":["owned","leased","rented","shared_machine_ring","contractor_owned","on_demonstration"]},"depreciationMethod":{"nullable":true,"type":"string","enum":["linear","declining_balance","performance_based","not_depreciating"]},"usefulLifeYears":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"residualValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceAnnual":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingType":{"nullable":true,"type":"string","enum":["cash","loan","leasing","operating_lease","manufacturer_financing"]},"financingMonthlyPayment":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingEndDate":{"nullable":true,"type":"string"},"leaseEndDate":{"nullable":true,"type":"string"},"maschinenringMemberNumber":{"nullable":true,"type":"string"},"contractorHourlyRate":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"hourlyOperatingCost":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"fuelConsumptionLitresPerHour":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"currentOperatingHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"expectedLifetimeHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"currentMileageKm":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"serviceIntervalHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"lastServiceDate":{"nullable":true,"type":"string"},"lastServiceHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"nextServiceDate":{"nullable":true,"type":"string"},"nextServiceDueHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"maintenanceCostYtd":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"dieselConsumptionYtdLitres":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"tuvUntil":{"nullable":true,"type":"string"},"insuranceUntil":{"nullable":true,"type":"string"},"homeBaseLocation":{"nullable":true,"type":"string"},"telemetryProvider":{"nullable":true,"type":"string"},"telemetryDeviceId":{"nullable":true,"type":"string"},"isobusCompatible":{"nullable":true,"type":"boolean"},"gpsTracking":{"nullable":true,"type":"boolean"},"irrigationType":{"nullable":true,"type":"string","enum":["drip","sprinkler","pivot","hose_reel","sub_irrigation","flood","micro_sprinkler"]},"irrigationFlowRateLPerMin":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"irrigationCoverageHa":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationOperatingPressureBar":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationWaterSourceId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"defaultOperatorId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","sold","scrapped","loaned_out","in_repair","decommissioned"]},"loanedToOrgId":{"nullable":true,"type":"string"},"imageUrl":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"nullable":true,"type":"string"}},"required":["id","orgId","name","manufacturer","model","category","yearOfManufacture","serialNumber","inventoryNumber","licensePlate","notes","catalogMachineId","powerKW","emptyMassKg","operatingMassKg","operatingMassEmptyKg","operatingMassFullKg","frontAxleFraction","tankCapacityL","frontTyre","rearTyre","purchaseDate","purchasePriceNet","purchasePriceGross","purchasePriceCurrency","acquisitionType","depreciationMethod","usefulLifeYears","residualValue","insuranceValue","insuranceAnnual","financingType","financingMonthlyPayment","financingEndDate","leaseEndDate","maschinenringMemberNumber","contractorHourlyRate","hourlyOperatingCost","fuelConsumptionLitresPerHour","currentOperatingHours","expectedLifetimeHours","currentMileageKm","serviceIntervalHours","lastServiceDate","lastServiceHours","nextServiceDate","nextServiceDueHours","maintenanceCostYtd","dieselConsumptionYtdLitres","tuvUntil","insuranceUntil","homeBaseLocation","telemetryProvider","telemetryDeviceId","isobusCompatible","gpsTracking","irrigationType","irrigationFlowRateLPerMin","irrigationCoverageHa","irrigationOperatingPressureBar","irrigationWaterSourceId","defaultOperatorId","status","loanedToOrgId","imageUrl","createdAt","updatedAt","archivedAt"],"additionalProperties":false,"title":"MachineResponse","description":"A self-propelled machine of the organization (identity, technical, economic and service data)."},"MachineLocationResponseOutput":{"type":"object","properties":{"jdEquipmentId":{"type":"string","description":"John Deere equipment id (stable per machine)"},"jdName":{"type":"string"},"jdMake":{"nullable":true,"type":"string"},"jdModel":{"nullable":true,"type":"string"},"linkedMachineId":{"nullable":true,"description":"Machine this equipment is mapped to","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"lat":{"type":"number"},"lon":{"type":"number"},"eventTimestamp":{"type":"string","description":"ISO time of the position fix"},"speedKmh":{"nullable":true,"type":"number"},"heading":{"nullable":true,"type":"number"},"machineState":{"nullable":true,"type":"string"},"source":{"type":"string","enum":["aemp","breadcrumb","location"],"description":"John Deere API the fix came from"}},"required":["jdEquipmentId","jdName","jdMake","jdModel","linkedMachineId","lat","lon","eventTimestamp","speedKmh","heading","machineState","source"],"additionalProperties":false,"title":"MachineLocationResponse","description":"Last-known position of a John Deere machine."},"ImplementResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"name":{"type":"string"},"manufacturer":{"nullable":true,"type":"string"},"model":{"nullable":true,"type":"string"},"type":{"type":"string","enum":["plow","cultivator","harrow","disc_harrow","power_harrow","rotary_harrow","drill","seeder","combination_drill","precision_drill","fertilizer_spreader","manure_spreader","mower","tedder","rake","baler_round","baler_square","baler_variable","trailer","slurry_tanker","water_tanker","overload_wagon","tine_harrow_weeder","row_crop_cultivator","roller","cultipacker","mulcher","stone_picker","potato_planter","potato_harvester","sugar_beet_harvester","sprayer","grassland_overseeder","grassland_combo","meadow_harrow","grassland_mulcher","slurry_carrier_vehicle","irrigation_drip_line","irrigation_sprinkler","irrigation_hose_reel","irrigation_pivot","other"]},"mountType":{"type":"string","enum":["three_point","trailed","semi_mounted","self_propelled","stationary"]},"yearOfManufacture":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"serialNumber":{"nullable":true,"type":"string"},"inventoryNumber":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"catalogImplementId":{"nullable":true,"type":"string"},"emptyMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"maxFillMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"workingWidthM":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"hitchToCogM":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"loadShareOfAttachedVehicle":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"trailerAxleConfig":{"nullable":true,"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","nullable":true,"enum":[null]}]},{"type":"object","additionalProperties":{}},{"type":"array","items":{}}]},"purchaseDate":{"nullable":true,"type":"string"},"purchasePriceNet":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceGross":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceCurrency":{"type":"string"},"acquisitionType":{"nullable":true,"type":"string","enum":["owned","leased","rented","shared_machine_ring","contractor_owned","on_demonstration"]},"depreciationMethod":{"nullable":true,"type":"string","enum":["linear","declining_balance","performance_based","not_depreciating"]},"usefulLifeYears":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"residualValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceAnnual":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingType":{"nullable":true,"type":"string","enum":["cash","loan","leasing","operating_lease","manufacturer_financing"]},"financingMonthlyPayment":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingEndDate":{"nullable":true,"type":"string"},"leaseEndDate":{"nullable":true,"type":"string"},"maschinenringMemberNumber":{"nullable":true,"type":"string"},"contractorHourlyRate":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"hourlyOperatingCost":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"homeBaseLocation":{"nullable":true,"type":"string"},"maintenanceCostYtd":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationType":{"nullable":true,"type":"string","enum":["drip","sprinkler","pivot","hose_reel","sub_irrigation","flood","micro_sprinkler"]},"irrigationFlowRateLPerMin":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"irrigationCoverageHa":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationOperatingPressureBar":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationWaterSourceId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","sold","scrapped","loaned_out","in_repair","decommissioned"]},"imageUrl":{"nullable":true,"type":"string"},"telemetryProvider":{"nullable":true,"type":"string"},"telemetryDeviceId":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"archivedAt":{"nullable":true,"type":"string"}},"required":["id","orgId","name","manufacturer","model","type","mountType","yearOfManufacture","serialNumber","inventoryNumber","notes","catalogImplementId","emptyMassKg","maxFillMassKg","workingWidthM","hitchToCogM","loadShareOfAttachedVehicle","trailerAxleConfig","purchaseDate","purchasePriceNet","purchasePriceGross","purchasePriceCurrency","acquisitionType","depreciationMethod","usefulLifeYears","residualValue","insuranceValue","insuranceAnnual","financingType","financingMonthlyPayment","financingEndDate","leaseEndDate","maschinenringMemberNumber","contractorHourlyRate","hourlyOperatingCost","homeBaseLocation","maintenanceCostYtd","irrigationType","irrigationFlowRateLPerMin","irrigationCoverageHa","irrigationOperatingPressureBar","irrigationWaterSourceId","status","imageUrl","telemetryProvider","telemetryDeviceId","createdAt","updatedAt","archivedAt"],"additionalProperties":false,"title":"ImplementResponse","description":"A towed/mounted implement of the organization."},"OperatorResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"clerkUserId":{"nullable":true,"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"role":{"type":"string","enum":["machineOperator","fieldWorker","manager","other"]},"staffNumber":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"hourlyCostEuro":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"hourlyCostEuroWithheld":{"description":"Only on rows read by someone who may not see a person's pay: a member who does not administer the organization, and every AI assistant (the agmeo assistant, the assistant an end user connected through the agmeo connector); never for an administrator outside an AI assistant or for the organization's API key. The person has an hourly cost, and it is withheld (hourlyCostEuro is null), not missing. Labour rates without names come from the assistant's labour-rate tool (agmeo_labour_rates_get in the connector).","type":"boolean","enum":[true]},"notesPayWithheld":{"description":"Only on rows read by someone who may not see a person's pay (a member who does not administer the organization, an AI assistant), never for an administrator outside an AI assistant or for the organization's API key: an hourly rate an import left in the notes was taken out of them.","type":"boolean","enum":[true]}},"required":["id","orgId","clerkUserId","firstName","lastName","role","staffNumber","email","phone","notes","hourlyCostEuro","createdAt","updatedAt"],"additionalProperties":false,"title":"OperatorResponse","description":"A staff member / operator of the organization."},"TaskResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"assignedOperatorId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customName":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"priority":{"type":"string","enum":["LOW","NORMAL","HIGH","URGENT"]},"deadline":{"nullable":true,"type":"string"},"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"authorClerkUserId":{"nullable":true,"type":"string"},"authorName":{"nullable":true,"type":"string"},"body":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","authorClerkUserId","body","createdAt"],"additionalProperties":false}},"taskGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"done":{"type":"boolean","description":"true when every transaction of the task's operation is DOCUMENTATION"}},"required":["id","orgId","operationId","assignedOperatorId","customName","description","priority","deadline","comments","taskGroupId","createdAt","updatedAt","done"],"additionalProperties":false,"title":"TaskResponse","description":"Task metadata of one operation (assignment, priority, deadline, comments) — one task per operation. comments are read-only via the API."},"TaskTombstoneOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"deleted":{"type":"boolean","enum":[true]}},"required":["id","deleted"],"additionalProperties":false,"title":"TaskTombstone","description":"Delta-sync tombstone of a deleted task — only returned by GET /tasks with ?since=."},"NewsFeedItemResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"createdAt":{"type":"string"},"category":{"type":"string","enum":["weather","tasks","events","prices","advisory","offer","announcement"]},"headline":{"type":"string"},"body":{"type":"string"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"validFrom":{"type":"string"},"validUntil":{"nullable":true,"type":"string"},"ctaUrl":{"nullable":true,"type":"string"},"ctaLabel":{"nullable":true,"type":"string"}},"required":["id","createdAt","category","headline","body","priority","validFrom","validUntil","ctaUrl","ctaLabel"],"additionalProperties":false,"title":"NewsFeedItemResponse","description":"One item of the org's news feed (org-scoped or global, within its validity window)."},"SoilParameterValueOutput":{"type":"object","properties":{"parameter":{"type":"string","enum":["soc","humus","clay","silt","sand","ph","p2o5","k2o","mgo","bd","nmin","no3","nh4","cec","nt","s","b","cu","zn","mn","fe","cd","na","ca","mo","smin","nsol","caco3","ct","siltf","siltm","siltc","sandf","sandmc","pb","cr","ni","hg","as","cut","znt"]},"value":{"type":"number"},"unit":{"nullable":true,"type":"string"},"method":{"type":"string"},"vdlufaStage":{"nullable":true,"type":"string","enum":["A","B","C","D","E"]},"layerFrom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"layerTo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"date":{"type":"string"},"source":{"type":"string","enum":["user","lab-probe","zone-mean","dsm-mean","global-index"]}},"required":["parameter","value","unit","method","vdlufaStage","layerFrom","layerTo","date","source"],"additionalProperties":false,"description":"One measured/entered soil value. Phosphorus, potassium and magnesium are always reported in canonical oxide form (p2o5/k2o/mgo) together with the lab extraction method — the unit follows the method (e.g. CAL P₂O₅ in mg/100g vs Olsen P in mg P/kg). vdlufaStage is the VDLUFA supply class A–E computed from value + method; date is the sampling date (YYYY-MM-DD).","example":{"parameter":"p2o5","value":14,"unit":"mg/100g","method":"cal","vdlufaStage":"D","layerFrom":0,"layerTo":30,"date":"2026-03-15","source":"lab-probe"}},"SoilZoneResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"zoneLabel":{"type":"string"},"classIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"color":{"type":"string"},"areaHa":{"type":"number","description":"Zone area (named areaHa here; field rows use areaInHa)","x-unit":"ha"},"probeNr":{"nullable":true,"description":"Org-wide probe number of the zone's mixed sample","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bodenartKa5":{"nullable":true,"type":"string"},"soilTypeText":{"nullable":true,"description":"Free-text soil type from an imported survey, e.g. 'Braunerde aus Hanglehm'","type":"string"},"nfkMm":{"nullable":true,"description":"Plant-available water capacity (nFK) in mm over the survey's root depth","type":"number"},"nfk30Pct":{"nullable":true,"description":"Survey-provided threshold at the 30 % nFK mark","type":"number"},"nfk50Pct":{"nullable":true,"description":"Survey-provided threshold at the 50 % nFK mark","type":"number"},"nfk70Pct":{"nullable":true,"description":"Survey-provided threshold at the 70 % nFK mark","type":"number"},"sourceRef":{"nullable":true,"description":"Provenance of an imported zone, e.g. 'bohrstock:zone:ghei_nass'","type":"string"},"geometry":{},"values":{"type":"array","items":{"$ref":"#/components/schemas/SoilParameterValueOutput"}}},"required":["id","zoneLabel","classIndex","color","areaHa","probeNr","bodenartKa5","soilTypeText","nfkMm","nfk30Pct","nfk50Pct","nfk70Pct","sourceRef","geometry","values"],"additionalProperties":false,"description":"One zone of the active soil sampling zonation, with its topsoil (0-30 cm) values."},"TransactionResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"fieldId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"crop":{"type":"string"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Groups the action + product rows of one operation event"},"operationCategory":{"type":"string","description":"Operation category, e.g. TILLAGE, PLANTING, FERTILIZING, PROTECTION, MONITORING, MAINTENANCE, HARVESTING, POSTHARVEST, IRRIGATION, MISCELLANEOUS"},"actionOrProduct":{"type":"string","enum":["action","product"]},"articleId":{"type":"string","description":"Article FQN (machine action or product)"},"date":{"type":"string","description":"ISO timestamp of the operation"},"status":{"type":"string","enum":["PLANNING","IN_EXECUTION","DOCUMENTATION"]},"modifiedOrAdded":{"nullable":true,"type":"string","enum":["MODIFIED","ADDED"]},"quantity":{"type":"number","description":"Rate per hectare in `unit` — not a total. Product rows: the applied or harvested amount; action rows: 0."},"unit":{"type":"string","description":"Unit of quantity, always per area: kg_ha, dt_ha, t_ha, l_ha, hl_ha, cbm_ha (m³/ha), h_ha, pieces_ha, plants_m2, grains_m2, % — or \"\" on action rows. GET /api/units/quantity lists the catalogue units."},"frequency":{"type":"number","description":"Treated-area share (1 = the whole area); the CO₂e calculation multiplies quantity by it"},"diesel":{"type":"number","description":"Diesel use of this row","x-unit":"l/ha"},"electricity":{"nullable":true,"description":"Electricity use; null = not recorded","x-unit":"kWh/ha","type":"number"},"co2":{"nullable":true,"description":"Computed CO₂e emissions of this row per hectare (multiply by the area for a total)","x-unit":"kg CO₂e/ha","type":"number"},"cost":{"nullable":true,"description":"Total cost of this row per hectare (machine, labour and product costs)","x-unit":"currency/ha","type":"number"},"price":{"nullable":true,"description":"Product price stored on the row, in priceUnit","type":"number"},"priceUnit":{"nullable":true,"description":"Unit of price, e.g. euro_kg, euro_t, euro_ha","type":"string"},"productCost":{"nullable":true,"description":"price × quantity converted to the price unit","x-unit":"currency/ha","type":"number"},"hours":{"nullable":true,"description":"Working hours of this row","x-unit":"h/ha","type":"number"},"workedAreaInHa":{"nullable":true,"description":"Area the operation actually covered (e.g. one of several partial harvest passes from machine data); null = the whole cultivation. Totals use min(workedAreaInHa, cultivation area) instead of the full area.","x-unit":"ha","type":"number"},"isHarvestProduct":{"nullable":true,"type":"boolean"},"details":{"nullable":true,"description":"Either the CO₂e calculation steps of the row (array), or an object of documentation values written by the apps — e.g. note, plant-protection kennr/awgId/targetOrganism, windSpeed — or null.","anyOf":[{"type":"array","items":{"type":"object","properties":{"inputName":{"type":"string","description":"What the step starts from, e.g. the product quantity or diesel"},"inputValue":{"type":"number"},"inputUnit":{"type":"string"},"parameters":{"type":"array","items":{"type":"object","properties":{"relationInputParameter":{"type":"string","description":"\"x\" (multiply), \"+\" (add) or \"is.in.category\""},"parameterValue":{"type":"number"},"parameterName":{"type":"string"},"parameterUnit":{"type":"string"}},"required":["relationInputParameter","parameterValue","parameterName","parameterUnit"],"additionalProperties":false},"description":"Factors applied to the input value"},"resultValue":{"type":"number"},"resultUnit":{"type":"string","description":"e.g. kg CO2e/ha"},"emissionSource":{"type":"string"},"note":{"type":"string"}},"required":["inputName","inputValue","inputUnit","parameters","resultValue","resultUnit","note"],"additionalProperties":false,"title":"Co2eCalculationStep"}},{"type":"object","additionalProperties":{}}]}},"required":["id","cultivationId","fieldId","crop","year","operationId","operationCategory","actionOrProduct","articleId","date","status","modifiedOrAdded","quantity","unit","frequency","diesel","electricity","co2","cost","price","priceUnit","productCost","hours","workedAreaInHa","isHarvestProduct","details"],"additionalProperties":false,"description":"One transaction row: a single action (machine pass) or product (input/output) line of an operation. Rows sharing an operationId form one operation event (e.g. FERTILIZING = spreader action + fertilizer product). quantity, diesel, hours, cost, productCost and co2 are per hectare: a field total is the value × the cultivation's areaInHa, or × workedAreaInHa when that is set.","example":{"id":"11111111-1111-1111-1111-111111111111","cultivationId":"22222222-2222-2222-2222-222222222222","fieldId":"33333333-3333-3333-3333-333333333333","crop":"winterWheat","year":2026,"operationId":"44444444-4444-4444-4444-444444444444","operationCategory":"FERTILIZING","actionOrProduct":"product","articleId":"MINERAL__CALCIUM_AMMONIUM_NITRATE","date":"2026-03-20T00:00:00.000Z","status":"DOCUMENTATION","modifiedOrAdded":null,"quantity":250,"unit":"kg_ha","frequency":1,"diesel":0,"electricity":null,"co2":812.4,"cost":96.25,"price":0.385,"priceUnit":"euro_kg","productCost":96.25,"hours":0,"workedAreaInHa":null,"isHarvestProduct":false,"details":null}},"ExportPreflightResultOutput":{"type":"object","properties":{"isValid":{"type":"boolean"},"missingFields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["text","select","boolean"]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"defaultValue":{"anyOf":[{"type":"string"},{"type":"boolean"}]}},"required":["key","label","type"],"additionalProperties":false}},"missingCropMappings":{"type":"array","items":{"type":"object","properties":{"cropName":{"type":"string"},"cultivationCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["cropName","cultivationCount"],"additionalProperties":false}},"fieldDataWarnings":{"type":"array","items":{"type":"object","properties":{"fieldName":{"type":"string"},"issue":{"type":"string"},"value":{"type":"string"}},"required":["fieldName","issue","value"],"additionalProperties":false}},"issues":{"description":"Validation findings keyed by a stable `code` (translated in the app as exportValidation.<code>); `blocking` issues prevent the export, `warning` and `info` are advisory.","type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"severity":{"type":"string","enum":["blocking","warning","info"]},"stage":{"type":"string","enum":["xsd","pflichtfelder","stammdaten","eingaberoutinen","plausibilitaet"]},"scope":{"type":"string","enum":["betrieb","field","cultivation","fertilization"]},"fieldId":{"type":"string"},"fieldName":{"type":"string"},"cultivationId":{"type":"string"},"value":{"type":"string"},"params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"required":["code","severity","stage","scope"],"additionalProperties":false}},"warnings":{"description":"BESYD only","type":"array","items":{"type":"string"}},"skippedRows":{"description":"BESYD only","type":"array","items":{}}},"required":["isValid","missingFields","missingCropMappings"],"additionalProperties":false,"description":"Preflight of a federal export: missing org metadata (maintain it in the app under Settings → Export), unmapped crops and advisory field-data warnings (which do not block)."},"DbeInputOutput":{"type":"object","properties":{"crop":{"type":"string"},"yieldInT_perArea":{"nullable":true,"type":"number"},"soilType":{"nullable":true,"type":"string"},"humus":{"nullable":true,"type":"number"},"nMinLaw_perArea":{"nullable":true,"description":"Statutory Nmin (kg N/ha): entry, measured sample, planning value or the Land's Richtwert","type":"number"},"nMinLawSource":{"nullable":true,"type":"string","enum":["input","measured","planned","state"]},"nSupply_perArea":{"nullable":true,"type":"number"},"nMin_perArea":{"nullable":true,"type":"number"},"nMinSpring_perArea":{"nullable":true,"type":"number"},"prevCrop":{"nullable":true,"type":"string"},"hasZwischenfrucht":{"type":"boolean"},"zwischenfruchtCrop":{"nullable":true,"type":"string"},"nOrganicLastYear":{"nullable":true,"type":"number"},"nOrganicLastYearDeduction":{"nullable":true,"type":"number"},"nitrateSensitiveZone":{"type":"boolean"},"filmOrFleece":{"type":"boolean"}},"required":["crop","yieldInT_perArea","soilType","humus","nMinLaw_perArea","nMinLawSource","nSupply_perArea","nMin_perArea","nMinSpring_perArea","prevCrop","hasZwischenfrucht","zwischenfruchtCrop","nOrganicLastYear","nOrganicLastYearDeduction","nitrateSensitiveZone","filmOrFleece"],"additionalProperties":false,"description":"The effective calculation inputs after soil override and caller overrides"},"DbeResultOutput":{"type":"object","properties":{"nRequirementValue":{"type":"number","description":"DüV N requirement at reference yield (kg N/ha)"},"referenceYield":{"type":"number","description":"DüV reference yield (dt/ha)"},"farmYield":{"type":"number","description":"Farm yield used (dt/ha; dry matter for grassland)"},"farmYieldDtFM":{"description":"Farm yield as fresh matter (dt/ha); absent without a farm yield","type":"number"},"yieldSource":{"description":"reference: no farm yield, the DüV reference yield is the basis","type":"string","enum":["farm","reference"]},"grasslandTmFactor":{"nullable":true,"type":"number"},"yieldDifference":{"type":"number"},"yieldSurcharge":{"type":"number","description":"Yield correction (kg N/ha, negative = deduction)"},"nmin":{"type":"number","description":"Statutory Nmin deducted (kg N/ha, § 4 Abs. 4 DüV); 0 when none is known"},"nminSource":{"description":"missing: no Nmin could be determined and nothing was deducted; notApplicable: grassland","type":"string","enum":["supplied","missing","notApplicable"]},"upperBoundWithoutNmin":{"description":"true: without a Nmin, nFertilizerNeed is an upper bound before the Nmin deduction, not an N requirement","type":"boolean"},"humusDeduction":{"type":"number"},"orgPreviousYearDeduction":{"type":"number"},"previousCropDeduction":{"type":"number"},"catchCropDeduction":{"type":"number"},"foilSurcharge":{"type":"number"},"nFertilizerNeed":{"type":"number","description":"N fertilizer need before the nitrate-zone reduction (kg N/ha)"},"nitrateZoneReduction":{"type":"number","description":"20 % red-area cut applied (kg N/ha); 0 unless the field is flagged and the Land's rule is in force for the year or the farm confirmed it"},"nitrateZoneReductionIfInForce":{"description":"The 20 % cut as a planning value while the Land's rule is suspended or not determinable (kg N/ha); not applied","type":"number"},"redAreaNotDeterminable":{"description":"The field is flagged, but the legal status of the red-area rule is not determinable for its Land and year","type":"boolean"},"nFertilizerNeedFinal":{"type":"number","description":"Final N fertilizer need (kg N/ha)"},"isGrassland":{"type":"boolean"}},"required":["nRequirementValue","referenceYield","farmYield","grasslandTmFactor","yieldDifference","yieldSurcharge","nmin","humusDeduction","orgPreviousYearDeduction","previousCropDeduction","catchCropDeduction","foilSurcharge","nFertilizerNeed","nitrateZoneReduction","nFertilizerNeedFinal","isGrassland"],"additionalProperties":false,"description":"Düngebedarfsermittlung result per DüV Anlage 4 (all N values in kg N/ha)"},"DbeRedAreaBasisOutput":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"flagged":{"type":"boolean","description":"The field carries the red-area flag"},"federalState":{"nullable":true,"description":"The Land of the field","type":"string"},"federalStateSource":{"nullable":true,"type":"string","enum":["override","flik","region"]},"status":{"type":"string","enum":["enforced","suspended","withdrawn","unknown"],"description":"Status of the red-area rule the DBE used; only enforced applies the 20 % cut to a flagged field"},"ruleSet":{"type":"string"},"sourceUrl":{"type":"string"},"retrievedAt":{"type":"string"},"confirmation":{"description":"The farm's own statement that decided the status, where the rule table cannot determine it; no legal assessment by agmeo","type":"object","properties":{"federalState":{"type":"string"},"reductionApplies":{"type":"boolean"},"confirmedByName":{"type":"string"},"confirmedAt":{"type":"string"}},"required":["federalState","reductionApplies","confirmedByName","confirmedAt"],"additionalProperties":false}},"required":["year","flagged","federalState","federalStateSource","status","ruleSet","sourceUrl","retrievedAt"],"additionalProperties":false,"description":"Legal basis of the red-area rule (§ 13a Abs. 2 DüV) for the field's Land and Düngejahr"},"DbeSnapshotItemOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"snapshotAt":{"type":"string"},"userId":{"nullable":true,"type":"string"},"result":{"$ref":"#/components/schemas/DbeResultOutput"},"redAreaBasis":{"description":"Stored with the snapshot; absent on snapshots written before it existed","nullable":true,"allOf":[{"$ref":"#/components/schemas/DbeRedAreaBasisOutput"}]},"inputs":{"description":"Only with include=inputs","type":"object","additionalProperties":{}}},"required":["id","cultivationId","snapshotAt","userId","result"],"additionalProperties":false,"description":"Newest DBE snapshot of a cultivation"},"FertilizationStrategyOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"splitPercentages":{"type":"array","items":{"type":"number"},"description":"Share of the N need per application (%)"},"productFqns":{"nullable":true,"description":"Article fqn per application","type":"array","items":{"nullable":true,"type":"string"}},"isDefault":{"type":"boolean","description":"Platform default (not owned by the organization)"}},"required":["id","name","description","splitPercentages","productFqns","isDefault"],"additionalProperties":false,"description":"A fertilization split strategy"},"MarketPriceItemOutput":{"type":"object","properties":{"commodity":{"$ref":"#/components/schemas/MarketCommodityEnum"},"country":{"type":"string","description":"ISO 3166-1 alpha-2"},"price":{"type":"number","description":"Reference price"},"priceUnit":{"type":"string","description":"Always euro_t"},"quoteDate":{"type":"string","description":"Week the quote refers to (ISO yyyy-mm-dd)"},"source":{"type":"string","enum":["eu_agrifood","anthropic_search"]},"sourceUrl":{"nullable":true,"type":"string"}},"required":["commodity","country","price","priceUnit","quoteDate","source","sourceUrl"],"additionalProperties":false,"description":"Newest stored quote of a commodity in a country","example":{"commodity":"WHEAT_BREAD","country":"DE","price":214.5,"priceUnit":"euro_t","quoteDate":"2026-08-28","source":"eu_agrifood","sourceUrl":"https://agridata.ec.europa.eu/"}},"CaptureAnnotationResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"fieldId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cultivationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["note","photo","voice","receipt"]},"category":{"nullable":true,"type":"string"},"text":{"type":"string"},"gpsLat":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"gpsLon":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"gpsAccuracy":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"capturedAt":{"type":"string"},"photoKeys":{"type":"array","items":{"type":"string"}},"details":{"nullable":true},"createdBy":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"deletedAt":{"nullable":true,"type":"string"},"deleted":{"description":"Present on delta-sync tombstones","type":"boolean","enum":[true]}},"required":["id","orgId","fieldId","cultivationId","kind","category","text","gpsLat","gpsLon","gpsAccuracy","capturedAt","photoKeys","details","createdBy","createdAt","updatedAt","deletedAt"],"additionalProperties":false,"title":"CaptureAnnotationResponse","description":"A mobile capture item: note, photo set, voice memo or receipt scan."},"LiveLocationPointOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Client-generated idempotency key"},"lat":{"type":"number","minimum":-90,"maximum":90},"lon":{"type":"number","minimum":-180,"maximum":180},"timestamp":{"description":"Client capture time of the GPS fix","type":"string"},"speedKmh":{"nullable":true,"type":"number","minimum":0},"heading":{"nullable":true,"type":"number","minimum":0,"maximum":360},"accuracy":{"description":"Horizontal accuracy in meters","nullable":true,"type":"number","minimum":0},"machineId":{"description":"Machine the driver selected; null/absent = not on a machine","nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"}},"required":["id","lat","lon","timestamp"],"additionalProperties":false,"title":"LiveLocationPoint","description":"One driver GPS fix from the agmeo-field app."},"SavedLocationResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"name":{"type":"string"},"categoryId":{"nullable":true,"type":"string"},"categoryName":{"nullable":true,"type":"string"},"categoryColor":{"nullable":true,"type":"string"},"lat":{"type":"number","minimum":-140737488355328,"maximum":140737488355327},"lon":{"type":"number","minimum":-140737488355328,"maximum":140737488355327},"createdBy":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string","description":"Delta-sync cursor for ?since="},"deletedAt":{"nullable":true,"type":"string"},"deleted":{"description":"Present on delta-sync tombstones","type":"boolean","enum":[true]}},"required":["id","orgId","name","categoryId","categoryName","categoryColor","lat","lon","createdBy","createdAt","updatedAt","deletedAt"],"additionalProperties":false,"title":"SavedLocationResponse","description":"A map bookmark saved in the agmeo-field app, with its denormalized category snapshot."},"OperationDraftOutput":{"type":"object","properties":{"kind":{"type":"string","enum":["operation","observation","note"],"description":"operation = an action performed (spraying, fertilizing, sowing, tillage, harvest, irrigation); observation = a field observation; note = anything else worth recording"},"fieldName":{"nullable":true,"description":"Field/Schlag name exactly as spoken","type":"string"},"category":{"nullable":true,"type":"string","enum":["plantProtection","fertilization","sowing","tillage","harvest","irrigation","other"]},"articleName":{"nullable":true,"description":"Product/article as spoken, not catalog-normalized","type":"string"},"quantity":{"nullable":true,"description":"Application rate (or harvest yield) per hectare in `unit` — always metric","type":"number"},"unit":{"nullable":true,"description":"Canonical transaction unit id (l_ha, kg_ha, t_ha, pieces_ha; cbm_ha = irrigation water, 1 mm = 10 m³/ha). Drafts written before 2026-10-28 carry the spike spellings l/ha, kg/ha, t/ha, stk/ha (stk/ha = pieces_ha).","type":"string","enum":["l_ha","kg_ha","t_ha","pieces_ha","cbm_ha","l/ha","kg/ha","t/ha","stk/ha"]},"bbch":{"nullable":true,"type":"integer","minimum":0,"maximum":99},"partialArea":{"type":"boolean","description":"true only for an explicit partial-area reference"},"partialAreaHa":{"nullable":true,"description":"Partial area in ha (acres converted server-side)","type":"number"},"windMs":{"nullable":true,"description":"Wind speed in m/s (mph, km/h converted server-side)","type":"number"},"tempC":{"nullable":true,"description":"Air temperature in °C (°F converted server-side)","type":"number"},"date":{"nullable":true,"description":"'heute', 'gestern', or an ISO date (YYYY-MM-DD) — resolve relative dates on-device","type":"string"},"operatorHint":{"nullable":true,"type":"string"},"freeText":{"type":"string","description":"Everything relevant the structured fields do not capture"},"missing":{"type":"array","items":{"type":"string"},"description":"Draft field names the farmer must still confirm — render as quick-pickers"},"confidence":{"type":"string","enum":["high","medium","low"],"description":"high => 1-tap confirm; medium => confirm + fill missing; low => show transcript, full review"},"spokenQuantity":{"description":"The rate as dictated (e.g. 32 'fl oz/ac') when it was not said in the stored unit. With quantity null it could not be converted (bu/ac without a spoken crop or a crop on the memo's field, a depth outside irrigation): convert it on the device once the crop is known, or ask.","type":"object","properties":{"value":{"type":"number"},"unit":{"type":"string"}},"required":["value","unit"],"additionalProperties":false}},"required":["kind","fieldName","category","articleName","quantity","unit","bbch","partialArea","partialAreaHa","windMs","tempC","date","operatorHint","freeText","missing","confidence"],"additionalProperties":false,"title":"OperationDraft","description":"Structured draft extracted from a farmer's voice dictation. All 16 keys are always present; unknown values are null; values are canonical metric whatever unit was dictated. Gate the confirm UX on missing[] and confidence."},"VoiceDraftResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"orgId":{"type":"string"},"annotationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"The voice CaptureAnnotation this draft belongs to"},"status":{"type":"string","enum":["pending","transcribing","draft","confirmed","rejected","failed"]},"transcript":{"nullable":true,"description":"Raw STT transcript of the voice memo","type":"string"},"draft":{"nullable":true,"description":"Set once status is draft/confirmed/rejected","allOf":[{"$ref":"#/components/schemas/OperationDraftOutput"}]},"missing":{"nullable":true,"type":"array","items":{"type":"string"}},"confidence":{"nullable":true,"type":"string","enum":["high","medium","low"]},"error":{"nullable":true,"description":"Failure reason when status is failed","type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","orgId","annotationId","status","transcript","draft","missing","confidence","error","createdAt","updatedAt"],"additionalProperties":false,"title":"VoiceDraftResponse","description":"One voice memo's trip through the transcription pipeline: transcript, extracted OperationDraft and confirm/reject state. Produced by the server-side worker after the audio upload finished."},"CropResponseOutput":{"type":"object","properties":{"name":{"type":"string"},"sowingCatagory":{"$ref":"#/components/schemas/SowingCategoryEnum"},"harvestCatagory":{"$ref":"#/components/schemas/HarvestCategoryEnum"},"isSecondary":{"type":"boolean"}},"required":["name","sowingCatagory","harvestCatagory","isSecondary"],"additionalProperties":false,"description":"A crop definition","example":{"name":"winterWheat","sowingCatagory":"SMALL_GRAINS","harvestCatagory":"HARVEST_GRAIN","isSecondary":false}},"CropVarietyResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"crop":{"type":"string"},"name":{"type":"string"},"type":{"nullable":true,"type":"string"}},"required":["id","crop","name"],"additionalProperties":false,"description":"A crop variety","example":{"id":"123e4567-e89b-12d3-a456-426614174000","crop":"winterWheat","name":"Absint","type":"A"}},"CultivationGroupResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"ownerId":{"type":"string"},"name":{"type":"string"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"crop":{"type":"string"},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"isSecondaryOf":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"secondaryCropType":{"nullable":true,"type":"string","enum":["INTERCROP","UNDERSOW"]}},"required":["id","ownerId","name","year","crop","templateId"],"additionalProperties":false,"description":"A cultivation group representing a crop year for a set of fields","example":{"id":"123e4567-e89b-12d3-a456-426614174000","ownerId":"org_abc123","name":"Winter Wheat 2025","year":2025,"crop":"winterWheat","templateId":"456e7890-e89b-12d3-a456-426614174000","isSecondaryOf":null,"secondaryCropType":null}},"CultivationResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"cultivationGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"geometry":{"nullable":true,"description":"Boundary of the cultivation as a bare GeoJSON geometry; null without a boundary","anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"mgrs":{"type":"array","items":{"type":"string"}},"utmZone":{"type":"array","items":{"type":"string"}},"areaInHa":{"type":"number","x-unit":"ha"},"derivedFromFieldId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"variety":{"description":"Catalogue UUID of the variety (CropVarieties id, see GET /crop-varieties) — not its name, which GET /fields returns","nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"usage":{"type":"string","enum":["COMMERCIAL","SEED_MULTIPLICATION"],"description":"COMMERCIAL (market production) or SEED_MULTIPLICATION (certified seed production)"},"seedLot":{"nullable":true,"description":"Seed lot of a seed multiplication, null otherwise","type":"string"},"multiplicationGeneration":{"nullable":true,"description":"Multiplication generation of a seed multiplication, null otherwise","type":"string"},"crop":{"description":"Denormalized from the cultivation group","type":"string"},"year":{"description":"Denormalized from the cultivation group","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","cultivationGroupId","geometry","mgrs","utmZone","areaInHa","usage","seedLot","multiplicationGeneration"],"additionalProperties":false,"description":"A cultivation representing a field instance in a specific cultivation group"},"TechnologyResponseOutput":{"type":"object","properties":{"fqn":{"type":"string"},"cropId":{"type":"string"}},"required":["fqn","cropId"],"additionalProperties":false,"description":"A technology representing a management approach for a crop"},"TemplateResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"ownerId":{"type":"string"},"name":{"type":"string"},"crop":{"type":"string"},"technology":{"type":"string"}},"required":["id","ownerId","name","crop","technology"],"additionalProperties":false,"description":"A management template for cultivations"},"TemplateTransactionResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"operationCategory":{"type":"string"},"modifiedOrAdded":{"nullable":true,"type":"string","enum":["MODIFIED","ADDED"]},"date":{"type":"string"},"frequency":{"type":"number"},"articleId":{"type":"string"},"actionOrProduct":{"type":"string","enum":["ACTION","PRODUCT"]},"details":{"nullable":true},"diesel":{"type":"number"},"electricity":{"nullable":true,"type":"number"},"quantity":{"type":"number"},"unit":{"type":"string"},"co2":{"nullable":true,"type":"number"},"services":{"nullable":true,"type":"number"},"hours":{"nullable":true,"type":"number"},"materials":{"nullable":true,"type":"number"},"repairs":{"nullable":true,"type":"number"}},"required":["id","templateId","operationId","operationCategory","date","frequency","articleId","actionOrProduct","diesel","quantity","unit"],"additionalProperties":false,"description":"A template transaction representing an operation in a template"},"CropRotationResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"name":{"type":"string"},"ownerId":{"type":"string"},"createdAt":{"type":"string"},"entries":{"type":"array","items":{"$ref":"#/components/schemas/CropRotationEntryResponseOutput"}}},"required":["id","name","ownerId","createdAt"],"additionalProperties":false,"description":"A crop rotation with its entries"},"CropRotationEntryResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"cropRotationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"crop":{"type":"string"},"templateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"yieldExpectationInTpHa":{"nullable":true,"type":"number"},"cropResidueLeft":{"type":"boolean"},"secondaryCrop":{"nullable":true,"type":"string"},"secondaryCropTemplateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"secondaryCropHarvested":{"nullable":true,"type":"boolean"}},"required":["id","cropRotationId","sortOrder","crop","templateId","cropResidueLeft"],"additionalProperties":false,"description":"A crop rotation entry representing a crop in the rotation sequence"},"ArticleResponseOutput":{"type":"object","properties":{"fqn":{"type":"string"},"name":{"nullable":true,"type":"string"},"actionOrProduct":{"$ref":"#/components/schemas/ArticleActionOrProductEnum"},"operationCategory":{"type":"string"},"actionCategory":{"type":"string"},"machineId":{"nullable":true,"type":"string"},"appliesTo":{"$ref":"#/components/schemas/AppliesToEnum"},"price":{"description":"Default price in `currency` per `priceUnit`. A system article's EUR catalogue price is converted for a European organization (ECB reference rates, rounded to 3 significant digits) and null for any other or when no rate is known — the farmer enters their own. An organization article's price is returned as entered.","nullable":true,"type":"number"},"priceUnit":{"description":"Price unit id (e.g. euro_t = organization currency per tonne), see GET /api/units/price.","nullable":true,"type":"string"},"currency":{"type":"string","description":"ISO-4217 currency of `price`: the organization's effective currency (see /settings/display)."},"dryMatterContent":{"nullable":true,"type":"number"},"humus":{"nullable":true,"type":"number"},"convTtoCbm":{"nullable":true,"type":"number"},"nEffectiveness":{"nullable":true,"type":"number"},"n":{"nullable":true,"type":"number"},"nh4":{"nullable":true,"type":"number"},"p2o5":{"nullable":true,"type":"number"},"k":{"nullable":true,"type":"number"},"k2o":{"nullable":true,"type":"number"},"mgo":{"nullable":true,"type":"number"},"limeEffectPer100Kg":{"nullable":true,"type":"number"},"kgNper100L":{"nullable":true,"type":"number"},"category":{"nullable":true,"type":"string"},"isHarvestProduct":{"type":"boolean"},"isSystemArticle":{"type":"boolean"}},"required":["fqn","actionOrProduct","operationCategory","actionCategory","appliesTo","currency","isHarvestProduct","isSystemArticle"],"additionalProperties":false,"description":"An article representing a product or action used in field operations"},"ArticleMetadataResponseOutput":{"type":"object","properties":{"uuid":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"articleId":{"type":"string"},"manufacturer":{"nullable":true,"type":"string"},"website":{"nullable":true,"type":"string"},"fileKey":{"nullable":true,"type":"string"},"metadata":{"nullable":true},"createdAt":{"type":"string"},"createdBy":{"type":"string"}},"required":["uuid","articleId","createdAt","createdBy"],"additionalProperties":false,"description":"Metadata associated with an article"},"CreateArticleMetadataRequestOutput":{"type":"object","properties":{"manufacturer":{"type":"string"},"website":{"type":"string"},"fileKey":{"type":"string"},"metadata":{}},"additionalProperties":false,"description":"Request body for creating article metadata"},"WarehouseStockEntryResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"articleId":{"type":"string","description":"Stable product key resolved from the polymorphic reference: Article fqn (e.g. FERTILIZER.KAS), PSM kennr, or CropVariety uuid. Group/aggregate by this key."},"articleName":{"type":"string","description":"Display-ready product name resolved server-side (Article customName, PSM mittelname, or variety name; falls back to the key)."},"direction":{"$ref":"#/components/schemas/WarehouseDirectionEnum"},"quantity":{"type":"number"},"unit":{"type":"string"},"bookedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Booking timestamp (ISO datetime)"},"pricePerUnitNet":{"nullable":true,"type":"number"},"supplier":{"nullable":true,"type":"string"},"invoiceNumber":{"nullable":true,"type":"string"},"storageLocation":{"nullable":true,"type":"string"},"expiryDate":{"nullable":true,"description":"YYYY-MM-DD, null when the article does not expire","type":"string"}},"required":["id","articleId","articleName","direction","quantity","unit","bookedAt","pricePerUnitNet","supplier","invoiceNumber","storageLocation","expiryDate"],"additionalProperties":false,"description":"One warehouse stock booking (non-voided). Stock balance per article = Σ IN − OUT − OPERATION."},"OrgArticlePriceResponseOutput":{"type":"object","properties":{"articleId":{"type":"string"},"year":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"price":{"type":"number","minimum":-140737488355328,"maximum":140737488355327},"priceUnit":{"type":"string"}},"required":["articleId","year","price","priceUnit"],"additionalProperties":false,"description":"A per-organization price override for an article (by fqn) in a given harvest year"},"QuantityUnitResponseOutput":{"type":"object","properties":{"name":{"type":"string"},"category":{"$ref":"#/components/schemas/QuantityUnitCategoryEnum"},"description":{"nullable":true,"type":"string"}},"required":["name","category"],"additionalProperties":false,"description":"A quantity unit used for measuring amounts"},"PriceUnitResponseOutput":{"type":"object","properties":{"name":{"type":"string"},"category":{"$ref":"#/components/schemas/PriceUnitCategoryEnum"},"description":{"nullable":true,"type":"string"}},"required":["name","category"],"additionalProperties":false,"description":"A price unit used for monetary values"},"UnitConversionResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"quantityUnit":{"nullable":true,"type":"string"},"priceUnit":{"nullable":true,"type":"string"},"factor":{"type":"number"}},"required":["id","factor"],"additionalProperties":false,"description":"A conversion factor between quantity and price units"},"FileResponseOutput":{"type":"object","properties":{"fileKey":{"type":"string"},"organizationId":{"type":"string"},"name":{"type":"string"},"year":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":{"nullable":true,"type":"string"},"mimeType":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"creationTime":{"type":"string"}},"required":["fileKey","organizationId","name","mimeType","size","creationTime"],"additionalProperties":false,"description":"A user-uploaded file"},"FileFolderResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"name":{"type":"string"},"parentId":{"nullable":true,"description":"null = top level","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"systemKey":{"nullable":true,"description":"Set for app-managed folders, null for user folders. applicationMaps, exports, imports and reports are the ones GET /files?systemFolder= filters by; others (chat, chatMaps, chatReports, knowledge, projects, soil, soilImports, soilExports) belong to single features","type":"string"},"creationTime":{"type":"string"}},"required":["id","name","parentId","systemKey","creationTime"],"additionalProperties":false,"description":"A folder of the org's file storage"},"ImportJobListItemOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"title":{"nullable":true,"type":"string"},"source":{"type":"string"},"status":{"$ref":"#/components/schemas/ImportJobStatusEnum"},"summary":{"nullable":true,"description":"Per-action counts after commit, e.g. {\"field:create\": 12, \"operation:update\": 3}; null until committed","type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"requestId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"createdAt":{"type":"string"},"committedAt":{"nullable":true,"type":"string"}},"required":["id","title","source","status","summary","requestId","createdAt","committedAt"],"additionalProperties":false,"description":"One import job in the journal listing"},"ImportPlanRecordOutput":{"type":"object","properties":{"entity":{"$ref":"#/components/schemas/ImportEntityEnum"},"stagedIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Index into the staged entity array — stable across plan/commit"},"action":{"$ref":"#/components/schemas/ImportRecordActionEnum"},"matchedBy":{"description":"Which pass matched: \"externalRef\" | \"matchHint\" | \"name+parcelId\" | \"name+flik\" | \"name\" | …","nullable":true,"type":"string"},"targetId":{"description":"Existing entity the record matched (update/status-change/skip)","nullable":true,"type":"string"},"externalRef":{"nullable":true,"type":"string"},"sourceRef":{"description":"Caller provenance, e.g. \"Bewässerung2025.xlsx!B14\"","nullable":true,"type":"string"},"changes":{"nullable":true,"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"old":{},"new":{}},"required":["field","old","new"],"additionalProperties":false}},"warnings":{"nullable":true,"type":"array","items":{"type":"string"}},"reason":{"description":"Why the record is a conflict/invalid/skip","nullable":true,"type":"string"},"operationId":{"description":"Operations only: the existing operation a created row joins — its operationRef group partly exists already","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"}},"required":["entity","stagedIndex","action"],"additionalProperties":false,"description":"One row of the dry-run diff"},"ImportJobRecordOutput":{"type":"object","properties":{"entity":{"$ref":"#/components/schemas/ImportEntityEnum"},"stagedIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Index into the staged entity array — stable across plan/commit"},"action":{"$ref":"#/components/schemas/ImportRecordActionEnum"},"matchedBy":{"description":"Which pass matched: \"externalRef\" | \"matchHint\" | \"name+parcelId\" | \"name+flik\" | \"name\" | …","nullable":true,"type":"string"},"targetId":{"description":"Existing entity the record matched (update/status-change/skip)","nullable":true,"type":"string"},"externalRef":{"nullable":true,"type":"string"},"sourceRef":{"description":"Caller provenance, e.g. \"Bewässerung2025.xlsx!B14\"","nullable":true,"type":"string"},"changes":{"nullable":true,"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"old":{},"new":{}},"required":["field","old","new"],"additionalProperties":false}},"warnings":{"nullable":true,"type":"array","items":{"type":"string"}},"reason":{"description":"Why the record is a conflict/invalid/skip","nullable":true,"type":"string"},"outcome":{"nullable":true,"description":"Filled during commit; null until commit ran","type":"string","enum":["applied","failed","skipped"]},"outcomeError":{"nullable":true,"type":"string"}},"required":["entity","stagedIndex","action","outcome","outcomeError"],"additionalProperties":false,"description":"Journal row of the latest plan, with its commit outcome"},"ImportChunkSourceOutput":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"1-based order of the staging call"},"kind":{"type":"string","enum":["inline","file","url"]},"fileKey":{"type":"string"},"url":{"description":"origin + path; the query (signature) is never stored","type":"string"},"name":{"type":"string"},"sha256":{"type":"string","description":"file / url: hash of the bytes (idempotency key); inline: hash of the staged records"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"format":{"type":"string","enum":["json","ndjson"]},"added":{"$ref":"#/components/schemas/ImportStagedCounts"},"chunks":{"type":"array","items":{"type":"object","properties":{"sha256":{"type":"string","description":"Hash of this chunk's records; a re-sent chunk is skipped"},"records":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lines":{"description":"First and last NDJSON line of the chunk's records","type":"array","items":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}]},"minItems":2,"maxItems":2}},"required":["sha256","records"],"additionalProperties":false}},"stagedAt":{"type":"string"},"stagedByUserId":{"nullable":true,"type":"string"}},"required":["seq","kind","sha256","added","chunks","stagedAt","stagedByUserId"],"additionalProperties":false,"description":"Staging journal entry: where one POST …/chunks call's records came from"},"ImportRequestFileOutput":{"type":"object","properties":{"fileKey":{"type":"string"},"name":{"type":"string"},"sizeKb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mimeType":{"type":"string"},"path":{"type":"string","description":"Path relative to the Imports folder (\"\" for direct children)"}},"required":["fileKey","name","sizeKb","mimeType","path"],"additionalProperties":false,"description":"A file in the org's Imports folder"},"ImportRequestLiveFileOutput":{"type":"object","properties":{"fileKey":{"type":"string"},"name":{"type":"string"},"sizeKb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mimeType":{"type":"string"},"path":{"type":"string","description":"Path relative to the Imports folder (\"\" for direct children)"},"downloadUrl":{"type":"string","format":"uri","description":"Presigned GET URL — plain HTTP download, no Clerk session needed"},"downloadExpiresInSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["fileKey","name","sizeKb","mimeType","path","downloadUrl","downloadExpiresInSeconds"],"additionalProperties":false,"description":"Current Imports-folder file with a short-lived download URL"},"ImportLearningOutput":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/ImportLearningKindEnum"},"entity":{"description":"Contract entity or table the gap concerns, e.g. \"fieldGroups\", \"machines\"","type":"string","maxLength":100},"description":{"type":"string","minLength":1,"maxLength":2000},"sourceRef":{"type":"string","maxLength":500}},"required":["kind","description"],"additionalProperties":false,"description":"Something fulfilment hit that the product does not cover yet — roadmap input for the import contract"},"ImportResultSummaryOutput":{"type":"object","properties":{"created":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":9007199254740991}},"updated":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":9007199254740991}},"skipped":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":9007199254740991}},"notImported":{"type":"array","items":{"type":"object","properties":{"item":{"type":"string","maxLength":300},"reason":{"type":"string","maxLength":1000}},"required":["item","reason"],"additionalProperties":false},"description":"Source items deliberately not imported, with a customer-facing reason"},"note":{"description":"Free text for the requester, in the requester's language when possible","type":"string","maxLength":4000}},"required":["created","updated","skipped","notImported"],"additionalProperties":false,"description":"Outcome shown to the requester (e-mail + in-app dialog); counts are per entity kind"},"ImportRequestResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"orgId":{"type":"string"},"status":{"$ref":"#/components/schemas/ImportRequestStatusEnum"},"requestedBy":{"type":"object","properties":{"userId":{"type":"string"},"email":{"nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"}},"required":["userId","email","name"],"additionalProperties":false},"locale":{"nullable":true,"description":"Requester's UI language at request time (drives the result e-mail)","type":"string"},"host":{"nullable":true,"type":"string"},"env":{"type":"string","enum":["prod","staging"],"description":"Deployment the request was filed on (derived from host): prod = agmeo.com / bat-agrar.de, staging = beta-testing and everything else. Fulfil against the matching API (and database) only."},"notes":{"nullable":true,"type":"string"},"files":{"type":"array","items":{"$ref":"#/components/schemas/ImportRequestFileOutput"},"description":"Imports-folder snapshot at request time"},"connectors":{"type":"array","items":{"type":"string"},"description":"Provider ids of OAuth/credential connections the org had at request time"},"assigneeEmail":{"nullable":true,"type":"string"},"assigneeNote":{"nullable":true,"type":"string"},"importJobIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"}},"resultSummary":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/ImportResultSummaryOutput"}]},"learnings":{"type":"array","items":{"$ref":"#/components/schemas/ImportLearningOutput"}},"failureReason":{"nullable":true,"type":"string"},"toolshedTicket":{"nullable":true,"description":"Mirror ticket number in toolshed (internal.agvolution.com)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestedAt":{"type":"string"},"startedAt":{"nullable":true,"type":"string"},"doneAt":{"nullable":true,"type":"string"},"acknowledgedAt":{"nullable":true,"description":"Requester dismissed the in-app 'import ready' dialog","type":"string"},"notifiedAt":{"nullable":true,"description":"Requester e-mail sent","type":"string"}},"required":["id","orgId","status","requestedBy","locale","host","env","notes","files","connectors","assigneeEmail","assigneeNote","importJobIds","resultSummary","learnings","failureReason","toolshedTicket","requestedAt","startedAt","doneAt","acknowledgedAt","notifiedAt"],"additionalProperties":false,"description":"An AI-import request: the customer's files + notes and the fulfilment state"},"SoilMapZoneResponseOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"soilMapId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"soilTypeLUFA":{"$ref":"#/components/schemas/SoilTypeLUFAEnum"},"soilOrganicCarbon":{"type":"number"},"properties":{"nullable":true},"geometry":{},"areaFraction":{"type":"number"}},"required":["id","soilMapId","soilTypeLUFA","soilOrganicCarbon","geometry","areaFraction"],"additionalProperties":false,"description":"A zone within a soil map"},"CropCalendarCultivationEntryOutput":{"type":"object","properties":{"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"The cultivation this entry represents. A field can carry several cultivations (sub-fields) in the same year, so this — not field+year+crop — identifies the entry."},"crop":{"type":"string","enum":["silageMaize","winterWheat","canola","sugarBeet","winterBarleyFodder","springBarleyMalting","springOatsFodder","springWheatFodder","winterRyeBaking","fieldGrassWiltedSilage","permanentGrasslandWiltedSilage","potatoTableLate","peasDry","peasDryFodder","triticaleFodder","broadBeans","sunflower","grassSeed","hardWheat","grainMaize","soybeanBeans","cerealRyeIntercrop","mustardIntercrop","oilRadishIntercrop","persianCloverIntercrop","phaceliaIntercrop","ryeWholePlantSilage","lupine","spelt","landscapeFeature","nonProductiveArea","alfalfa","winterOats","springRye","springTriticale","springCanola","springDurum","winterBroadBeans","winterPeas","potatoStarch","seedPotato","potatoTableEarly","cornCobMix","maizeBiogas","sorghum","buckwheat","millet","lentils","chickpeas","linseed","hemp","poppy","fodderBeet","vetch","quinoa","emmer","einkorn","clover","cloverGrass","alfalfaGrass","intercropMixture","blackOatIntercrop","vetchIntercrop","crimsonCloverIntercrop","alexandrineCloverIntercrop","buckwheatIntercrop","sunflowerIntercrop","nigerIntercrop","sorghumIntercrop","linseedIntercrop","camelinaIntercrop","serradellaIntercrop","ryegrassUndersow","cloverGrassUndersow","onion","garlic","leek","carrot","whiteCabbage","redCabbage","savoyCabbage","cauliflower","broccoli","kale","kohlrabi","brusselsSprouts","chineseCabbage","lettuce","lambsLettuce","spinach","beetroot","celeriac","fennel","endive","bushBeans","sweetCorn","pumpkin","cucumber","tomato","bellPepper","asparagus","strawberry","hops","grapevine","rhubarb","pomeFruit","stoneFruit","rice","cowpeas","dryBeans","grainSorghum","foxtailMillet","pearlMillet","fallow","springCerealMixture","cerealLegumeMixture","legumeMixture","amaranth","otherCereals","otherLegumes","otherOilseeds","crambe","camelina","swede","fenugreek","birdsfootTrefoil","sainfoin","serradella","sweetClover","meadowOrchard","jerusalemArtichoke","sweetPotato","otherVegetables","brassicaVegetables","turnip","brownMustard","watercress","rucola","gardenCress","radish","grainMustard","eggplant","belladonna","melon","watermelon","alliumVegetables","orache","sorrel","parsnip","horseradish","scorzonera","artichoke","otherHerbs","dill","chervil","anise","caraway","cumin","blackCumin","coriander","lovage","parsley","basil","rosemary","sage","borage","oregano","savory","hyssop","verbena","lavender","thyme","lemonBalm","gentian","mint","artemisia","calendula","echinacea","ribwortPlantain","chamomile","yarrow","valerian","stJohnsWort","ladysMantle","milkThistle","goatsRue","dandelion","angelica","mallow","arnica","turfGrass","woad","canaryGrass","tobacco","safflower","nettle","madder","ornamentalPlants","phaceliaMainCrop","otherEnergyCrops","silphium","virginiaMallow","knotweed","switchgrass","miscanthus","szarvasiGrass","reedCanaryGrass","otherFruit","bushBerries","seaBuckthorn","hazelnut","walnut","otherNuts","treeNursery","shortRotationCoppice","poplarCoppice","willowCoppice","otherPermanentCrops","christmasTrees","mushrooms","greenManure","otherArableCrops","unknownCrop"]},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Harvest year. A crop sown in the autumn — a winter cereal, or a cover crop drilled after the previous harvest — belongs to the year it is harvested or the year of the main crop it precedes, not the year it was sown. So a cover crop sown in August 2026 has year 2027 and its sowingDate lies in 2026."},"varietyName":{"nullable":true,"type":"string"},"usage":{"type":"string","enum":["COMMERCIAL","SEED_MULTIPLICATION"],"description":"COMMERCIAL (market production) or SEED_MULTIPLICATION (certified seed production)"},"seedLot":{"nullable":true,"description":"Seed lot of a seed multiplication, null otherwise","type":"string"},"multiplicationGeneration":{"nullable":true,"description":"Multiplication generation of a seed multiplication, null otherwise","type":"string"},"isPrimary":{"type":"boolean"},"secondaryCropType":{"nullable":true,"description":"Set on secondary cultivations (intercrop or undersow) grown under the year's main crop","type":"string","enum":["INTERCROP","UNDERSOW"]},"sowingDate":{"nullable":true,"format":"date","type":"string"},"harvestDate":{"nullable":true,"format":"date","type":"string"},"templateId":{"nullable":true,"description":"The ID of the template used for this cultivation","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"templateName":{"nullable":true,"description":"The name of the template used for this cultivation","type":"string"},"areaInHa":{"type":"number","description":"The cultivated area in hectares"}},"required":["cultivationId","crop","year","varietyName","usage","seedLot","multiplicationGeneration","isPrimary","secondaryCropType","sowingDate","harvestDate","templateId","templateName","areaInHa"],"additionalProperties":false,"description":"A cultivation entry representing crop data for a specific year","example":{"cultivationId":"223e4567-e89b-12d3-a456-426614174000","crop":"winterWheat","year":2025,"varietyName":"Absint","usage":"COMMERCIAL","seedLot":null,"multiplicationGeneration":null,"isPrimary":true,"secondaryCropType":null,"sowingDate":"2024-10-15","harvestDate":"2025-07-20","templateId":"123e4567-e89b-12d3-a456-426614174000","templateName":"Winter Wheat Standard","areaInHa":12.5}},"CropCalendarFieldEntryOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"name":{"type":"string"},"areaInHa":{"type":"number","description":"The field area in hectares"},"flik":{"nullable":true,"type":"string"},"parcelId":{"nullable":true,"type":"string"},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"cultivations":{"type":"array","items":{"$ref":"#/components/schemas/CropCalendarCultivationEntryOutput"}}},"required":["id","name","areaInHa","flik","parcelId","geometry","cultivations"],"additionalProperties":false,"description":"A field with its cultivation history for the crop calendar","example":{"id":"123e4567-e89b-12d3-a456-426614174000","name":"North Field","areaInHa":12.5,"flik":"DEBYXXX123456789","parcelId":"12345","geometry":{"type":"Polygon","coordinates":[[[13,49],[14,49],[14,50],[13,50],[13,49]]]},"cultivations":[{"cultivationId":"223e4567-e89b-12d3-a456-426614174000","crop":"winterWheat","year":2025,"varietyName":"Absint","usage":"COMMERCIAL","seedLot":null,"multiplicationGeneration":null,"isPrimary":true,"secondaryCropType":null,"sowingDate":"2024-10-15","harvestDate":"2025-07-20","templateId":"123e4567-e89b-12d3-a456-426614174000","templateName":"Winter Wheat Standard","areaInHa":12.5}]}},"RasterContinuousStatsOutput":{"type":"object","properties":{"statistics":{"type":"object","properties":{"mean":{"type":"number","example":8.42},"median":{"type":"number","example":8.1},"stddev":{"type":"number","example":2.3},"q20":{"type":"number","example":6,"description":"20th percentile"},"q80":{"type":"number","example":10.5,"description":"80th percentile"}},"required":["mean","median","stddev","q20","q80"],"additionalProperties":false}},"required":["statistics"],"additionalProperties":false,"description":"Zonal statistics for continuous raster layers (e.g. twi, erosion-risk, drought-risk)."},"RasterCategoricalDistributionOutput":{"type":"object","properties":{"distribution":{"type":"object","additionalProperties":{"type":"number"},"description":"Category label → percentage (0–100)","example":{"Valley":12.5,"Flat":45,"Mid Slope":30,"Ridge":12.5}}},"required":["distribution"],"additionalProperties":false,"description":"Percentage distribution for categorical raster layers (e.g. terrain-class, ylri-dominant-factor)."},"WaterBalanceDaySchemaOutput":{"type":"object","properties":{"date":{"type":"string","description":"Day (ISO yyyy-mm-dd)"},"swc":{"type":"number","description":"Soil water content (mm)"},"eta":{"type":"number","description":"Actual evapotranspiration ETa = Kc × ET0 (mm)"},"precipitation":{"type":"number","description":"Precipitation (mm)"},"irrigation":{"type":"number","description":"Irrigation applied (mm)"},"drainage":{"type":"number","description":"Drainage below the root zone (mm)"},"deficit":{"type":"number","description":"Water deficit = field capacity − SWC (mm)"},"forecast":{"description":"Present and true on days after today — simulated from the weather forecast, not observations","type":"boolean"}},"required":["date","swc","eta","precipitation","irrigation","drainage","deficit"],"additionalProperties":false,"description":"One simulated day of the FAO-56 field water balance. All values in mm.","example":{"date":"2026-06-10","swc":52.3,"eta":3.1,"precipitation":0,"irrigation":20,"drainage":0,"deficit":14.7}},"IrrigationRecommendationSchemaOutput":{"type":"object","properties":{"status":{"type":"string","enum":["due","upcoming","none","missing_data"],"description":"due = trigger crossed today; upcoming = crossing expected within the 7-day forecast horizon; none = no crossing in sight; missing_data = soil/weather insufficient"},"triggerDate":{"description":"ISO date the deficit trigger is (expected to be) crossed","type":"string"},"daysUntil":{"description":"Days until the trigger is crossed; 0 = due today","type":"number"},"doseMm":{"description":"Recommended dose (mm), rounded to 5, clamped to 10–35","type":"number"},"deficitMm":{"description":"Today's deficit (mm below FC)","type":"number"},"nfkPct":{"description":"Today's plant-available water as % nFK (0–100)","type":"number"},"triggerMm":{"description":"Absolute trigger deficit (mm): 50 % of AWC, 40 % in sensitive BBCH windows","type":"number"},"reasons":{"description":"Reason codes (open set): deficit_below_trigger, rain_expected, heat_stress_ahead, sensitive_stage","type":"array","items":{"type":"string"}},"heatStressDays":{"description":"Forecast dates (within the horizon) with Tmax at/above the crop's heat-stress threshold","type":"array","items":{"type":"string"}},"bbchStage":{"description":"Last BBCH stage of the Kc curve — from the weather-responsive phenology model when it covers the crop, otherwise estimated from the static FAO-56 crop calendar","type":"number"}},"required":["status"],"additionalProperties":false,"description":"Irrigation timing + quantity recommendation derived from the forecast tail of the water-balance series. The base trigger (50 % AWC depletion) equals the deficitLevel ok/warning boundary, so the badge and the recommendation never disagree.","example":{"status":"upcoming","triggerDate":"2026-06-13","daysUntil":3,"doseMm":25,"deficitMm":21.4,"nfkPct":58,"triggerMm":25.6,"reasons":["heat_stress_ahead"],"heatStressDays":["2026-06-14"],"bbchStage":65}},"IrrigationTransactionSchemaOutput":{"type":"object","properties":{"id":{"type":"string","description":"Transaction id of the irrigation action"},"operationId":{"type":"string","description":"Groups the action + water product rows of one irrigation event"},"date":{"type":"string","description":"Date of the irrigation event (ISO yyyy-mm-dd)"},"quantityMm":{"type":"number","description":"Irrigation water applied (mm)"},"actionFqn":{"nullable":true,"description":"Irrigation method article fqn (e.g. IRRIGATION_METHOD__SPRINKLER)","type":"string"},"status":{"type":"string","description":"Transaction status (e.g. PLANNING, COMMITTED)"}},"required":["id","operationId","date","quantityMm","actionFqn","status"],"additionalProperties":false,"description":"A recorded or planned irrigation event on a cultivation","example":{"id":"8f7f0d7e-1c2c-4d8e-9a51-2f9a4f6f1a01","operationId":"2b1a6c3e-0d4f-4f6a-8d2e-7c5b9e0f1a23","date":"2026-06-08","quantityMm":20,"actionFqn":"IRRIGATION_METHOD__SPRINKLER","status":"PLANNING"}},"FieldIrrigationDataSchemaOutput":{"type":"object","properties":{"id":{"type":"string","description":"Field id"},"cultivationId":{"nullable":true,"description":"Cultivation id for the requested year (null if the field has no cultivation that year)","type":"string"},"name":{"type":"string","description":"Display name of the row: the cultivation's sub-field name (Cultivations.properties.name) when set, otherwise the field name"},"fieldName":{"type":"string","description":"Plain name of the parent field"},"soilZone":{"nullable":true,"description":"Soil zone of the field's active zonation matched to this cultivation by maximum area overlap; its surveyed values (nFK, texture) drive the water balance. Null when no zone covers >=30 % of the cultivation - field-level topsoil values apply.","type":"object","properties":{"id":{"type":"string","description":"SoilSamplingZones id"},"label":{"type":"string","description":"Zone label, e.g. west_shallow"},"nfkMm":{"nullable":true,"description":"Surveyed plant-available water capacity (mm)","type":"number"},"overlapShare":{"type":"number","description":"Fraction of the cultivation covered by the zone (0..1)"}},"required":["id","label","nfkMm","overlapShare"],"additionalProperties":false},"crop":{"nullable":true,"description":"Crop of the cultivation (e.g. winterWheat), null without a cultivation","type":"string"},"areaInHa":{"type":"number","description":"Area in hectares"},"fieldGroups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"nullable":true,"type":"string"}},"required":["id","name","color"],"additionalProperties":false},"description":"Field groups the field belongs to"},"soilTypeKa5":{"nullable":true,"description":"KA5 soil texture class derived from the topsoil texture","type":"string"},"soilTypeLUFA":{"nullable":true,"description":"LUFA soil type (currently always null on this endpoint)","type":"string"},"thetaFc":{"nullable":true,"description":"Volumetric water content at field capacity, in percent (28 = 28 %)","x-unit":"% vol.","type":"number"},"thetaPwp":{"nullable":true,"description":"Volumetric water content at permanent wilting point, in percent (12 = 12 %)","x-unit":"% vol.","type":"number"},"awcMm":{"nullable":true,"description":"Available water capacity of the root-zone bucket (GET …/fields/{id}/{year}/irrigation calls it nfkMm)","x-unit":"mm","type":"number"},"rootDepthM":{"type":"number","description":"Rooting depth the balance used (m): the stored override when set, else the crop default"},"rootDepthOverrideM":{"nullable":true,"description":"Per-cultivation rooting-depth override (m); null when the crop default applies","type":"number"},"waterBalance":{"nullable":true,"description":"Daily FAO-56 water-balance series, null when it cannot be simulated (e.g. missing weather)","type":"array","items":{"$ref":"#/components/schemas/WaterBalanceDaySchemaOutput"}},"currentDeficit":{"nullable":true,"description":"Most recent water deficit (mm), null without a simulation","type":"number"},"deficitLevel":{"nullable":true,"description":"Classification of the current deficit","type":"string","enum":["ok","warning","critical"]},"totalIrrigated":{"type":"number","description":"Total irrigation over the simulated period (mm)"},"totalPrecipitation":{"type":"number","description":"Total precipitation over the simulated period (mm)"},"totalEta":{"type":"number","description":"Total actual evapotranspiration over the simulated period (mm)"},"simulationStartDate":{"nullable":true,"description":"First simulated day (ISO yyyy-mm-dd), null without a simulation","type":"string"},"sowingDate":{"nullable":true,"description":"Sowing date of the cultivation (ISO yyyy-mm-dd), null if unknown","type":"string"},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/IrrigationTransactionSchemaOutput"},"description":"Irrigation events recorded for the cultivation"},"recommendation":{"$ref":"#/components/schemas/IrrigationRecommendationSchemaOutput"}},"required":["id","cultivationId","name","fieldName","soilZone","crop","areaInHa","fieldGroups","soilTypeKa5","soilTypeLUFA","thetaFc","thetaPwp","awcMm","rootDepthM","rootDepthOverrideM","waterBalance","currentDeficit","deficitLevel","totalIrrigated","totalPrecipitation","totalEta","simulationStartDate","sowingDate","transactions","recommendation"],"additionalProperties":false,"description":"Irrigation water-balance summary for one field and year"},"ApplicationMapZoneSourceOutput":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["favorite"]}},"required":["type"],"additionalProperties":false,"description":"The cultivation's default (starred) base zonation"},{"type":"object","properties":{"type":{"type":"string","enum":["base_zonation"]},"method":{"type":"string","enum":["yield_potential","ndvi_recent","ndvi_longterm","soil_zonation","twi","satellite_composite","yield_measured"],"description":"Base-zonation method the map derives from","example":"soil_zonation"},"numberOfZones":{"type":"integer","minimum":1,"maximum":10},"source":{"description":"Encoded zonation source of the variant (e.g. soil_zonation:<id>); omit to ignore","nullable":true,"type":"string"}},"required":["type","method","numberOfZones"],"additionalProperties":false,"description":"A specific stored base-zonation variant"},{"type":"object","properties":{"type":{"type":"string","enum":["soil_zonation"]},"zonationId":{"description":"Soil sampling zonation; default: the field's active one","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type"],"additionalProperties":false,"description":"Soil sampling zones of the field (relative yield from SOC)"},{"type":"object","properties":{"type":{"type":"string","enum":["yield_zonation"]},"zonationId":{"description":"Yield zonation (metric wet); default: the cultivation's active one, measured preferred","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type"],"additionalProperties":false,"description":"Yield zonation of the cultivation (measured map or satellite estimate)"},{"type":"object","properties":{"type":{"type":"string","enum":["uniform"]}},"required":["type"],"additionalProperties":false,"description":"One zone covering the cultivation"}],"description":"Where the zones come from. Only stored zonations are supported here; satellite/TWI zonation is only available in the app.","type":"object"},"ApplicationMapSummaryOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldName":{"nullable":true,"type":"string"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"mode":{"$ref":"#/components/schemas/ApplicationMapModeEnum"},"method":{"type":"string","enum":["yield_potential","ndvi_recent","ndvi_longterm","soil_zonation","twi","satellite_composite","yield_measured"],"description":"Base-zonation method the map derives from","example":"soil_zonation"},"numberOfZones":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"articleFqn":{"nullable":true,"description":"Fertilizer article (fertilizerApplication only)","type":"string"},"crop":{"nullable":true,"type":"string"},"variety":{"nullable":true,"type":"string"},"unit":{"type":"string"},"standardRate":{"type":"number"},"weightedRate":{"nullable":true,"description":"Area-weighted mean zone rate","type":"number"},"machine":{"type":"string"},"transactionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creationTime":{"type":"string","description":"ISO timestamp"},"export":{"nullable":true,"type":"object","properties":{"fileKey":{"type":"string","description":"Org-scoped key for GET /files/{fileKey}"},"terminal":{"type":"string"},"exportedAt":{"type":"string","description":"ISO timestamp"},"downloadUrl":{"description":"Presigned download URL (300 s); only with ?download=true","type":"string","format":"uri"}},"required":["fileKey","terminal","exportedAt"],"additionalProperties":false,"description":"Stored ISOXML/shapefile export of the map"}},"required":["id","fieldId","fieldName","year","name","mode","method","numberOfZones","articleFqn","crop","variety","unit","standardRate","weightedRate","machine","transactionId","creationTime","export"],"additionalProperties":false,"description":"A persisted application map without zone geometry","example":{"id":"0b2e6f1c-1a2b-4c3d-9e8f-7a6b5c4d3e2f","fieldId":"1f3e9c2a-7b4d-4e0f-9a1b-2c3d4e5f6a7b","fieldName":"Am Bach","year":2026,"name":"MINERAL__CALCIUM_AMMONIUM_NITRATE 2026","mode":"fertilizerApplication","method":"soil_zonation","numberOfZones":3,"articleFqn":"MINERAL__CALCIUM_AMMONIUM_NITRATE","crop":null,"variety":null,"unit":"kg_ha","standardRate":120,"weightedRate":120,"machine":"JD_GEN4_COMMAND_CENTER","transactionId":null,"creationTime":"2026-03-02T09:12:44.000Z","export":{"fileKey":"MINERAL_CAN_2026_JD_GEN4_COMMAND_CENTER_1772000000000.zip","terminal":"JD_GEN4_COMMAND_CENTER","exportedAt":"2026-03-02T09:12:45.000Z"}}},"ApplicationMapDetailOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldName":{"nullable":true,"type":"string"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"mode":{"$ref":"#/components/schemas/ApplicationMapModeEnum"},"method":{"type":"string","enum":["yield_potential","ndvi_recent","ndvi_longterm","soil_zonation","twi","satellite_composite","yield_measured"],"description":"Base-zonation method the map derives from","example":"soil_zonation"},"numberOfZones":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"articleFqn":{"nullable":true,"description":"Fertilizer article (fertilizerApplication only)","type":"string"},"crop":{"nullable":true,"type":"string"},"variety":{"nullable":true,"type":"string"},"unit":{"type":"string"},"standardRate":{"type":"number"},"weightedRate":{"nullable":true,"description":"Area-weighted mean zone rate","type":"number"},"machine":{"type":"string"},"transactionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"creationTime":{"type":"string","description":"ISO timestamp"},"export":{"nullable":true,"type":"object","properties":{"fileKey":{"type":"string","description":"Org-scoped key for GET /files/{fileKey}"},"terminal":{"type":"string"},"exportedAt":{"type":"string","description":"ISO timestamp"},"downloadUrl":{"description":"Presigned download URL (300 s); only with ?download=true","type":"string","format":"uri"}},"required":["fileKey","terminal","exportedAt"],"additionalProperties":false,"description":"Stored ISOXML/shapefile export of the map"},"zones":{"type":"object","properties":{"type":{"type":"string","enum":["FeatureCollection"]},"features":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"properties":{"type":"object","properties":{"TreatmentID":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"RATE":{"type":"number"},"UNIT":{"type":"string"},"PRODUCT":{"type":"string"},"areaFraction":{"nullable":true,"description":"Share of the map's area in this zone (0–1); null for maps stored without zone areas","type":"number"},"relativeYield":{"type":"number"}},"required":["TreatmentID","RATE","UNIT","PRODUCT","areaFraction"],"additionalProperties":{}}},"required":["type","geometry","properties"],"additionalProperties":false}}},"required":["type","features"],"additionalProperties":false,"description":"Zone geometries with RATE / UNIT / PRODUCT / TreatmentID / areaFraction"}},"required":["id","fieldId","fieldName","year","name","mode","method","numberOfZones","articleFqn","crop","variety","unit","standardRate","weightedRate","machine","transactionId","creationTime","export","zones"],"additionalProperties":false,"description":"A persisted application map including its zones"},"DMCCalibrationRecordOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"varietyId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"regionKey":{"type":"string"},"measurementDate":{"type":"string","format":"date"},"measuredDMC":{"type":"number","minimum":0,"maximum":1},"modelDmcAtMeasurement":{"nullable":true,"type":"number"},"offset":{"nullable":true,"type":"number"},"source":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","fieldId","varietyId","year","regionKey","measurementDate","measuredDMC","modelDmcAtMeasurement","offset","source","notes","createdAt"],"additionalProperties":false},"FieldBaseFertilizationManagementOutput":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"areaInHa":{"type":"number"},"cultivationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"crop":{"nullable":true,"type":"string"},"fieldGroups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"nullable":true,"type":"string"}},"required":["id","name","color"],"additionalProperties":false}},"transactions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"date":{"type":"string","description":"yyyy-mm-dd"},"articleId":{"type":"string"},"quantity":{"nullable":true,"type":"number"},"unit":{"nullable":true,"type":"string"},"status":{"type":"string"},"p2o5":{"nullable":true,"type":"number"},"k2o":{"nullable":true,"type":"number"},"mgo":{"nullable":true,"type":"number"},"limeEffectPer100Kg":{"nullable":true,"type":"number"},"convTtoCbm":{"nullable":true,"type":"number"}},"required":["id","operationId","date","articleId","quantity","unit","status","p2o5","k2o","mgo","limeEffectPer100Kg","convTtoCbm"],"additionalProperties":false}},"soil":{"type":"object","properties":{"ph":{"type":"object","properties":{"value":{"nullable":true,"type":"number"},"source":{"nullable":true,"description":"Where the value comes from (measured, model, …)","type":"string"},"method":{"description":"Lab method, e.g. CAL / DL for P","nullable":true,"type":"string"},"impossible":{"description":"The stored reading when it is physically impossible; `value` is then null and no calculation uses it","type":"number"}},"required":["value","source"],"additionalProperties":false},"p2o5":{"type":"object","properties":{"value":{"nullable":true,"type":"number"},"source":{"nullable":true,"description":"Where the value comes from (measured, model, …)","type":"string"},"method":{"description":"Lab method, e.g. CAL / DL for P","nullable":true,"type":"string"},"impossible":{"description":"The stored reading when it is physically impossible; `value` is then null and no calculation uses it","type":"number"}},"required":["value","source"],"additionalProperties":false},"k2o":{"type":"object","properties":{"value":{"nullable":true,"type":"number"},"source":{"nullable":true,"description":"Where the value comes from (measured, model, …)","type":"string"},"method":{"description":"Lab method, e.g. CAL / DL for P","nullable":true,"type":"string"},"impossible":{"description":"The stored reading when it is physically impossible; `value` is then null and no calculation uses it","type":"number"}},"required":["value","source"],"additionalProperties":false},"mgo":{"type":"object","properties":{"value":{"nullable":true,"type":"number"},"source":{"nullable":true,"description":"Where the value comes from (measured, model, …)","type":"string"},"method":{"description":"Lab method, e.g. CAL / DL for P","nullable":true,"type":"string"},"impossible":{"description":"The stored reading when it is physically impossible; `value` is then null and no calculation uses it","type":"number"}},"required":["value","source"],"additionalProperties":false},"humus":{"type":"object","properties":{"value":{"nullable":true,"type":"number"},"source":{"nullable":true,"description":"Where the value comes from (measured, model, …)","type":"string"},"method":{"description":"Lab method, e.g. CAL / DL for P","nullable":true,"type":"string"},"impossible":{"description":"The stored reading when it is physically impossible; `value` is then null and no calculation uses it","type":"number"}},"required":["value","source"],"additionalProperties":false}},"required":["ph","p2o5","k2o","mgo","humus"],"additionalProperties":false,"description":"Topsoil values the recommendation is based on"},"soilClass":{"type":"string","enum":["light","medium","heavy"],"description":"Texture class for the VDLUFA supply-level thresholds","example":"medium"},"soilClassKa5":{"nullable":true,"type":"string"},"clayPct":{"nullable":true,"type":"number"},"yieldTpHa":{"nullable":true,"type":"number"},"strawRetained":{"type":"boolean"},"limeRequirementDtCaO":{"nullable":true,"type":"number"},"limeRequirementCalculated":{"nullable":true,"type":"number"},"need":{"nullable":true,"type":"object","properties":{"p2o5":{"nullable":true,"type":"object","properties":{"removalGrain":{"type":"number","description":"kg/ha removed with the main product"},"removalStraw":{"type":"number","description":"kg/ha removed with the by-product (0 when straw stays)"},"removalTotal":{"type":"number"},"level":{"type":"string","enum":["A","B","C","D","E"],"description":"VDLUFA supply level"},"factor":{"type":"number","description":"Correction factor applied to the removal for this supply level"},"recommendation":{"type":"number","description":"kg/ha recommendation = removal × factor"}},"required":["removalGrain","removalStraw","removalTotal","level","factor","recommendation"],"additionalProperties":false,"description":"Removal and recommendation of one nutrient (kg/ha)"},"k2o":{"nullable":true,"type":"object","properties":{"removalGrain":{"type":"number","description":"kg/ha removed with the main product"},"removalStraw":{"type":"number","description":"kg/ha removed with the by-product (0 when straw stays)"},"removalTotal":{"type":"number"},"level":{"type":"string","enum":["A","B","C","D","E"],"description":"VDLUFA supply level"},"factor":{"type":"number","description":"Correction factor applied to the removal for this supply level"},"recommendation":{"type":"number","description":"kg/ha recommendation = removal × factor"}},"required":["removalGrain","removalStraw","removalTotal","level","factor","recommendation"],"additionalProperties":false,"description":"Removal and recommendation of one nutrient (kg/ha)"},"mgo":{"nullable":true,"type":"object","properties":{"removalGrain":{"type":"number","description":"kg/ha removed with the main product"},"removalStraw":{"type":"number","description":"kg/ha removed with the by-product (0 when straw stays)"},"removalTotal":{"type":"number"},"level":{"type":"string","enum":["A","B","C","D","E"],"description":"VDLUFA supply level"},"factor":{"type":"number","description":"Correction factor applied to the removal for this supply level"},"recommendation":{"type":"number","description":"kg/ha recommendation = removal × factor"}},"required":["removalGrain","removalStraw","removalTotal","level","factor","recommendation"],"additionalProperties":false,"description":"Removal and recommendation of one nutrient (kg/ha)"}},"required":["p2o5","k2o","mgo"],"additionalProperties":false,"description":"Per-nutrient need; null when the soil test for that nutrient is missing"},"delivered":{"type":"object","properties":{"p2o5":{"type":"number"},"k2o":{"type":"number"},"mgo":{"type":"number"},"cao":{"type":"number"}},"required":["p2o5","k2o","mgo","cao"],"additionalProperties":false,"description":"Nutrients supplied by fertilizer transactions (kg/ha)"},"planned":{"type":"object","properties":{"p2o5":{"type":"number"},"k2o":{"type":"number"},"mgo":{"type":"number"},"cao":{"type":"number"}},"required":["p2o5","k2o","mgo","cao"],"additionalProperties":false,"description":"Nutrients supplied by fertilizer transactions (kg/ha)"},"p2o5Balance":{"type":"object","properties":{"supplyTotal":{"type":"number"},"removalTotal":{"type":"number"},"yearsWithYield":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0–6 years with a removal; a year without a yield (or without removal values for the crop) adds supply only"}},"required":["supplyTotal","removalTotal","yearsWithYield"],"additionalProperties":false}},"required":["id","name","areaInHa","cultivationId","crop","fieldGroups","transactions","soil","soilClass","soilClassKa5","clayPct","yieldTpHa","strawRetained","limeRequirementDtCaO","limeRequirementCalculated","need","delivered","planned","p2o5Balance"],"additionalProperties":false,"description":"One field's P/K/Mg management row for a harvest year"},"Geometry":{"type":"object","properties":{"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"type":"array","items":{"type":"number"}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPoint"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"number"}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["LineString"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"number"}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiLineString"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":["geometry"],"additionalProperties":false,"description":"A GeoJSON geometry (Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon).","example":{"geometry":{"type":"Point","coordinates":[13,49]}}},"Geometry2D":{"type":"object","properties":{"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":["geometry"],"additionalProperties":false,"description":"A 2D GeoJSON geometry (Polygon, MultiPolygon).","example":{"geometry":{"type":"Polygon","coordinates":[[[13,49],[14,49],[14,50],[13,50],[13,49]]]}}},"FieldBoundary":{"type":"object","properties":{"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":["geometry"],"additionalProperties":false,"description":"The field boundary as GeoJSON Polygon or MultiPolygon geometry.","example":{"geometry":{"type":"MultiPolygon","coordinates":[[[[-1,-1],[-1,1],[1,1],[1,-1],[-1,-1]]]]}}},"AnalysisBoundary":{"type":"object","properties":{"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"reference":{"type":"object","properties":{"name":{"description":"Name of the polygon, e.g. the field or farm name.","type":"string","maxLength":255},"file":{"description":"Name of the file the polygon was read from.","type":"string","maxLength":255},"farm":{"description":"Farm (customer) the polygon belongs to, so the usage export can be broken down per farm.","type":"string","maxLength":255},"properties":{"description":"Attributes of the polygon, e.g. the shapefile feature's properties (at most 4 KB as JSON).","type":"object","additionalProperties":{}}},"additionalProperties":false,"description":"How the caller refers to the analysed polygon; kept for the org's usage export."}},"required":["geometry"],"additionalProperties":false,"description":"The polygon to analyse as GeoJSON Polygon or MultiPolygon geometry, with an optional `reference` (name, file, farm, properties) that the org's usage export (GET /api/{orgId}/usage/analyses) lists it under.","example":{"geometry":{"type":"Polygon","coordinates":[[[10,51],[10.01,51],[10.01,51.01],[10,51.01],[10,51]]]},"reference":{"name":"Hinterm Hof","file":"schlaege_2026.zip","farm":"Gut Lindenhöhe","properties":{"FLIK":"DENILI0512345678"}}}},"AddonRequiredError":{"type":"object","properties":{"error":{"type":"string","enum":["addon_required"]},"addon":{"type":"string"},"message":{"type":"string"},"upgradeUrl":{"type":"string"}},"required":["error","addon","message","upgradeUrl"],"additionalProperties":false,"example":{"error":"addon_required","addon":"crop-forecast","message":"The crop forecast needs the Crop Forecast add-on.","upgradeUrl":"https://agmeo.com/maps/billing?addon=crop-forecast"}},"CropForecastRequest":{"type":"object","properties":{"year":{"description":"Base year: the last observed harvest (2025 or 2026, default the latest)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bbox":{"description":"[west, south, east, north] in WGS 84 degrees","type":"array","items":{"anyOf":[{"type":"number","minimum":-180,"maximum":180},{"type":"number","minimum":-90,"maximum":90},{"type":"number","minimum":-180,"maximum":180},{"type":"number","minimum":-90,"maximum":90}]},"minItems":4,"maxItems":4},"geometry":{"description":"GeoJSON Polygon or MultiPolygon in WGS 84","anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]}},"additionalProperties":false,"description":"The region as a bbox or a Polygon/MultiPolygon (exactly one), as for the crop statistics.","example":{"bbox":[11.3,52,11.6,52.2]}},"CropForecastResponse":{"type":"object","properties":{"baseYear":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The forecast year (base year + 1)"},"experimental":{"type":"boolean","enum":[true]},"method":{"type":"string","enum":["markov-2"]},"region":{"type":"object","properties":{"type":{"type":"string","enum":["polygon","nuts"]},"code":{"nullable":true,"description":"NUTS code (NUTS regions only)","type":"string"},"name":{"nullable":true,"type":"string"},"level":{"nullable":true,"description":"NUTS level 0–3 (NUTS regions only)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"areaHa":{"type":"number","description":"Area of the whole region"},"evaluatedAreaHa":{"type":"number","description":"Part of the region inside the countries the organization has access to; shares refer to it"},"countries":{"type":"array","items":{"type":"string"},"description":"Countries evaluated (ISO-like codes as in NUTS: EL, UK)"}},"required":["type","code","name","level","areaHa","evaluatedAreaHa","countries"],"additionalProperties":false},"agriculturalAreaHa":{"type":"number","description":"Agricultural area of the base year"},"crops":{"type":"array","items":{"type":"object","properties":{"crop":{"type":"string"},"areaHa":{"type":"number","description":"Expected area in the forecast year"},"sharePct":{"type":"number"},"baseYearAreaHa":{"type":"number"},"baseYearSharePct":{"type":"number"},"changePp":{"type":"number","description":"Expected change of the share, in percentage points"}},"required":["crop","areaHa","sharePct","baseYearAreaHa","baseYearSharePct","changePp"],"additionalProperties":false}},"historyCoverage":{"type":"object","properties":{"areaHa":{"type":"number"},"sharePct":{"type":"number"},"parcels":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["areaHa","sharePct","parcels"],"additionalProperties":false},"markovWeight":{"type":"number","description":"Weight of the rotation chain in the forecast (0–1); the rest is persistence (this year's shares). Chosen by the backtest."},"backtest":{"nullable":true,"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The year predicted from the two years before it"},"meanAbsErrorPp":{"type":"number","description":"Mean absolute error of the crop shares (forecast method), percentage points"},"persistenceMeanAbsErrorPp":{"type":"number","description":"The same error of plain persistence (no change), for comparison"},"crops":{"type":"array","items":{"type":"object","properties":{"crop":{"type":"string"},"predictedSharePct":{"type":"number"},"actualSharePct":{"type":"number"}},"required":["crop","predictedSharePct","actualSharePct"],"additionalProperties":false}}},"required":["year","meanAbsErrorPp","persistenceMeanAbsErrorPp","crops"],"additionalProperties":false},"dataVersion":{"type":"string"}},"required":["baseYear","year","experimental","method","region","agriculturalAreaHa","crops","historyCoverage","markovWeight","backtest","dataVersion"],"additionalProperties":false,"description":"Experimental next-year crop forecast of a region (Crop Forecast add-on)"},"CropRegionList":{"type":"object","properties":{"regions":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"nullable":true,"type":"string"},"level":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"country":{"type":"string"}},"required":["code","name","level","country"],"additionalProperties":false}}},"required":["regions"],"additionalProperties":false,"description":"NUTS regions with crop statistics"},"CropStatisticsRequest":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Harvest year (2025 or 2026)"},"bbox":{"description":"[west, south, east, north] in WGS 84 degrees","type":"array","items":{"anyOf":[{"type":"number","minimum":-180,"maximum":180},{"type":"number","minimum":-90,"maximum":90},{"type":"number","minimum":-180,"maximum":180},{"type":"number","minimum":-90,"maximum":90}]},"minItems":4,"maxItems":4},"geometry":{"description":"GeoJSON Polygon or MultiPolygon in WGS 84","anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"include":{"description":"`rotation` adds the crop-rotation statistics (4-year sequences, classes, previous crops)","type":"array","items":{"type":"string","enum":["rotation"]}}},"required":["year"],"additionalProperties":false,"description":"The region as a bbox or a Polygon/MultiPolygon (exactly one). Between 5 and 10,000 km², at most 10,000 vertices, valid (no self-crossing rings, holes inside their shell).","example":{"year":2026,"bbox":[11.3,52,11.6,52.2],"include":["rotation"]}},"CropStatisticsResponse":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"region":{"type":"object","properties":{"type":{"type":"string","enum":["polygon","nuts"]},"code":{"nullable":true,"description":"NUTS code (NUTS regions only)","type":"string"},"name":{"nullable":true,"type":"string"},"level":{"nullable":true,"description":"NUTS level 0–3 (NUTS regions only)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"areaHa":{"type":"number","description":"Area of the whole region"},"evaluatedAreaHa":{"type":"number","description":"Part of the region inside the countries the organization has access to; shares refer to it"},"countries":{"type":"array","items":{"type":"string"},"description":"Countries evaluated (ISO-like codes as in NUTS: EL, UK)"}},"required":["type","code","name","level","areaHa","evaluatedAreaHa","countries"],"additionalProperties":false},"parcels":{"nullable":true,"description":"Parcels whose centroid lies in the region","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agriculturalAreaHa":{"type":"number"},"agriculturalSharePct":{"nullable":true,"description":"Agricultural area as a share of the evaluated region area, in percent","type":"number"},"crops":{"type":"array","items":{"type":"object","properties":{"crop":{"type":"string","description":"Crop category id; `other` collects crops below the anonymity floor"},"areaHa":{"type":"number"},"sharePct":{"type":"number","description":"Share of the agricultural area, in percent"},"parcels":{"nullable":true,"description":"Parcels; null for official statistics","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["crop","areaHa","sharePct","parcels"],"additionalProperties":false}},"rotation":{"nullable":true,"type":"object","properties":{"years":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"The four harvest years of a sequence, oldest first"},"historyCoverage":{"type":"object","properties":{"areaHa":{"type":"number"},"sharePct":{"type":"number"},"parcels":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["areaHa","sharePct","parcels"],"additionalProperties":false,"description":"Agricultural area whose parcels have a known crop in all four years; the shares below refer to it"},"classes":{"type":"array","items":{"type":"object","properties":{"areaHa":{"type":"number"},"sharePct":{"type":"number"},"class":{"type":"string"}},"required":["areaHa","sharePct","class"],"additionalProperties":false},"description":"Rotation classes: four/three/two distinct crops, mono, grassland, permanent (special crops)"},"sequences":{"type":"array","items":{"type":"object","properties":{"areaHa":{"type":"number"},"sharePct":{"type":"number"},"crops":{"type":"array","items":{"type":"string"}},"parcels":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["areaHa","sharePct","crops","parcels"],"additionalProperties":false},"description":"The most common 4-year sequences (oldest first) by area"},"otherSequences":{"type":"object","properties":{"areaHa":{"type":"number"},"sharePct":{"type":"number"},"parcels":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["areaHa","sharePct","parcels"],"additionalProperties":false},"previousCrops":{"type":"array","items":{"type":"object","properties":{"crop":{"type":"string"},"areaHa":{"type":"number"},"previous":{"type":"array","items":{"type":"object","properties":{"areaHa":{"type":"number"},"sharePct":{"type":"number"},"crop":{"type":"string"}},"required":["areaHa","sharePct","crop"],"additionalProperties":false}}},"required":["crop","areaHa","previous"],"additionalProperties":false},"description":"For each crop of the year, the crops grown on the same parcels the year before"}},"required":["years","historyCoverage","classes","sequences","otherSequences","previousCrops"],"additionalProperties":false},"source":{"type":"object","properties":{"crops":{"type":"string","enum":["parcels","statistics"],"description":"`parcels`: summed from classified parcels; `statistics`: delivered NUTS statistics"}},"required":["crops"],"additionalProperties":false},"notEntitled":{"type":"array","items":{"type":"string"},"description":"Parts left out because the organization has no access to them (e.g. `rotation`)"},"notes":{"type":"array","items":{"type":"string"},"description":"Why a requested part is missing for other reasons, e.g. no rotation data for the year"},"dataVersion":{"type":"string"}},"required":["year","region","parcels","agriculturalAreaHa","agriculturalSharePct","crops","rotation","source","notEntitled","notes","dataVersion"],"additionalProperties":false,"description":"Crop and crop-rotation statistics of a region"},"FieldBoundaryFeature":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"properties":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"crop":{"type":"string"},"areaHa":{"type":"number"},"confidence":{"nullable":true,"description":"Classification confidence 0–1","type":"number"},"country":{"type":"string"},"nuts3":{"nullable":true,"type":"string"},"history":{"type":"array","items":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"crop":{"type":"string"},"source":{"type":"string","enum":["parcel","rotation"]}},"required":["year","crop","source"],"additionalProperties":false},"description":"Known crops at this place, oldest first: `parcel` = the classified parcel of that year, `rotation` = derived from a later parcel's 4-year history"}},"required":["year","crop","areaHa","confidence","country","nuts3","history"],"additionalProperties":false},"dataVersion":{"type":"string"}},"required":["type","id","geometry","properties","dataVersion"],"additionalProperties":false,"description":"The classified field boundary at a point, as a GeoJSON Feature"},"AnalysisUsageResponse":{"type":"object","properties":{"month":{"type":"string","description":"YYYY-MM, calendar month in UTC."},"rows":{"type":"array","items":{"type":"object","properties":{"name":{"nullable":true,"description":"The polygon's name as the caller referenced it, or the field's name.","type":"string"},"file":{"nullable":true,"description":"The file the polygon was uploaded from, when the caller said so.","type":"string"},"farm":{"nullable":true,"description":"The farm the caller assigned the polygon to, when it said so.","type":"string"},"fieldId":{"nullable":true,"description":"The org's field, for analyses of a field in the FMIS.","type":"string"},"country":{"nullable":true,"description":"ISO 3166-1 alpha-2 country the data came from.","type":"string"},"areaHa":{"type":"number","description":"Hectares of the polygon."},"layers":{"type":"array","items":{"type":"string"},"description":"Layers analysed on it in the month."},"requests":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Analysis requests on it in the month (statistics, clips, zonation)."},"firstRequestAt":{"type":"string","description":"ISO timestamp of the first request in the month."},"lastRequestAt":{"type":"string","description":"ISO timestamp of the last request in the month."},"credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Credits at list price: 50 per request plus 5,000 per hectare once per layer in the month. The credit ledger (GET /api/{orgId}/usage) is what is billed."},"properties":{"nullable":true,"description":"Attributes the caller sent with the polygon.","type":"object","additionalProperties":{}}},"required":["name","file","farm","fieldId","country","areaHa","layers","requests","firstRequestAt","lastRequestAt","credits","properties"],"additionalProperties":false}}},"required":["month","rows"],"additionalProperties":false,"description":"Every polygon and field analysed by the org's billable callers in one month."},"AnalyticsGridStats":{"type":"object","properties":{"statistics":{"type":"object","properties":{"mean":{"type":"number","example":412.5},"median":{"type":"number","example":428.1},"stddev":{"type":"number","example":96.4},"min":{"type":"number","example":102.2},"max":{"type":"number","example":638},"q20":{"type":"number","example":331,"description":"20th percentile"},"q80":{"type":"number","example":501.4,"description":"80th percentile"}},"required":["mean","median","stddev","min","max","q20","q80"],"additionalProperties":false},"histogram":{"type":"array","items":{"type":"object","properties":{"binStart":{"type":"number"},"binEnd":{"type":"number"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["binStart","binEnd","count"],"additionalProperties":false}},"validPixels":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":3960},"areaHa":{"type":"number","example":39.6}},"required":["statistics","histogram","validPixels","areaHa"],"additionalProperties":false},"RasterizeRequest":{"type":"object","properties":{"features":{"type":"object","additionalProperties":{},"description":"GeoJSON FeatureCollection (EPSG:4326) of polygon features carrying the value to burn"},"valueProperty":{"type":"string","example":"rate","description":"Feature property holding the numeric value to burn into the raster"},"resolution":{"default":10,"example":10,"description":"Grid resolution in meters (default 10)","type":"number","minimum":1},"output":{"default":"geotiff","description":"geotiff (default) returns the burned raster; stats returns grid + statistics as JSON; png returns a colormapped preview","type":"string","enum":["geotiff","stats","png"]}},"required":["features","valueProperty"],"additionalProperties":false,"description":"Rasterize arbitrary vector features onto the canonical analytics grid. Later features overwrite earlier ones; uncovered pixels are nodata."},"KpiAnalyticsRequest":{"type":"object","properties":{"years":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"example":[2024,2025]},"kpis":{"default":"all","description":"KPIs to compute (default \"all\")","anyOf":[{"type":"string","enum":["all"]},{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/KpiEnum"}}]},"resolution":{"default":10,"example":10,"description":"Grid resolution in meters (default 10)","type":"number","minimum":1},"status":{"default":"documented","description":"Which transactions enter the walk: documented operations only (default) or all statuses including planned","type":"string","enum":["documented","all"]},"output":{"default":"stats","description":"stats (default) returns JSON statistics; geotiff/png (single year + single KPI) return the raster — png is colormapped over the 2nd–98th percentile with the stretch range in x-value-range","type":"string","enum":["stats","geotiff","png"]},"yieldMaps":{"example":{"2025":"harvest-kirschweg-2025.zip"},"description":"year → fileKey of an uploaded harvest-monitor shapefile zip. The map is normalized by its field mean and used as spatial yield distributor — the harvest transaction's documented total stays authoritative.","type":"object","additionalProperties":{"type":"string"}}},"required":["years"],"additionalProperties":false,"description":"The operation walk: every operation of the field's cultivations is rasterized onto the grid — application-map or VRN zone rates where present, the uniform per-ha value otherwise — and per-pixel KPI surfaces are derived. A field without any spatial input yields flat rasters; spatial signal grows with every attached map."},"KpiAnalyticsResponse":{"type":"object","properties":{"fieldId":{"type":"string"},"resolution":{"type":"number"},"epsg":{"type":"number","enum":[3857]},"results":{"type":"array","items":{"type":"object","properties":{"statistics":{"type":"object","properties":{"mean":{"type":"number","example":412.5},"median":{"type":"number","example":428.1},"stddev":{"type":"number","example":96.4},"min":{"type":"number","example":102.2},"max":{"type":"number","example":638},"q20":{"type":"number","example":331,"description":"20th percentile"},"q80":{"type":"number","example":501.4,"description":"80th percentile"}},"required":["mean","median","stddev","min","max","q20","q80"],"additionalProperties":false},"histogram":{"type":"array","items":{"type":"object","properties":{"binStart":{"type":"number"},"binEnd":{"type":"number"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["binStart","binEnd","count"],"additionalProperties":false}},"validPixels":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":3960},"areaHa":{"type":"number","example":39.6},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kpi":{"$ref":"#/components/schemas/KpiEnum"},"unit":{"type":"string","example":"EUR/ha"},"coverage":{"$ref":"#/components/schemas/KpiCoverageOutput"}},"required":["statistics","histogram","validPixels","areaHa","year","kpi","unit","coverage"],"additionalProperties":false}},"multiYear":{"nullable":true,"description":"Per-pixel stability across years (mean + coefficient of variation), present when more than one year was requested and the field geometry did not change","type":"object","properties":{"comparable":{"type":"boolean"},"years":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"reason":{"type":"string"},"stability":{"type":"array","items":{"type":"object","properties":{"kpi":{"$ref":"#/components/schemas/KpiEnum"},"unit":{"type":"string"},"mean":{"type":"object","additionalProperties":{"type":"number"}},"coefficientOfVariation":{"type":"object","additionalProperties":{"type":"number"}}},"required":["kpi","unit","mean","coefficientOfVariation"],"additionalProperties":false}}},"required":["comparable"],"additionalProperties":false}},"required":["fieldId","resolution","epsg","results","multiYear"],"additionalProperties":false},"ExplainAnalyticsRequest":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":2025},"kpi":{"$ref":"#/components/schemas/KpiEnum"},"layers":{"example":["twi","tpi","clay-dsm","silt-dsm","sand-dsm","soc-dsm"],"description":"B2B raster layer ids to test as drivers (default: topography + soil texture + SOC)","minItems":1,"maxItems":12,"type":"array","items":{"type":"string"}},"resolution":{"default":10,"type":"number","minimum":1},"status":{"default":"documented","type":"string","enum":["documented","all"]}},"required":["year","kpi"],"additionalProperties":false,"description":"Rank foundation layers by how strongly they co-vary with the KPI surface. Correlation is association, not causality."},"ExplainAnalyticsResponse":{"type":"object","properties":{"fieldId":{"type":"string"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kpi":{"$ref":"#/components/schemas/KpiEnum"},"unit":{"type":"string"},"resolution":{"type":"number"},"coverage":{"$ref":"#/components/schemas/KpiCoverageOutput"},"drivers":{"type":"array","items":{"type":"object","properties":{"driver":{"type":"string","example":"twi"},"pearson":{"type":"number","example":-0.42},"spearman":{"type":"number","example":-0.47},"targetMeanByDriverQuartile":{"minItems":4,"maxItems":4,"type":"array","items":{"type":"number"},"description":"Mean KPI value within each driver quartile (Q1 = lowest driver values)","example":[455.2,431,407.8,361.5]},"sharedPixels":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["driver","pearson","spearman","targetMeanByDriverQuartile","sharedPixels"],"additionalProperties":false}},"skippedLayers":{"type":"array","items":{"type":"object","properties":{"layer":{"type":"string"},"reason":{"type":"string"}},"required":["layer","reason"],"additionalProperties":false}}},"required":["fieldId","year","kpi","unit","resolution","coverage","drivers","skippedLayers"],"additionalProperties":false},"YieldMapAnalyticsRequest":{"type":"object","properties":{"fileKey":{"example":"harvest-kirschweg-2025.zip","description":"fileKey of an uploaded harvest-monitor shapefile zip (see the Files API). Alternative to source.","type":"string","minLength":1},"source":{"description":"Pull the harvest shapefile straight from a connected provider instead of an upload — currently johndeere (Operations Center field operation id). Alternative to fileKey.","type":"object","properties":{"provider":{"type":"string","enum":["johndeere"]},"operationId":{"type":"string","minLength":1}},"required":["provider","operationId"],"additionalProperties":false},"cultivationId":{"description":"Serve the persisted MERGED yield raster of this cultivation (every included harvest map of its most recent harvest event, cleaned, overlap-resolved and calibrated). Answered from the stored artifact, so nothing is parsed per request. Alternative to fileKey and source.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"fillGaps":{"default":true,"description":"Fill small nodata gaps (tramlines, headland stripes) by inverse-distance weighting over neighbors within 2 pixels; genuine holes stay nodata. Filled pixels are reported separately. Ignored with cultivationId — the stored raster is already gap-filled.","type":"boolean"},"targetMoisture":{"example":14,"description":"Standardize wet-mass rates to this moisture percentage (e.g. 14 for cereals) using the per-point moisture channel; points without moisture stay unchanged","type":"number","minimum":0,"maximum":50},"crop":{"example":"winterWheat","description":"Crop grown on the field — matched fuzzily (JD cropNames, German/English names) to a crop-specific plausibility window; points above 2× the window's maximum are dropped. Without it a generic 1.5-120 t/ha window applies","type":"string","minLength":1},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":2025,"description":"Used to resolve the field boundary"},"resolution":{"default":10,"example":10,"type":"number","minimum":1},"output":{"default":"stats","description":"stats (default) returns coverage + statistics as JSON; geotiff returns the gridded yield raster; png a colormapped preview","type":"string","enum":["stats","geotiff","png"]},"metric":{"default":"wet","description":"Which raster band to serve (cultivationId path only): wet = trade-standardized wet mass t/ha (default), dry = dry matter t/ha, dmc = as-harvested dry-matter content %. dry/dmc require a recipe-v4 raster","type":"string","enum":["wet","dry","dmc"]}},"required":["year"],"additionalProperties":false,"description":"Parse a harvest-monitor point shapefile (e.g. a John Deere Operations Center yield export), auto-detect the yield attribute (VRYIELDMAS, DRYMASS, WETMASS, …), drop non-positive values, clip the 1st/99th percentiles and average the points onto the field's analytics grid."},"YieldMapAnalyticsResponse":{"type":"object","properties":{"fieldId":{"type":"string"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"grid":{"$ref":"#/components/schemas/AnalyticsGridDefinitionOutput"},"epsg":{"type":"number","enum":[3857]},"attribute":{"type":"string","example":"VRYIELDMAS","description":"The yield source that was detected: a column name or the flow formula"},"format":{"type":"string","enum":["mass_per_area","flow_channels","isoxml","pointdata","aft"],"description":"mass_per_area = each point carries a yield-per-area column; flow_channels = flow/width/speed telemetry rows merged along the timeline; isoxml = ISO 11783 TaskData TLG time logs (yield DDI 84/181, moisture DDI 99); pointdata = telemetry-API points stored as a points.geojson artefact; aft = AGRO-MAP AFT monitor export"},"unit":{"type":"string","example":"t/ha"},"basis":{"type":"string","enum":["wet","dry"],"description":"Whether the values are wet mass (as harvested) or dry mass (DDI 181 / DRYMASS sources). targetMoisture converts wet points via their moisture channel and scales dry points up to the target"},"quality":{"type":"object","properties":{"meanRate":{"type":"number","example":12.07,"description":"Mean rate of the cleaned points [t/ha], before any moisture standardization"},"plausible":{"type":"boolean","description":"false when the mean rate is outside the plausible crop window — check column, unit and calibration"},"window":{"type":"array","items":{"anyOf":[{"type":"number"},{"type":"number"}]},"minItems":2,"maxItems":2,"description":"The plausibility window that was applied [t/ha] — crop-specific when crop was given"},"cappedPoints":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Points dropped by the per-point cap (2× the window's maximum)"},"note":{"type":"string"}},"required":["meanRate","plausible","window","cappedPoints"],"additionalProperties":false},"moisture":{"description":"Present when a moisture/dry-matter channel was found","type":"object","properties":{"attribute":{"type":"string","example":"Moisture"},"mean":{"type":"number","example":32.4},"pointsWithMoisture":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["attribute","mean","pointsWithMoisture"],"additionalProperties":false},"standardizedPoints":{"description":"Number of points standardized to targetMoisture (only when targetMoisture was given)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"points":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":47647},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":46525},"dropped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":1122}},"required":["total","used","dropped"],"additionalProperties":false},"sources":{"type":"object","properties":{"parsed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12,"description":"Shapefile sets/logs parsed from the zip"},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":1,"description":"Sets without usable yield data"}},"required":["parsed","skipped"],"additionalProperties":false},"coverage":{"type":"object","properties":{"coveredPixels":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":13551,"description":"Pixels with measured harvest points"},"filledPixels":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":420,"description":"Pixels filled by gap interpolation"},"fieldCoverage":{"type":"number","example":0.94,"description":"Fraction of field pixels with yield data (after gap filling)"}},"required":["coveredPixels","filledPixels","fieldCoverage"],"additionalProperties":false},"statistics":{"type":"object","properties":{"mean":{"type":"number","example":412.5},"median":{"type":"number","example":428.1},"stddev":{"type":"number","example":96.4},"min":{"type":"number","example":102.2},"max":{"type":"number","example":638},"q20":{"type":"number","example":331,"description":"20th percentile"},"q80":{"type":"number","example":501.4,"description":"80th percentile"}},"required":["mean","median","stddev","min","max","q20","q80"],"additionalProperties":false},"histogram":{"type":"array","items":{"type":"object","properties":{"binStart":{"type":"number"},"binEnd":{"type":"number"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["binStart","binEnd","count"],"additionalProperties":false}},"validPixels":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":3960},"areaHa":{"type":"number","example":39.6}},"required":["fieldId","year","grid","epsg","attribute","format","unit","basis","quality","points","sources","coverage","statistics","histogram","validPixels","areaHa"],"additionalProperties":false},"ZonesAnalyticsRequest":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":2025},"kpi":{"description":"Zone a KPI surface (alternative to cultivationId and yieldMapFileKey)","allOf":[{"$ref":"#/components/schemas/KpiEnum"}]},"cultivationId":{"description":"Zone the persisted MERGED yield raster of this cultivation (wet mass, t/ha) — the same artifact analytics/yield-map serves for cultivationId. Read from storage, so nothing is parsed per request; its own grid is used and resolution is ignored. 404 while the raster is still queued for building. Alternative to kpi and yieldMapFileKey.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"yieldMapFileKey":{"example":"harvest-kirschweg-2025.zip","deprecated":true,"description":"Deprecated — use cultivationId. Zone a gridded yield map instead of a KPI: fileKey of an uploaded harvest-monitor zip, re-parsed on every request; the map is cleaned and gap-filled before clustering (alternative to kpi)","type":"string","minLength":1},"crop":{"example":"winterWheat","description":"Crop for the yield map's plausibility window and per-point cap (only used with yieldMapFileKey; the merged raster is already cleaned)","type":"string","minLength":1},"numberOfZones":{"default":3,"example":3,"description":"Default 3","type":"integer","minimum":2,"maximum":7},"resolution":{"default":10,"type":"number","minimum":1},"status":{"default":"documented","type":"string","enum":["documented","all"]}},"required":["year"],"additionalProperties":false,"description":"Cluster a KPI surface or a gridded yield map into management zones and return them as vector polygons — the vector output of the analytics chain, ready for VRA/ISOXML export. Zone 1 = lowest values, ascending."},"ProviderApiError":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["validation_failed","not_found","conflict","forbidden_org","missing_scope","rate_limited","internal"]}},"required":["message","code"],"additionalProperties":false,"description":"Error body of the provider control plane: a human-readable message plus a stable machine code.","example":{"message":"No johndeere connection for this organization","code":"not_found"}},"GetProvidersResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProviderSummaryOutput"}},"nextCursor":{"type":"string","nullable":true,"enum":[null]},"truncated":{"type":"boolean","enum":[false]}},"required":["items","nextCursor","truncated"],"additionalProperties":false,"description":"Every provider visible to the caller (≤ 6 rows; the list envelope is kept for uniformity)."},"GetProviderEquipmentResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProviderEquipmentItemOutput"}},"nextCursor":{"nullable":true,"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"truncated":{"type":"boolean"}},"required":["items","nextCursor","total","truncated"],"additionalProperties":false},"GetProviderHierarchyResponse":{"type":"object","properties":{"organizations":{"type":"array","items":{"$ref":"#/components/schemas/ProviderHierarchyOrganizationOutput"}},"pendingOrganizations":{"type":"array","items":{"$ref":"#/components/schemas/ProviderPendingOrganizationOutput"},"description":"John Deere organisations visible to the user whose access is not granted yet."},"totalFields":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"linkedFields":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["organizations","pendingOrganizations","totalFields","linkedFields"],"additionalProperties":false,"description":"Provider organisations → farms/clients → fields, with the agmeo field each provider field is linked to. Not paginated (a tree)."},"GetProviderImportsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProviderImportJobOutput"}},"nextCursor":{"nullable":true,"type":"string"},"truncated":{"type":"boolean"}},"required":["items","nextCursor","truncated"],"additionalProperties":false},"PostProviderExportRequest":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["applicationMap"]},"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"year":{"type":"integer","minimum":2000,"maximum":2100},"fieldName":{"type":"string","minLength":1,"maxLength":120},"productName":{"type":"string","minLength":1,"maxLength":120},"target":{"type":"object","properties":{"equipmentId":{"description":"CLAAS: the OFT terminal id (required).","type":"string"},"deviceIds":{"description":"AGCO: PTx display ids to push the prescription to.","type":"array","items":{"type":"string"}}},"additionalProperties":false},"mode":{"type":"string","enum":["fertilizerApplication"]},"zones":{"type":"object","properties":{"type":{"type":"string","enum":["FeatureCollection"]},"features":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"properties":{"type":"object","properties":{"RATE":{"type":"number","minimum":0,"description":"Application rate for this zone","example":120.5},"UNIT":{"type":"string","enum":["kg_ha","l_ha"],"description":"Unit of measurement for fertilizer application rate","example":"kg_ha"}},"required":["RATE","UNIT"],"additionalProperties":false}},"required":["type","geometry","properties"],"additionalProperties":false}}},"required":["type","features"],"additionalProperties":false}},"required":["kind","cultivationId","year","fieldName","productName","mode","zones"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["applicationMap"]},"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"year":{"type":"integer","minimum":2000,"maximum":2100},"fieldName":{"type":"string","minLength":1,"maxLength":120},"productName":{"type":"string","minLength":1,"maxLength":120},"target":{"type":"object","properties":{"equipmentId":{"description":"CLAAS: the OFT terminal id (required).","type":"string"},"deviceIds":{"description":"AGCO: PTx display ids to push the prescription to.","type":"array","items":{"type":"string"}}},"additionalProperties":false},"mode":{"type":"string","enum":["planting"]},"zones":{"type":"object","properties":{"type":{"type":"string","enum":["FeatureCollection"]},"features":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"properties":{"type":"object","properties":{"RATE":{"type":"number","minimum":0,"description":"Seeding rate for this zone","example":32},"UNIT":{"type":"string","enum":["kg_ha","grains_m2"],"description":"Unit of measurement for seeding rate","example":"grains_m2"}},"required":["RATE","UNIT"],"additionalProperties":false}},"required":["type","geometry","properties"],"additionalProperties":false}}},"required":["type","features"],"additionalProperties":false}},"required":["kind","cultivationId","year","fieldName","productName","mode","zones"],"additionalProperties":false}],"description":"An application (fertilizerApplication) or seeding (planting) map: zones carry `RATE` + one common `UNIT`. CLAAS requires `target.equipmentId`; AGCO accepts optional `target.deviceIds` and needs the field linked by the FarmENGAGE field sync.","type":"object"},"GetProviderExportsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProviderExportJobOutput"}},"nextCursor":{"nullable":true,"type":"string"},"truncated":{"type":"boolean"}},"required":["items","nextCursor","truncated"],"additionalProperties":false},"GetMeOrganizationsResponse":{"type":"array","items":{"$ref":"#/components/schemas/MeOrganizationOutput"},"description":"The organizations the authenticated user is a member of. OAuth integrations use this endpoint to discover the user's organization(s)."},"PostFieldsRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"crop":{"type":"string","enum":["silageMaize","winterWheat","canola","sugarBeet","winterBarleyFodder","springBarleyMalting","springOatsFodder","springWheatFodder","winterRyeBaking","fieldGrassWiltedSilage","permanentGrasslandWiltedSilage","potatoTableLate","peasDry","peasDryFodder","triticaleFodder","broadBeans","sunflower","grassSeed","hardWheat","grainMaize","soybeanBeans","cerealRyeIntercrop","mustardIntercrop","oilRadishIntercrop","persianCloverIntercrop","phaceliaIntercrop","ryeWholePlantSilage","lupine","spelt","landscapeFeature","nonProductiveArea","alfalfa","winterOats","springRye","springTriticale","springCanola","springDurum","winterBroadBeans","winterPeas","potatoStarch","seedPotato","potatoTableEarly","cornCobMix","maizeBiogas","sorghum","buckwheat","millet","lentils","chickpeas","linseed","hemp","poppy","fodderBeet","vetch","quinoa","emmer","einkorn","clover","cloverGrass","alfalfaGrass","intercropMixture","blackOatIntercrop","vetchIntercrop","crimsonCloverIntercrop","alexandrineCloverIntercrop","buckwheatIntercrop","sunflowerIntercrop","nigerIntercrop","sorghumIntercrop","linseedIntercrop","camelinaIntercrop","serradellaIntercrop","ryegrassUndersow","cloverGrassUndersow","onion","garlic","leek","carrot","whiteCabbage","redCabbage","savoyCabbage","cauliflower","broccoli","kale","kohlrabi","brusselsSprouts","chineseCabbage","lettuce","lambsLettuce","spinach","beetroot","celeriac","fennel","endive","bushBeans","sweetCorn","pumpkin","cucumber","tomato","bellPepper","asparagus","strawberry","hops","grapevine","rhubarb","pomeFruit","stoneFruit","rice","cowpeas","dryBeans","grainSorghum","foxtailMillet","pearlMillet","fallow","springCerealMixture","cerealLegumeMixture","legumeMixture","amaranth","otherCereals","otherLegumes","otherOilseeds","crambe","camelina","swede","fenugreek","birdsfootTrefoil","sainfoin","serradella","sweetClover","meadowOrchard","jerusalemArtichoke","sweetPotato","otherVegetables","brassicaVegetables","turnip","brownMustard","watercress","rucola","gardenCress","radish","grainMustard","eggplant","belladonna","melon","watermelon","alliumVegetables","orache","sorrel","parsnip","horseradish","scorzonera","artichoke","otherHerbs","dill","chervil","anise","caraway","cumin","blackCumin","coriander","lovage","parsley","basil","rosemary","sage","borage","oregano","savory","hyssop","verbena","lavender","thyme","lemonBalm","gentian","mint","artemisia","calendula","echinacea","ribwortPlantain","chamomile","yarrow","valerian","stJohnsWort","ladysMantle","milkThistle","goatsRue","dandelion","angelica","mallow","arnica","turfGrass","woad","canaryGrass","tobacco","safflower","nettle","madder","ornamentalPlants","phaceliaMainCrop","otherEnergyCrops","silphium","virginiaMallow","knotweed","switchgrass","miscanthus","szarvasiGrass","reedCanaryGrass","otherFruit","bushBerries","seaBuckthorn","hazelnut","walnut","otherNuts","treeNursery","shortRotationCoppice","poplarCoppice","willowCoppice","otherPermanentCrops","christmasTrees","mushrooms","greenManure","otherArableCrops","unknownCrop"]},"variety":{"description":"Variety name (free text). Fuzzy-matched to the catalogue: case-, whitespace- and manufacturer-prefix-insensitive (e.g. \"arturello\", \"KWS Arturello\" and \"ARTURELLO \" all resolve to the same variety).","type":"string","minLength":1},"usage":{"description":"Purpose of the cultivation: COMMERCIAL (market production, the default) or SEED_MULTIPLICATION (certified seed production of the same crop). Available for every crop; null is treated like an omitted field.","type":"string","enum":["COMMERCIAL","SEED_MULTIPLICATION"]},"seedLot":{"description":"Seed lot / certification number of a seed multiplication. Only kept while usage is SEED_MULTIPLICATION; null or \"\" clears it.","nullable":true,"type":"string","maxLength":100},"multiplicationGeneration":{"description":"Multiplication generation of a seed multiplication (e.g. Basic, C1, Z1). Only kept while usage is SEED_MULTIPLICATION; null or \"\" clears it.","nullable":true,"type":"string","maxLength":50},"year":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"sowingDate":{"format":"date","type":"string"},"sowingDateComputed":{"description":"true: `sowingDate` was not booked in the source system but filled in (e.g. with today) — the sowing operation is marked as having a computed date. Only applied together with `sowingDate`.","type":"boolean"},"harvestDate":{"format":"date","type":"string"},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"parcelId":{"type":"string"},"flik":{"type":"string"},"nitrateSensitiveZone":{"type":"boolean"},"properties":{},"bartoFieldId":{"type":"string"},"bartoOrgId":{"type":"string"},"landor":{"description":"When set, syncs every cultivation year in the payload to its own cultivation of the new field (missing cultivations are created from the Landor crop). Only Landor-sourced Fertilizing rows are replaced; the outcome is reported in the response's landorSync field.","type":"object","properties":{"matchedBy":{"type":"string"},"matches":{"type":"array","items":{"type":"object","properties":{"planId":{"type":"string"},"planName":{"type":"string"},"cultivationYear":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"landorField":{"type":"object","properties":{"name":{"type":"string"},"areaInHa":{"nullable":true,"type":"number"},"farmNetId":{"type":"string"},"crop":{"type":"object","properties":{"nameDe":{"type":"string"},"nameFr":{"nullable":true,"type":"string"},"farmNetId":{"type":"string"}},"required":["nameDe","farmNetId"],"additionalProperties":false},"growthStates":{"type":"array","items":{"type":"object","properties":{"bbchCode":{"nullable":true,"type":"string"},"date":{"type":"string"},"nameDe":{"nullable":true,"type":"string"},"nameFr":{"nullable":true,"type":"string"},"fertilizer":{"nullable":true,"type":"object","properties":{"nameDe":{"type":"string"},"nameFr":{"nullable":true,"type":"string"},"farmNetId":{"nullable":true,"type":"string"},"amountPerHa":{"type":"object","properties":{"amount":{"type":"number"},"unit":{"nullable":true,"type":"string"}},"required":["amount"],"additionalProperties":false,"description":"Application amount per hectare"},"amountN":{"type":"number"},"amountP2O5":{"type":"number"},"amountK2O":{"type":"number"},"amountMg":{"nullable":true,"type":"number"},"amountS":{"nullable":true,"type":"number"},"amountCaO":{"nullable":true,"type":"number"}},"required":["nameDe","amountPerHa","amountN","amountP2O5","amountK2O"],"additionalProperties":false}},"required":["date"],"additionalProperties":false}}},"required":["name","farmNetId","crop","growthStates"],"additionalProperties":false}},"required":["planId","planName","cultivationYear","landorField"],"additionalProperties":false}},"syncYears":{"description":"Cultivation years the caller fetched Landor plans for. A listed year without fertilizer applications has its planned Landor fertilizations removed; without this field such a year is left untouched.","type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["matchedBy","matches"],"additionalProperties":false},"fertiplan":{"description":"When set, deletes existing Fertiplan-sourced Fertilizing transactions for the new cultivation and inserts rows from the Fertiplan plan's fertilizers, plus any attached soil samples.","type":"object","properties":{"matchedBy":{"type":"string"},"matches":{"type":"array","items":{"type":"object","properties":{"planId":{"anyOf":[{"type":"string"},{"type":"number"}]},"planName":{"type":"string"},"cultivationYear":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fertiplanField":{"type":"object","properties":{"name":{"type":"string"},"areaInHa":{"nullable":true,"type":"number"},"farmNetId":{"type":"string"},"crop":{"nullable":true,"type":"object","properties":{"nameDe":{"type":"string"},"nameFr":{"nullable":true,"type":"string"},"farmNetId":{"type":"string"}},"required":["nameDe","farmNetId"],"additionalProperties":false},"fertilizers":{"type":"array","items":{"type":"object","properties":{"nameDe":{"type":"string"},"nameFr":{"nullable":true,"type":"string"},"farmNetId":{"nullable":true,"type":"string"},"amountPerHa":{"type":"object","properties":{"amount":{"type":"number"},"unit":{"nullable":true,"type":"string"}},"required":["amount"],"additionalProperties":false,"description":"Application amount per hectare"},"amountN":{"type":"number"},"amountP2O5":{"type":"number"},"amountK2O":{"type":"number"},"amountMg":{"nullable":true,"type":"number"},"type":{"nullable":true,"type":"string"}},"required":["nameDe","amountPerHa","amountN","amountP2O5","amountK2O"],"additionalProperties":false}},"expectedYield":{"nullable":true,"type":"number"},"nutrientValueN":{"nullable":true,"type":"number"},"nutrientValueP2O5":{"nullable":true,"type":"number"},"nutrientValueK2O":{"nullable":true,"type":"number"},"nutrientValueMg":{"nullable":true,"type":"number"}},"required":["name","farmNetId"],"additionalProperties":false}},"required":["planId","planName","cultivationYear","fertiplanField"],"additionalProperties":false}},"soilSamples":{"type":"array","items":{"type":"object","properties":{"name":{"nullable":true,"type":"string"},"date":{"nullable":true,"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"farmNetId":{"type":"string"}},"required":["name","farmNetId"],"additionalProperties":false}},"reference":{"nullable":true,"type":"string"},"analysisType":{"nullable":true,"type":"string"},"soilType":{"nullable":true,"type":"string"},"percentageHumus":{"nullable":true,"type":"number"},"valuePh":{"nullable":true,"type":"number"},"clayClassification":{"nullable":true,"type":"string"},"correctionFactorP2o5":{"nullable":true,"type":"number"},"correctionFactorK2o":{"nullable":true,"type":"number"},"correctionFactorMg":{"nullable":true,"type":"number"}},"additionalProperties":false}}},"required":["matchedBy","matches"],"additionalProperties":false}},"required":["name","crop","geometry"],"additionalProperties":false,"description":"The request body to create a field from","example":{"name":"Field 1","crop":"winterWheat","variety":"Absint","year":2026,"sowingDate":"2025-10-15","harvestDate":"2026-08-01","geometry":{"type":"MultiPolygon","coordinates":[[[[-1,-1],[-1,1],[1,1],[1,-1],[-1,-1]]]]},"properties":{"arbitraryProperty":"Optionally use properties to store arbitrary JSON information. This can be used to attach any notes or metadata to the field."}}},"PostFieldsResponse":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"crop":{"type":"string","enum":["silageMaize","winterWheat","canola","sugarBeet","winterBarleyFodder","springBarleyMalting","springOatsFodder","springWheatFodder","winterRyeBaking","fieldGrassWiltedSilage","permanentGrasslandWiltedSilage","potatoTableLate","peasDry","peasDryFodder","triticaleFodder","broadBeans","sunflower","grassSeed","hardWheat","grainMaize","soybeanBeans","cerealRyeIntercrop","mustardIntercrop","oilRadishIntercrop","persianCloverIntercrop","phaceliaIntercrop","ryeWholePlantSilage","lupine","spelt","landscapeFeature","nonProductiveArea","alfalfa","winterOats","springRye","springTriticale","springCanola","springDurum","winterBroadBeans","winterPeas","potatoStarch","seedPotato","potatoTableEarly","cornCobMix","maizeBiogas","sorghum","buckwheat","millet","lentils","chickpeas","linseed","hemp","poppy","fodderBeet","vetch","quinoa","emmer","einkorn","clover","cloverGrass","alfalfaGrass","intercropMixture","blackOatIntercrop","vetchIntercrop","crimsonCloverIntercrop","alexandrineCloverIntercrop","buckwheatIntercrop","sunflowerIntercrop","nigerIntercrop","sorghumIntercrop","linseedIntercrop","camelinaIntercrop","serradellaIntercrop","ryegrassUndersow","cloverGrassUndersow","onion","garlic","leek","carrot","whiteCabbage","redCabbage","savoyCabbage","cauliflower","broccoli","kale","kohlrabi","brusselsSprouts","chineseCabbage","lettuce","lambsLettuce","spinach","beetroot","celeriac","fennel","endive","bushBeans","sweetCorn","pumpkin","cucumber","tomato","bellPepper","asparagus","strawberry","hops","grapevine","rhubarb","pomeFruit","stoneFruit","rice","cowpeas","dryBeans","grainSorghum","foxtailMillet","pearlMillet","fallow","springCerealMixture","cerealLegumeMixture","legumeMixture","amaranth","otherCereals","otherLegumes","otherOilseeds","crambe","camelina","swede","fenugreek","birdsfootTrefoil","sainfoin","serradella","sweetClover","meadowOrchard","jerusalemArtichoke","sweetPotato","otherVegetables","brassicaVegetables","turnip","brownMustard","watercress","rucola","gardenCress","radish","grainMustard","eggplant","belladonna","melon","watermelon","alliumVegetables","orache","sorrel","parsnip","horseradish","scorzonera","artichoke","otherHerbs","dill","chervil","anise","caraway","cumin","blackCumin","coriander","lovage","parsley","basil","rosemary","sage","borage","oregano","savory","hyssop","verbena","lavender","thyme","lemonBalm","gentian","mint","artemisia","calendula","echinacea","ribwortPlantain","chamomile","yarrow","valerian","stJohnsWort","ladysMantle","milkThistle","goatsRue","dandelion","angelica","mallow","arnica","turfGrass","woad","canaryGrass","tobacco","safflower","nettle","madder","ornamentalPlants","phaceliaMainCrop","otherEnergyCrops","silphium","virginiaMallow","knotweed","switchgrass","miscanthus","szarvasiGrass","reedCanaryGrass","otherFruit","bushBerries","seaBuckthorn","hazelnut","walnut","otherNuts","treeNursery","shortRotationCoppice","poplarCoppice","willowCoppice","otherPermanentCrops","christmasTrees","mushrooms","greenManure","otherArableCrops","unknownCrop"]},"variety":{"description":"Variety name (GET /cultivations returns the catalogue UUID of the variety instead)","nullable":true,"type":"string"},"usage":{"description":"COMMERCIAL or SEED_MULTIPLICATION; absent for a field row without a cultivation in the year","type":"string","enum":["COMMERCIAL","SEED_MULTIPLICATION"]},"seedLot":{"nullable":true,"description":"Seed lot of a seed multiplication, null otherwise","type":"string"},"multiplicationGeneration":{"nullable":true,"description":"Multiplication generation of a seed multiplication, null otherwise","type":"string"},"year":{"type":"number","description":"Year the cultivation is filed under. A catch crop belongs to the following year: creating one with year 2026 answers 2027."},"sowingDate":{"format":"date","description":"Derived from the cultivation's planting operations (earliest planting action).","type":"string"},"harvestDate":{"format":"date","description":"Derived from the cultivation's harvest operations (latest one).","type":"string"},"areaInHa":{"type":"number","minimum":0,"exclusiveMinimum":true,"description":"Area of the cultivation (sub-field) this row describes","x-unit":"ha"},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"cultivationId":{"description":"Cultivation (sub-field) this row describes. Lists return ONE row per cultivation; a field with several cultivations in a year repeats its id with distinct cultivationIds.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"fieldGeometry":{"description":"Parent field outline. Only present when the field has more than one cultivation this year (row geometry is then the sub-field polygon).","anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"landorSync":{"type":"object","properties":{"syncedYears":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"skippedYears":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["syncedYears","skippedYears","warnings"],"additionalProperties":false,"description":"Outcome of syncing a Landor payload. Every cultivation year in the payload is synced to its own cultivation, and every year in syncYears without applications is cleared; years that could not be synced are listed in skippedYears with a warning. A sync failure never fails the field operation itself."}},"required":["id","name","crop","year","areaInHa","geometry"],"additionalProperties":false,"description":"Response body after creating a field","example":{"id":"11ca3ee5-bba1-4402-a9ad-07cbbeec5a14","name":"Field 1","crop":"winterWheat","variety":"Absint","usage":"COMMERCIAL","seedLot":null,"multiplicationGeneration":null,"year":2026,"sowingDate":"2025-10-15","harvestDate":"2026-08-01","areaInHa":3.74,"geometry":{"type":"MultiPolygon","coordinates":[[[[-1,-1],[-1,1],[1,1],[1,-1],[-1,-1]]]]}}},"GetFieldsResponse":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"crop":{"description":"Crop of the cultivation this row describes. Null when the field has no cultivation in the requested year (such rows only appear with a ?year= filter).","nullable":true,"type":"string","enum":["silageMaize","winterWheat","canola","sugarBeet","winterBarleyFodder","springBarleyMalting","springOatsFodder","springWheatFodder","winterRyeBaking","fieldGrassWiltedSilage","permanentGrasslandWiltedSilage","potatoTableLate","peasDry","peasDryFodder","triticaleFodder","broadBeans","sunflower","grassSeed","hardWheat","grainMaize","soybeanBeans","cerealRyeIntercrop","mustardIntercrop","oilRadishIntercrop","persianCloverIntercrop","phaceliaIntercrop","ryeWholePlantSilage","lupine","spelt","landscapeFeature","nonProductiveArea","alfalfa","winterOats","springRye","springTriticale","springCanola","springDurum","winterBroadBeans","winterPeas","potatoStarch","seedPotato","potatoTableEarly","cornCobMix","maizeBiogas","sorghum","buckwheat","millet","lentils","chickpeas","linseed","hemp","poppy","fodderBeet","vetch","quinoa","emmer","einkorn","clover","cloverGrass","alfalfaGrass","intercropMixture","blackOatIntercrop","vetchIntercrop","crimsonCloverIntercrop","alexandrineCloverIntercrop","buckwheatIntercrop","sunflowerIntercrop","nigerIntercrop","sorghumIntercrop","linseedIntercrop","camelinaIntercrop","serradellaIntercrop","ryegrassUndersow","cloverGrassUndersow","onion","garlic","leek","carrot","whiteCabbage","redCabbage","savoyCabbage","cauliflower","broccoli","kale","kohlrabi","brusselsSprouts","chineseCabbage","lettuce","lambsLettuce","spinach","beetroot","celeriac","fennel","endive","bushBeans","sweetCorn","pumpkin","cucumber","tomato","bellPepper","asparagus","strawberry","hops","grapevine","rhubarb","pomeFruit","stoneFruit","rice","cowpeas","dryBeans","grainSorghum","foxtailMillet","pearlMillet","fallow","springCerealMixture","cerealLegumeMixture","legumeMixture","amaranth","otherCereals","otherLegumes","otherOilseeds","crambe","camelina","swede","fenugreek","birdsfootTrefoil","sainfoin","serradella","sweetClover","meadowOrchard","jerusalemArtichoke","sweetPotato","otherVegetables","brassicaVegetables","turnip","brownMustard","watercress","rucola","gardenCress","radish","grainMustard","eggplant","belladonna","melon","watermelon","alliumVegetables","orache","sorrel","parsnip","horseradish","scorzonera","artichoke","otherHerbs","dill","chervil","anise","caraway","cumin","blackCumin","coriander","lovage","parsley","basil","rosemary","sage","borage","oregano","savory","hyssop","verbena","lavender","thyme","lemonBalm","gentian","mint","artemisia","calendula","echinacea","ribwortPlantain","chamomile","yarrow","valerian","stJohnsWort","ladysMantle","milkThistle","goatsRue","dandelion","angelica","mallow","arnica","turfGrass","woad","canaryGrass","tobacco","safflower","nettle","madder","ornamentalPlants","phaceliaMainCrop","otherEnergyCrops","silphium","virginiaMallow","knotweed","switchgrass","miscanthus","szarvasiGrass","reedCanaryGrass","otherFruit","bushBerries","seaBuckthorn","hazelnut","walnut","otherNuts","treeNursery","shortRotationCoppice","poplarCoppice","willowCoppice","otherPermanentCrops","christmasTrees","mushrooms","greenManure","otherArableCrops","unknownCrop"]},"variety":{"description":"Variety name (GET /cultivations returns the catalogue UUID of the variety instead)","nullable":true,"type":"string"},"usage":{"description":"COMMERCIAL or SEED_MULTIPLICATION; absent for a field row without a cultivation in the year","type":"string","enum":["COMMERCIAL","SEED_MULTIPLICATION"]},"seedLot":{"nullable":true,"description":"Seed lot of a seed multiplication, null otherwise","type":"string"},"multiplicationGeneration":{"nullable":true,"description":"Multiplication generation of a seed multiplication, null otherwise","type":"string"},"year":{"type":"number","description":"Year the cultivation is filed under. A catch crop belongs to the following year: creating one with year 2026 answers 2027."},"sowingDate":{"format":"date","description":"Derived from the cultivation's planting operations (earliest planting action).","type":"string"},"harvestDate":{"format":"date","description":"Derived from the cultivation's harvest operations (latest one).","type":"string"},"areaInHa":{"type":"number","minimum":0,"exclusiveMinimum":true,"description":"Area of the cultivation (sub-field) this row describes","x-unit":"ha"},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"cultivationId":{"description":"Cultivation (sub-field) this row describes. Lists return ONE row per cultivation; a field with several cultivations in a year repeats its id with distinct cultivationIds.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"fieldGeometry":{"description":"Parent field outline. Only present when the field has more than one cultivation this year (row geometry is then the sub-field polygon).","anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":["id","name","year","areaInHa","geometry"],"additionalProperties":false},"description":"Fields of the organization, one row per cultivation. With a ?year= filter, fields without a cultivation that year are included once with crop = null."},"PostPredictionsRequest":{"type":"object","properties":{"fieldIds":{"type":"array","items":{"type":"string"}},"year":{"type":"number"},"lastHarvest":{"nullable":true,"type":"array","items":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"targetDMC":{"type":"number","minimum":0.001,"maximum":1}},"required":["fieldIds","lastHarvest","targetDMC"],"additionalProperties":false,"description":"Request body to get predictions for a list of fields","example":{"fieldIds":["11ca3ee5-bba1-4402-a9ad-07cbbeec5a14"],"year":2025,"lastHarvest":["2025-06-01"],"targetDMC":0.2}},"PostPredictionsResponse":{"type":"object","properties":{"serviceVersion":{"description":"Version (image tag) of the grassland model service that produced the series.","type":"string"},"total":{"type":"object","properties":{"year":{"type":"number"},"areaInHa":{"type":"number","minimum":0,"exclusiveMinimum":true},"today":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"lastHarvest":{"nullable":true,"type":"array","items":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"targetDMC":{"type":"number","minimum":0.001,"maximum":1},"yieldFM_targetDMC":{"type":"object","properties":{"total":{"type":"number"},"perArea":{"type":"number"}},"required":["total","perArea"],"additionalProperties":false},"yieldFM":{"type":"object","properties":{"total":{"type":"number"},"perArea":{"type":"number"}},"required":["total","perArea"],"additionalProperties":false},"yieldDM":{"type":"object","properties":{"total":{"type":"number"},"perArea":{"type":"number"}},"required":["total","perArea"],"additionalProperties":false}},"required":["date","lastHarvest","targetDMC","yieldFM_targetDMC","yieldFM","yieldDM"],"additionalProperties":false},"timeseries":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"DMC":{"type":"array","items":{"type":"number"}},"yieldFM_targetDMC":{"type":"array","items":{"type":"number"}},"yieldFM":{"type":"array","items":{"type":"number"}},"yieldDM":{"type":"array","items":{"type":"number"}},"BBCH":{"type":"array","items":{"type":"number","minimum":0,"maximum":100}},"GDD":{"type":"array","items":{"type":"number"}},"CumulatedBiologicalDays":{"type":"array","items":{"type":"number"}},"DailyTemperatureUnit":{"type":"array","items":{"type":"number"}},"LeafAreaIndex":{"type":"array","items":{"type":"number"}},"nFK":{"type":"array","items":{"type":"number"}}},"required":["keys","DMC","yieldFM_targetDMC","yieldFM","yieldDM","BBCH","GDD","CumulatedBiologicalDays","DailyTemperatureUnit","LeafAreaIndex","nFK"],"additionalProperties":false}},"required":["year","areaInHa","today","timeseries"],"additionalProperties":false},"fields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"year":{"type":"number"},"areaInHa":{"type":"number","minimum":0,"exclusiveMinimum":true},"today":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"lastHarvest":{"nullable":true,"type":"array","items":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"targetDMC":{"type":"number","minimum":0.001,"maximum":1},"yieldFM_targetDMC":{"type":"object","properties":{"total":{"type":"number"},"perArea":{"type":"number"}},"required":["total","perArea"],"additionalProperties":false},"yieldFM":{"type":"object","properties":{"total":{"type":"number"},"perArea":{"type":"number"}},"required":["total","perArea"],"additionalProperties":false},"yieldDM":{"type":"object","properties":{"total":{"type":"number"},"perArea":{"type":"number"}},"required":["total","perArea"],"additionalProperties":false}},"required":["date","lastHarvest","targetDMC","yieldFM_targetDMC","yieldFM","yieldDM"],"additionalProperties":false},"timeseries":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"DMC":{"type":"array","items":{"type":"number"}},"yieldFM_targetDMC":{"type":"array","items":{"type":"number"}},"yieldFM":{"type":"array","items":{"type":"number"}},"yieldDM":{"type":"array","items":{"type":"number"}},"BBCH":{"type":"array","items":{"type":"number","minimum":0,"maximum":100}},"GDD":{"type":"array","items":{"type":"number"}},"CumulatedBiologicalDays":{"type":"array","items":{"type":"number"}},"DailyTemperatureUnit":{"type":"array","items":{"type":"number"}},"LeafAreaIndex":{"type":"array","items":{"type":"number"}},"nFK":{"type":"array","items":{"type":"number"}}},"required":["keys","DMC","yieldFM_targetDMC","yieldFM","yieldDM","BBCH","GDD","CumulatedBiologicalDays","DailyTemperatureUnit","LeafAreaIndex","nFK"],"additionalProperties":false}},"required":["id","year","areaInHa","today","timeseries"],"additionalProperties":false}}},"required":["total","fields"],"additionalProperties":false,"description":"Response body containing the predictions for a list of fields. Hereby the 'today' section resembles per area and total field values for the requested (current) day. The 'timeseries' section contains the time series data for the requested field. The keys are the timestamps, and the values are the respective values for yield FM (per area, t/ha), yield DM (per area, t/ha), and DMC. Further parameters cover: BBCH (growth stage), GDD (growing degree days in °C), CumulatedBiologicalDays (accumulated biological days), DailyTemperatureUnit (temperature units per day in °C), LeafAreaIndex (leaf area index), and nFK (available field capacity (nutzbare Feldkapazität), in mm).","example":{"total":{"year":2025,"areaInHa":3.74,"today":{"date":"2025-06-01","lastHarvest":["2025-05-07"],"targetDMC":0.2,"yieldFM":{"total":78.54,"perArea":21},"yieldFM_targetDMC":{"total":78.54,"perArea":21},"yieldDM":{"total":26.18,"perArea":7}},"timeseries":{"keys":["2025-05-30","2025-05-31","2025-06-01","2025-06-02","2025-06-03","2025-06-04"],"yieldFM":[20.6,20.8,21,21.2,21.4,21.6],"yieldFM_targetDMC":[20.6,20.8,21,21.2,21.4,21.6],"yieldDM":[6.8,6.9,7,7.1,7.2,7.3],"DMC":[0.33,0.33,0.33,0.33,0.33,0.34],"BBCH":[30,31,32,33,34,35],"GDD":[100,115,130,140,150,155,155],"CumulatedBiologicalDays":[20,20.5,21.5,22,23,24],"DailyTemperatureUnit":[15,15,10,10,5,0],"LeafAreaIndex":[0.1,0.2,0.3,0.4,0.5,0.6],"nFK":[50,60,70,80,90,100]}},"fields":[{"id":"11ca3ee5-bba1-4402-a9ad-07cbbeec5a14","year":2025,"areaInHa":3.74,"today":{"date":"2025-06-01","lastHarvest":["2025-05-07"],"targetDMC":0.2,"yieldFM":{"total":78.54,"perArea":21},"yieldFM_targetDMC":{"total":78.54,"perArea":21},"yieldDM":{"total":26.18,"perArea":7}},"timeseries":{"keys":["2025-05-30","2025-05-31","2025-06-01","2025-06-02","2025-06-03","2025-06-04"],"yieldFM":[20.6,20.8,21,21.2,21.4,21.6],"yieldFM_targetDMC":[20.6,20.8,21,21.2,21.4,21.6],"yieldDM":[6.8,6.9,7,7.1,7.2,7.3],"DMC":[0.33,0.33,0.33,0.33,0.33,0.34],"BBCH":[30,31,32,33,34,35],"GDD":[100,115,130,140,150,155,155],"CumulatedBiologicalDays":[20,20.5,21.5,22,23,24],"DailyTemperatureUnit":[15,15,10,10,5,0],"LeafAreaIndex":[0.1,0.2,0.3,0.4,0.5,0.6],"nFK":[50,60,70,80,90,100]}}]}},"PostVrnRecommendationRequest":{"type":"object","properties":{"zonation":{"type":"object","properties":{"count":{"description":"Number of desired zones for fertilizer application map.","example":5,"type":"number","minimum":1,"maximum":10},"method":{"default":"yield_potential","description":"Method used for zonation in the fertilizer application map.","example":"yield_potential","type":"string","enum":["yield_potential","ndvi_recent","ndvi_longterm"]}},"additionalProperties":false},"border":{"type":"object","properties":{"width":{"type":"number","minimum":0,"description":"Width of the border zone around the field in meters.","example":8},"amount":{"type":"number","minimum":0,"description":"Amount of fertilizer to apply in the border zone in kgN/ha.","example":15}},"required":["width","amount"],"additionalProperties":false},"nitrogen":{"type":"object","properties":{"yieldExpectation":{"description":"User yield expectation in t/ha fresh matter. Specify lower and upper bounds. Nitrogen demand correlates with yield expectation (yield response curve). If omitted, an internal yield prediction model is used.","anyOf":[{"type":"number"},{"type":"array","items":{"type":"number"}}]},"nMin":{"description":"User-defined nitrogen content in the soil at the start of the season in kgN/ha (Nmin). If omitted, a modeled value is used.","type":"number","minimum":0},"nMinSpring":{"description":"User-defined nitgogen amount becoming plant-available due to mineralization during the season in kgN/ha. If omitted, a modeled value is used.","type":"number","minimum":0},"nLoss":{"description":"User-defined nitrogen loss during the season due to leaching, denitrification and volatilization in kgN/ha. If omitted, a modeled value is used.","type":"number","minimum":0},"nResidual":{"description":"User-defined residual nitrogen left in the soil after harvest in kgN/ha. If omitted, a modeled value is used.","type":"number","minimum":0}},"additionalProperties":false},"application":{"type":"object","properties":{"fraction":{"description":"Fraction of the total fertilizer demand to be applied in this application.","type":"number","minimum":0,"maximum":1},"date":{"format":"date","description":"Planned date of application.","type":"string"},"number":{"description":"Number of application in the season (e.g. 1. Gabe , 2. Gabe, ...).","type":"number","minimum":1,"maximum":4},"machineConstraints":{"description":"Minimum / maximum possible product amount per zone due to machine constraints. In product units per hectare (e.g., kg/ha).","example":[0,1000],"type":"array","items":{"type":"number"}}},"additionalProperties":false},"product":{"type":"object","properties":{"fqn":{"description":"Product fully qualified name. Nitrogen content is taken from product database.","type":"string"},"nContent":{"description":"Manual entry for product nitrogen content in percent. Overrides product database if 'fqn' is also provided. At least one of 'fqn' or 'nContent' must be provided.","type":"number","minimum":0,"maximum":100}},"additionalProperties":false}},"required":["product"],"additionalProperties":false,"example":{"zonation":{"count":5,"method":"ndvi_longterm"},"border":{"width":10,"amount":50},"nitrogen":{"yieldExpectation":[6,8],"nMin":20,"nMinSpring":25,"nLoss":30,"nResidual":30},"application":{"fraction":0.7},"product":{"fqn":"MINERAL__AHL_28","nContent":28}}},"PostVrnRecommendationResponse":{"type":"object","properties":{"executionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Unique identifier for this recommendation"},"fieldId":{"type":"string","description":"The field this recommendation applies to"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The harvest year"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"When the recommendation was generated"},"validUntil":{"description":"Recommendation validity window (conditions may change)","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"fertilizer":{"type":"object","properties":{"name":{"type":"string","description":"Fertilizer product name"},"nContent":{"type":"number","minimum":0,"maximum":100,"description":"Nitrogen content in percent"},"fqn":{"description":"Reference to fertilizer database","type":"string"}},"required":["name","nContent"],"additionalProperties":false,"description":"Fertilizer product information"},"summary":{"description":"Aggregated statistics for the recommendation","allOf":[{"$ref":"#/components/schemas/VrnSummaryOutput"}]},"zones":{"type":"array","items":{"$ref":"#/components/schemas/VrnZoneOutput"},"description":"Management zones with individual rates"}},"required":["executionId","fieldId","year","createdAt","fertilizer","summary","zones"],"additionalProperties":false,"ref":"PostVrnRecommendationResponse","description":"Variable rate nitrogen recommendation with management zones and export options","example":{"executionId":"550e8400-e29b-41d4-a716-446655440000","fieldId":"11ca3ee5-bba1-4402-a9ad-07cbbeec5a14","year":2025,"createdAt":"2025-01-09T14:30:00Z","validUntil":"2025-01-16T14:30:00Z","fertilizer":{"name":"KAS 27%","nContent":27},"summary":{"totalAreaHa":42.5,"totalProductKg":4720,"totalNitrogenKg":1274,"avgRateKgNPerHa":30,"minRateKgNPerHa":20,"maxRateKgNPerHa":45,"zoneCount":5},"zones":[]}},"PostVrsRecommendationRequest":{"type":"object","properties":{"seedDetails":{"type":"object","properties":{"tkg":{"type":"number","minimum":10,"maximum":500,"description":"Thousand kernel weight in grams"},"germinationRate":{"default":95,"description":"Germination rate in percent","type":"number","minimum":50,"maximum":100},"seedUnits":{"default":"kernels","description":"Whether planter works in kernels/m² or kg/ha","type":"string","enum":["kernels","kg"]}},"required":["tkg"],"additionalProperties":false,"description":"Seed lot specifications"},"strategy":{"default":"yieldPotential","description":"Seeding strategy approach to generate the variable rate map. Available options are:\n\n- yieldPotential: Allocate more seeds to zones with higher yield potential to maximize overall yield.\n- riskMitigation: Allocate more seeds to zones with lower yield potential to compensate for stress factors.\n- uniform: Apply a uniform seeding rate across the entire field as a baseline.\n- custom: Use user-defined seeding rates for each management zone.","example":"yieldPotential","type":"string","enum":["yieldPotential","riskMitigation","uniform","custom"]},"targetDensity":{"type":"object","properties":{"base":{"type":"number","description":"Base target plant density in plants/m²"},"min":{"description":"Minimum allowed density in plants/m²","type":"number"},"max":{"description":"Maximum allowed density in plants/m²","type":"number"},"variationPercent":{"default":15,"description":"Max variation per yield variation in percent (100% means: 20% more yield -> 20% more seeds. 50% means: 20% more yield -> 10% more seeds if yieldPotential strategy is used)","type":"number","minimum":0,"maximum":200}},"required":["base"],"additionalProperties":false,"description":"Target plant density configuration"},"rasterBase":{"type":"object","properties":{"yearAnalysis":{"description":"Years to include in the yield potential analysis.","example":[2022,2024,2025],"type":"array","items":{"type":"integer","minimum":2000,"maximum":2100}}},"additionalProperties":false},"zonation":{"type":"object","properties":{"nrZones":{"default":5,"type":"number","minimum":1,"maximum":10}},"additionalProperties":false}},"required":["seedDetails","targetDensity"],"additionalProperties":false,"ref":"PostVrsRecommendationRequest","description":"Request parameters for generating a variable rate seeding recommendation","example":{"seedDetails":{"tkg":48,"germinationRate":94,"seedUnits":"kernels"},"strategy":"yieldPotential","targetDensity":{"base":320,"min":280,"max":380,"variationPercent":15},"rasterBase":{"yearAnalysis":[2022,2023,2024]},"zonation":{"nrZones":5}}},"PostVrsRecommendationResponse":{"type":"object","properties":{"executionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Unique identifier for this recommendation"},"fieldId":{"type":"string","description":"The field this recommendation applies to"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The harvest year"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"When the recommendation was generated"},"validUntil":{"description":"Recommendation validity window (conditions may change)","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"seedDetails":{"type":"object","properties":{"variety":{"type":"string","description":"Seed variety name"},"tkg":{"type":"number","minimum":10,"maximum":500,"description":"Thousand kernel weight in grams"},"germinationRate":{"type":"number","minimum":50,"maximum":100,"description":"Germination rate in percent"},"seedUnits":{"type":"string","enum":["kernels","kg"],"description":"Planter unit type"}},"required":["variety","tkg","germinationRate","seedUnits"],"additionalProperties":false,"description":"Seed lot specifications"},"summary":{"description":"Aggregated statistics for the recommendation","allOf":[{"$ref":"#/components/schemas/VrsSummaryOutput"}]},"zones":{"type":"array","items":{"$ref":"#/components/schemas/VrsZoneOutput"},"description":"Management zones with individual seeding rates"}},"required":["executionId","fieldId","year","createdAt","seedDetails","summary","zones"],"additionalProperties":false,"ref":"PostVrsRecommendationResponse","description":"Variable rate seeding recommendation with management zones and export options","example":{"executionId":"550e8400-e29b-41d4-a716-446655440001","fieldId":"11ca3ee5-bba1-4402-a9ad-07cbbeec5a14","year":2025,"createdAt":"2025-01-09T14:30:00Z","validUntil":"2025-01-16T14:30:00Z","seedDetails":{"variety":"KWS Campesino","tkg":48,"germinationRate":94,"seedUnits":"kernels"},"summary":{"totalAreaHa":42.5,"totalSeedKg":6944.7,"avgSeedingRate":320,"minSeedingRate":308,"maxSeedingRate":332,"zoneCount":5},"zones":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[13.404954,52.520008],[13.405954,52.520008],[13.405954,52.521008],[13.404954,52.521008],[13.404954,52.520008]]]},"properties":{"zoneId":"zone-1","areaHa":8.5,"seedingRateKgPerHa":157.3,"seedingRatePlantsPerM2":308,"seedingRateSeedsPerM2":327.7,"targetDensity":308,"relativeYield":0.75,"reasoning":"Zone 1: Relative yield 0.75, target density 308 plants/m²"}}]}},"SoilProfile":{"type":"array","items":{"type":"object","properties":{"probe_key":{"type":"string","description":"Soil index point the layers belong to"},"layer_from":{"type":"number","description":"Upper bound of the layer below the surface","x-unit":"cm"},"layer_to":{"type":"number","description":"Lower bound of the layer below the surface","x-unit":"cm"},"layer_index":{"type":"number","description":"Position of the layer from the top"},"depth":{"type":"number","description":"Depth of the layer","x-unit":"cm"},"bulk_density":{"type":"number","description":"Bulk density","x-unit":"g/cm³"},"origin":{"type":"string","description":"Soil map the layer comes from, e.g. BÜK200"},"sand":{"type":"number","description":"Sand content","x-unit":"%"},"silt":{"type":"number","description":"Silt content","x-unit":"%"},"clay":{"type":"number","description":"Clay content","x-unit":"%"},"soc":{"type":"number","description":"Soil organic carbon","x-unit":"%"},"soil_type_usda":{"type":"string","enum":["SAND","LOAMY_SAND","SANDY_LOAM","LOAM","SILT_LOAM","SILT","SANDY_CLAY_LOAM","CLAY_LOAM","SILTY_CLAY_LOAM","SANDY_CLAY","SILTY_CLAY","CLAY"],"description":"USDA texture class"},"soil_type_ka5":{"type":"string","description":"KA5 soil texture (Bodenart)"},"theta_pwp":{"type":"number","description":"Water content at permanent wilting point","x-unit":"% vol."},"theta_fc":{"type":"number","description":"Water content at field capacity","x-unit":"% vol."},"alpha":{"type":"number","description":"Van Genuchten α"},"n":{"type":"number","description":"Van Genuchten n"},"dist":{"type":"number","description":"Distance from the requested location to the index point, in degrees (not metres)","x-unit":"°"}},"required":["probe_key","layer_from","layer_to","layer_index","depth","bulk_density","origin","sand","silt","clay","soc","soil_type_usda","soil_type_ka5","theta_pwp","theta_fc","alpha","n","dist"],"additionalProperties":false},"title":"SoilProfile","description":"Model soil layers at one index point, top layer first.","example":[{"probe_key":"11111111-1111-1111-1111-111111111111","layer_from":0,"layer_to":30,"layer_index":0,"depth":30,"bulk_density":1.35,"origin":"BÜK200","sand":45,"silt":35,"clay":20,"soc":2.1,"soil_type_usda":"LOAM","soil_type_ka5":"Ls3","theta_pwp":8.5,"theta_fc":28,"alpha":0.045,"n":1.3,"dist":0},{"probe_key":"11111111-1111-1111-1111-111111111112","layer_from":30,"layer_to":60,"layer_index":1,"depth":60,"bulk_density":1.4,"origin":"BÜK200","sand":50,"silt":30,"clay":20,"soc":1.5,"soil_type_usda":"LOAM","soil_type_ka5":"Ls3","theta_pwp":7.8,"theta_fc":25.5,"alpha":0.05,"n":1.25,"dist":0}]},"GetMachinesResponse":{"type":"array","items":{"$ref":"#/components/schemas/MachineResponseOutput"},"title":"GetMachinesResponse"},"GetMachineLocationsResponse":{"type":"array","items":{"$ref":"#/components/schemas/MachineLocationResponseOutput"},"title":"GetMachineLocationsResponse"},"CreateMachineRequest":{"type":"object","properties":{"name":{"type":"string"},"manufacturer":{"type":"string"},"model":{"type":"string"},"category":{"type":"string","enum":["tractor_small","tractor_medium","tractor_large","tractor_xlarge","combine","self_propelled_sprayer","self_propelled_applicator","self_propelled_forage_harvester","self_propelled_root_harvester","track_tractor","telehandler","front_loader","transporter","irrigation_pump","other"]},"yearOfManufacture":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"serialNumber":{"nullable":true,"type":"string"},"inventoryNumber":{"nullable":true,"type":"string"},"licensePlate":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"catalogMachineId":{"nullable":true,"type":"string"},"powerKW":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"emptyMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"operatingMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"operatingMassEmptyKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"operatingMassFullKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"frontAxleFraction":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"tankCapacityL":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"frontTyre":{"nullable":true,"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","nullable":true,"enum":[null]}]},{"type":"object","additionalProperties":{}},{"type":"array","items":{}}]},"rearTyre":{"nullable":true,"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","nullable":true,"enum":[null]}]},{"type":"object","additionalProperties":{}},{"type":"array","items":{}}]},"purchaseDate":{"nullable":true,"type":"string"},"purchasePriceNet":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceGross":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceCurrency":{"type":"string"},"acquisitionType":{"nullable":true,"type":"string","enum":["owned","leased","rented","shared_machine_ring","contractor_owned","on_demonstration"]},"depreciationMethod":{"nullable":true,"type":"string","enum":["linear","declining_balance","performance_based","not_depreciating"]},"usefulLifeYears":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"residualValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceAnnual":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingType":{"nullable":true,"type":"string","enum":["cash","loan","leasing","operating_lease","manufacturer_financing"]},"financingMonthlyPayment":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingEndDate":{"nullable":true,"type":"string"},"leaseEndDate":{"nullable":true,"type":"string"},"maschinenringMemberNumber":{"nullable":true,"type":"string"},"contractorHourlyRate":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"hourlyOperatingCost":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"fuelConsumptionLitresPerHour":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"currentOperatingHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"expectedLifetimeHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"currentMileageKm":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"serviceIntervalHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"lastServiceDate":{"nullable":true,"type":"string"},"lastServiceHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"nextServiceDate":{"nullable":true,"type":"string"},"nextServiceDueHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"maintenanceCostYtd":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"dieselConsumptionYtdLitres":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"tuvUntil":{"nullable":true,"type":"string"},"insuranceUntil":{"nullable":true,"type":"string"},"homeBaseLocation":{"nullable":true,"type":"string"},"telemetryProvider":{"nullable":true,"type":"string"},"telemetryDeviceId":{"nullable":true,"type":"string"},"isobusCompatible":{"nullable":true,"type":"boolean"},"gpsTracking":{"nullable":true,"type":"boolean"},"irrigationType":{"nullable":true,"type":"string","enum":["drip","sprinkler","pivot","hose_reel","sub_irrigation","flood","micro_sprinkler"]},"irrigationFlowRateLPerMin":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"irrigationCoverageHa":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationOperatingPressureBar":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationWaterSourceId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"defaultOperatorId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","sold","scrapped","loaned_out","in_repair","decommissioned"]},"loanedToOrgId":{"nullable":true,"type":"string"},"imageUrl":{"nullable":true,"type":"string"}},"required":["name","manufacturer","model","category"],"additionalProperties":false,"title":"CreateMachineRequest","description":"Machine to create. Only name, manufacturer, model and category are required. frontTyre/rearTyre specs are mirrored into the relational tyre store used by the trafficability layer.","example":{"name":"6R 155","manufacturer":"John Deere","model":"6R 155","category":"tractor_medium","powerKW":114}},"UpdateMachineRequest":{"type":"object","properties":{"name":{"type":"string"},"manufacturer":{"type":"string"},"model":{"type":"string"},"category":{"type":"string","enum":["tractor_small","tractor_medium","tractor_large","tractor_xlarge","combine","self_propelled_sprayer","self_propelled_applicator","self_propelled_forage_harvester","self_propelled_root_harvester","track_tractor","telehandler","front_loader","transporter","irrigation_pump","other"]},"yearOfManufacture":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"serialNumber":{"nullable":true,"type":"string"},"inventoryNumber":{"nullable":true,"type":"string"},"licensePlate":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"catalogMachineId":{"nullable":true,"type":"string"},"powerKW":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"emptyMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"operatingMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"operatingMassEmptyKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"operatingMassFullKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"frontAxleFraction":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"tankCapacityL":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"frontTyre":{"nullable":true,"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","nullable":true,"enum":[null]}]},{"type":"object","additionalProperties":{}},{"type":"array","items":{}}]},"rearTyre":{"nullable":true,"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","nullable":true,"enum":[null]}]},{"type":"object","additionalProperties":{}},{"type":"array","items":{}}]},"purchaseDate":{"nullable":true,"type":"string"},"purchasePriceNet":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceGross":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceCurrency":{"type":"string"},"acquisitionType":{"nullable":true,"type":"string","enum":["owned","leased","rented","shared_machine_ring","contractor_owned","on_demonstration"]},"depreciationMethod":{"nullable":true,"type":"string","enum":["linear","declining_balance","performance_based","not_depreciating"]},"usefulLifeYears":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"residualValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceAnnual":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingType":{"nullable":true,"type":"string","enum":["cash","loan","leasing","operating_lease","manufacturer_financing"]},"financingMonthlyPayment":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingEndDate":{"nullable":true,"type":"string"},"leaseEndDate":{"nullable":true,"type":"string"},"maschinenringMemberNumber":{"nullable":true,"type":"string"},"contractorHourlyRate":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"hourlyOperatingCost":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"fuelConsumptionLitresPerHour":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"currentOperatingHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"expectedLifetimeHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"currentMileageKm":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"serviceIntervalHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"lastServiceDate":{"nullable":true,"type":"string"},"lastServiceHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"nextServiceDate":{"nullable":true,"type":"string"},"nextServiceDueHours":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"maintenanceCostYtd":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"dieselConsumptionYtdLitres":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"tuvUntil":{"nullable":true,"type":"string"},"insuranceUntil":{"nullable":true,"type":"string"},"homeBaseLocation":{"nullable":true,"type":"string"},"telemetryProvider":{"nullable":true,"type":"string"},"telemetryDeviceId":{"nullable":true,"type":"string"},"isobusCompatible":{"nullable":true,"type":"boolean"},"gpsTracking":{"nullable":true,"type":"boolean"},"irrigationType":{"nullable":true,"type":"string","enum":["drip","sprinkler","pivot","hose_reel","sub_irrigation","flood","micro_sprinkler"]},"irrigationFlowRateLPerMin":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"irrigationCoverageHa":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationOperatingPressureBar":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationWaterSourceId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"defaultOperatorId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","sold","scrapped","loaned_out","in_repair","decommissioned"]},"loanedToOrgId":{"nullable":true,"type":"string"},"imageUrl":{"nullable":true,"type":"string"},"archived":{"description":"true archives the machine, false un-archives it","type":"boolean"}},"additionalProperties":false,"title":"UpdateMachineRequest","description":"Partial update; only provided fields change."},"GetImplementsResponse":{"type":"array","items":{"$ref":"#/components/schemas/ImplementResponseOutput"},"title":"GetImplementsResponse"},"CreateImplementRequest":{"type":"object","properties":{"name":{"type":"string"},"manufacturer":{"nullable":true,"type":"string"},"model":{"nullable":true,"type":"string"},"type":{"type":"string","enum":["plow","cultivator","harrow","disc_harrow","power_harrow","rotary_harrow","drill","seeder","combination_drill","precision_drill","fertilizer_spreader","manure_spreader","mower","tedder","rake","baler_round","baler_square","baler_variable","trailer","slurry_tanker","water_tanker","overload_wagon","tine_harrow_weeder","row_crop_cultivator","roller","cultipacker","mulcher","stone_picker","potato_planter","potato_harvester","sugar_beet_harvester","sprayer","grassland_overseeder","grassland_combo","meadow_harrow","grassland_mulcher","slurry_carrier_vehicle","irrigation_drip_line","irrigation_sprinkler","irrigation_hose_reel","irrigation_pivot","other"]},"mountType":{"type":"string","enum":["three_point","trailed","semi_mounted","self_propelled","stationary"]},"yearOfManufacture":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"serialNumber":{"nullable":true,"type":"string"},"inventoryNumber":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"catalogImplementId":{"nullable":true,"type":"string"},"emptyMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"maxFillMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"workingWidthM":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"hitchToCogM":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"loadShareOfAttachedVehicle":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"trailerAxleConfig":{"nullable":true,"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","nullable":true,"enum":[null]}]},{"type":"object","additionalProperties":{}},{"type":"array","items":{}}]},"purchaseDate":{"nullable":true,"type":"string"},"purchasePriceNet":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceGross":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceCurrency":{"type":"string"},"acquisitionType":{"nullable":true,"type":"string","enum":["owned","leased","rented","shared_machine_ring","contractor_owned","on_demonstration"]},"depreciationMethod":{"nullable":true,"type":"string","enum":["linear","declining_balance","performance_based","not_depreciating"]},"usefulLifeYears":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"residualValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceAnnual":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingType":{"nullable":true,"type":"string","enum":["cash","loan","leasing","operating_lease","manufacturer_financing"]},"financingMonthlyPayment":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingEndDate":{"nullable":true,"type":"string"},"leaseEndDate":{"nullable":true,"type":"string"},"maschinenringMemberNumber":{"nullable":true,"type":"string"},"contractorHourlyRate":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"hourlyOperatingCost":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"homeBaseLocation":{"nullable":true,"type":"string"},"maintenanceCostYtd":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationType":{"nullable":true,"type":"string","enum":["drip","sprinkler","pivot","hose_reel","sub_irrigation","flood","micro_sprinkler"]},"irrigationFlowRateLPerMin":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"irrigationCoverageHa":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationOperatingPressureBar":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationWaterSourceId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","sold","scrapped","loaned_out","in_repair","decommissioned"]},"imageUrl":{"nullable":true,"type":"string"},"telemetryProvider":{"nullable":true,"type":"string"},"telemetryDeviceId":{"nullable":true,"type":"string"}},"required":["name","type","mountType"],"additionalProperties":false,"title":"CreateImplementRequest","description":"Implement to create. Only name, manufacturer, model, type and mountType are required.","example":{"name":"Joker 6 CT","manufacturer":"Horsch","model":"Joker 6 CT","type":"other","mountType":"trailed"}},"UpdateImplementRequest":{"type":"object","properties":{"name":{"type":"string"},"manufacturer":{"nullable":true,"type":"string"},"model":{"nullable":true,"type":"string"},"type":{"type":"string","enum":["plow","cultivator","harrow","disc_harrow","power_harrow","rotary_harrow","drill","seeder","combination_drill","precision_drill","fertilizer_spreader","manure_spreader","mower","tedder","rake","baler_round","baler_square","baler_variable","trailer","slurry_tanker","water_tanker","overload_wagon","tine_harrow_weeder","row_crop_cultivator","roller","cultipacker","mulcher","stone_picker","potato_planter","potato_harvester","sugar_beet_harvester","sprayer","grassland_overseeder","grassland_combo","meadow_harrow","grassland_mulcher","slurry_carrier_vehicle","irrigation_drip_line","irrigation_sprinkler","irrigation_hose_reel","irrigation_pivot","other"]},"mountType":{"type":"string","enum":["three_point","trailed","semi_mounted","self_propelled","stationary"]},"yearOfManufacture":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"serialNumber":{"nullable":true,"type":"string"},"inventoryNumber":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"catalogImplementId":{"nullable":true,"type":"string"},"emptyMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"maxFillMassKg":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"workingWidthM":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"hitchToCogM":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"loadShareOfAttachedVehicle":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"trailerAxleConfig":{"nullable":true,"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","nullable":true,"enum":[null]}]},{"type":"object","additionalProperties":{}},{"type":"array","items":{}}]},"purchaseDate":{"nullable":true,"type":"string"},"purchasePriceNet":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceGross":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"purchasePriceCurrency":{"type":"string"},"acquisitionType":{"nullable":true,"type":"string","enum":["owned","leased","rented","shared_machine_ring","contractor_owned","on_demonstration"]},"depreciationMethod":{"nullable":true,"type":"string","enum":["linear","declining_balance","performance_based","not_depreciating"]},"usefulLifeYears":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"residualValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceValue":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"insuranceAnnual":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingType":{"nullable":true,"type":"string","enum":["cash","loan","leasing","operating_lease","manufacturer_financing"]},"financingMonthlyPayment":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"financingEndDate":{"nullable":true,"type":"string"},"leaseEndDate":{"nullable":true,"type":"string"},"maschinenringMemberNumber":{"nullable":true,"type":"string"},"contractorHourlyRate":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"hourlyOperatingCost":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"homeBaseLocation":{"nullable":true,"type":"string"},"maintenanceCostYtd":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationType":{"nullable":true,"type":"string","enum":["drip","sprinkler","pivot","hose_reel","sub_irrigation","flood","micro_sprinkler"]},"irrigationFlowRateLPerMin":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"irrigationCoverageHa":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationOperatingPressureBar":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"irrigationWaterSourceId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","sold","scrapped","loaned_out","in_repair","decommissioned"]},"imageUrl":{"nullable":true,"type":"string"},"telemetryProvider":{"nullable":true,"type":"string"},"telemetryDeviceId":{"nullable":true,"type":"string"},"archived":{"description":"true archives the implement, false un-archives it","type":"boolean"}},"additionalProperties":false,"title":"UpdateImplementRequest","description":"Partial update; only provided fields change."},"GetOperatorsResponse":{"type":"array","items":{"$ref":"#/components/schemas/OperatorResponseOutput"},"title":"GetOperatorsResponse"},"CreateOperatorRequest":{"type":"object","properties":{"clerkUserId":{"nullable":true,"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"role":{"type":"string","enum":["machineOperator","fieldWorker","manager","other"]},"staffNumber":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"hourlyCostEuro":{"nullable":true,"type":"number","minimum":0}},"required":["firstName","lastName","role"],"additionalProperties":false,"title":"CreateOperatorRequest","description":"Operator to create. Only firstName and lastName are required.","example":{"firstName":"Jan","lastName":"Petersen","role":"machineOperator","hourlyCostEuro":28}},"UpdateOperatorRequest":{"type":"object","properties":{"clerkUserId":{"nullable":true,"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"role":{"type":"string","enum":["machineOperator","fieldWorker","manager","other"]},"staffNumber":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"hourlyCostEuro":{"nullable":true,"type":"number","minimum":0},"hourlyCostEuroWithheld":{"description":"Never stored. For a caller who reads rows with the hourly cost withheld (a member, an AI assistant): sent back beside hourlyCostEuro null, it keeps the stored hourly cost. Such a caller's null keeps it without this marker as well (400 when nothing else changes). Only an administrator of the organization (or its API key) sets an hourly cost, and clears one outside an AI assistant; a member's number is refused with 403.","type":"boolean"},"notesPayWithheld":{"description":"Never stored. For a caller who reads notes without a rate an import left in them (a member, an AI assistant): sent back with the notes as read, it keeps the stored notes. Other notes for such an operator are refused, as they would delete the rate: 403 for a member, 400 for an administrator through an AI assistant (the chat, the connector).","type":"boolean"}},"additionalProperties":false,"title":"UpdateOperatorRequest","description":"Partial update; only provided fields change."},"GetTasksResponse":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TaskResponseOutput"},{"$ref":"#/components/schemas/TaskTombstoneOutput"}]},"title":"GetTasksResponse","description":"Task rows, most urgent deadline first. In ?since= delta mode, deletions appear as tombstones."},"UpsertTaskRequest":{"type":"object","properties":{"assignedOperatorId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"customName":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"priority":{"type":"string","enum":["LOW","NORMAL","HIGH","URGENT"]},"deadline":{"nullable":true,"type":"string"}},"additionalProperties":false,"title":"UpsertTaskRequest","description":"Task fields to set on the operation; only provided fields change (the task row is created on first write). Comments cannot be written via the API.","example":{"assignedOperatorId":"11111111-1111-1111-1111-111111111111","priority":"HIGH"}},"PatchTaskRequest":{"type":"object","properties":{"done":{"type":"boolean"}},"required":["done"],"additionalProperties":false,"title":"PatchTaskRequest","description":"done: true documents the task's whole operation (all transaction rows → DOCUMENTATION incl. warehouse booking and BBCH snapshot freeze); false rolls it back to PLANNING. Idempotent.","example":{"done":true}},"CreateTaskCommentRequest":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Client-generated idempotency key"},"body":{"type":"string","minLength":1}},"required":["id","body"],"additionalProperties":false,"title":"CreateTaskCommentRequest","description":"Append a comment (append-only; replays with the same id are a 200 no-op). Author is taken from the token: session tokens store the acting user + denormalized name, api-key tokens store null.","example":{"id":"11111111-1111-1111-1111-111111111111","body":"Feld war zu nass, morgen nochmal"}},"GetNewsResponse":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/NewsFeedItemResponseOutput"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"deleted":{"type":"boolean","enum":[true]}},"required":["id","deleted"],"additionalProperties":false,"description":"Delta-sync tombstone: the item is no longer visible — remove it from the mirror."}]},"title":"GetNewsResponse","description":"The org's current news feed, newest first (max 20 items). In ?since= delta mode, no-longer-visible items appear as tombstones."},"DisplaySettingsResponse":{"type":"object","properties":{"measurementSystem":{"type":"string","enum":["metric","imperial"],"description":"Effective unit system: the explicit setting, else the explicit country (US → imperial), else imperial as soon as any field lies in the US."},"unitPreset":{"type":"string","description":"Effective regional unit preset (de, at, pl, caPrairie, caMetric, us, metric): the explicit setting, else the region's (any US field → us, any Canadian field → caPrairie). measurementSystem is its base system."},"unitPreferences":{"type":"object","properties":{"area":{"type":"string"},"pesticideLiquid":{"type":"string"},"pesticideSolid":{"type":"string"},"sprayVolume":{"type":"string"},"fertiliser":{"type":"string"},"temperature":{"type":"string"},"precipitation":{"type":"string"},"distance":{"type":"string"},"bushels":{"type":"string","enum":["US","CA"]},"crops":{"type":"object","additionalProperties":{"type":"object","properties":{"yield":{"type":"string"},"lbPerBu":{"type":"number"}},"additionalProperties":false},"description":"Per crop code: its own yield unit (tPerHa, dtPerHa, tPerAc, shortTonPerAc, buPerAc, cwtPerAc, lbPerAc) and bushel weight in lb/bu.","example":{"potatoTableLate":{"yield":"shortTonPerAc"},"springOatsFodder":{"lbPerBu":34}}}},"required":["area","pesticideLiquid","pesticideSolid","sprayVolume","fertiliser","temperature","precipitation","distance","bushels","crops"],"additionalProperties":false,"description":"Effective display unit per group (area, pesticideLiquid, pesticideSolid, sprayVolume, fertiliser, temperature, precipitation, distance): the preset's, with the org's own choices on top; plus the bushel standard (`bushels`) and the per-crop yield units (`crops`). Pass to the agmeo-units formatter as `preferences`; dimensions outside the groups follow measurementSystem."},"currency":{"type":"string","description":"Effective ISO-4217 currency: the explicit setting, else the effective country's currency (EUR without one). Every stored price is a nominal value in this currency."},"country":{"nullable":true,"description":"Effective ISO 3166-1 alpha-2 country: the explicit setting, else the country of the org's fields; null for an org with neither.","type":"string"},"timezone":{"nullable":true,"description":"Effective IANA time zone: the explicit setting, else the zone of the org's fields, else the country's default zone, else Europe/Berlin — the zone server-written texts use.","type":"string"},"countries":{"type":"array","items":{"type":"string"},"description":"Every country the org's fields lie in, as stored: ISO 3166-1 alpha-2, or the ISO 3166-2 state/province code for the US and Canada (\"US-WY\"); [] without located fields. Input of the country gates (countryGatesOf) together with explicit.country.","example":["DE","US-WY"]},"explicit":{"type":"object","properties":{"measurementSystem":{"nullable":true,"type":"string","enum":["metric","imperial"]},"unitPreset":{"nullable":true,"type":"string"},"units":{"type":"object","properties":{"area":{"type":"string"},"pesticideLiquid":{"type":"string"},"pesticideSolid":{"type":"string"},"sprayVolume":{"type":"string"},"fertiliser":{"type":"string"},"temperature":{"type":"string"},"precipitation":{"type":"string"},"distance":{"type":"string"},"crops":{"type":"object","additionalProperties":{"type":"object","properties":{"yield":{"type":"string"},"lbPerBu":{"type":"number"}},"additionalProperties":false},"description":"Per crop code: its own yield unit (tPerHa, dtPerHa, tPerAc, shortTonPerAc, buPerAc, cwtPerAc, lbPerAc) and bushel weight in lb/bu.","example":{"potatoTableLate":{"yield":"shortTonPerAc"},"springOatsFodder":{"lbPerBu":34}}}},"additionalProperties":false,"description":"Unit choices that differ from the preset, per group and per crop."},"currency":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["measurementSystem","unitPreset","units","currency","country","timezone"],"additionalProperties":false,"description":"The values set by hand in Settings → Region & units; null = derived."}},"required":["measurementSystem","unitPreset","unitPreferences","currency","country","timezone","countries","explicit"],"additionalProperties":false,"title":"DisplaySettingsResponse","description":"How the organization shows units, money and dates — the same values the web app and every server-written text (news, spray reasons, reports) use. Clients bind their formatters to these instead of a device setting.","example":{"measurementSystem":"imperial","unitPreset":"us","unitPreferences":{"area":"acre","pesticideLiquid":"perProduct","pesticideSolid":"lbPerAc","sprayVolume":"galPerAc","fertiliser":"lbPerAc","temperature":"degF","precipitation":"inch","distance":"mile","bushels":"US","crops":{}},"currency":"USD","country":"US","timezone":"America/Denver","countries":["US-WY"],"explicit":{"measurementSystem":null,"unitPreset":null,"units":{},"currency":null,"country":null,"timezone":null}}},"OrgRasterLayersResponse":{"type":"object","properties":{"layers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Layer id, the `{layer}` segment of the tile path","example":"twi"},"minZoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxZoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"regions":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"The `{country}` tile path segment: ISO 3166-1 alpha-2, or the ISO 3166-2 state/province code for the US and Canada, which are tiled per state/province","example":"US-WY"},"bounds":{"nullable":true,"description":"WGS84 [west, south, east, north] of the region's tiles; null when unknown","type":"array","items":{"anyOf":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}]},"minItems":4,"maxItems":4},"tiles":{"type":"string","description":"XYZ tile URL template relative to the API host, versioned against stale caches. Append the tile token (`tk`) from /api/{orgId}/maps/tile-token when the client cannot send an auth header.","example":"/api/maps/tiles/raster/twi/US-WY/{z}/{x}/{y}"}},"required":["code","bounds","tiles"],"additionalProperties":false}}},"required":["id","minZoom","maxZoom","regions"],"additionalProperties":false}}},"required":["layers"],"additionalProperties":false,"title":"OrgRasterLayersResponse","description":"The per-country raster layers (terrain, soil, climate) the organization may load over its own fields, with one tile source per region its fields lie in."},"PostTimeseriesRequest":{"type":"object","properties":{"fieldId":{"type":"string"},"year":{"type":"number"}},"required":["fieldId","year"],"additionalProperties":false},"GeneralTimeseries":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"FRESH_MATTER":{"type":"array","items":{"type":"number"}},"DRY_MATTER":{"type":"array","items":{"type":"number"}},"DMC":{"type":"array","items":{"type":"number"}},"BBCH":{"type":"array","items":{"type":"number","minimum":0,"maximum":100}},"GDD":{"type":"array","items":{"type":"number"}},"CBD":{"type":"array","items":{"type":"number"}},"DTU":{"type":"array","items":{"type":"number"}},"LAI":{"type":"array","items":{"type":"number"}},"NFK":{"type":"array","items":{"type":"number"}},"CNMIN":{"type":"array","items":{"type":"number"}},"CNUP":{"type":"array","items":{"type":"number"}}},"required":["keys","FRESH_MATTER","DRY_MATTER","DMC","BBCH","GDD","CBD","DTU","LAI","NFK","CNMIN","CNUP"],"additionalProperties":false},"GetSoilParametersResponse":{"type":"array","items":{"$ref":"#/components/schemas/SoilParameterValueOutput"},"title":"GetSoilParametersResponse","description":"Measured/entered soil values of a field. By default the most recent value per parameter and soil layer; with ?history=true every sampling date."},"PostSoilParametersRequest":{"type":"object","properties":{"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"parameter":{"type":"string","enum":["soc","humus","clay","silt","sand","ph","p2o5","k2o","mgo","bd","nmin","no3","nh4","cec","nt","s","b","cu","zn","mn","fe","cd","na","ca","mo","smin","nsol","caco3","ct","siltf","siltm","siltc","sandf","sandmc","pb","cr","ni","hg","as","cut","znt"]},"value":{"type":"number"},"layerFrom":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"layerTo":{"default":30,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"method":{"type":"string"},"source":{"default":"user","type":"string","enum":["user","lab-probe"]}},"required":["parameter","value","date"],"additionalProperties":false}},"clearFromActiveZones":{"default":false,"type":"boolean"}},"required":["values"],"additionalProperties":false,"title":"PostSoilParametersRequest","description":"Measured soil values to write. Same (parameter, layer, date) overwrites, a new date creates a new history entry. Values use the canonical conventions (oxide form, method per value — see 'Soil data conventions'); nmin is derived per layer+date as no3 + nh4 when not sent explicitly. clearFromActiveZones strips the written parameters from the active zonation's zone values (a field-level value supersedes stale zone values).","example":{"values":[{"parameter":"no3","value":28,"layerFrom":0,"layerTo":30,"date":"2026-07-01","method":"flow-injection"},{"parameter":"nh4","value":4,"layerFrom":0,"layerTo":30,"date":"2026-07-01","method":"flow-injection"},{"parameter":"p2o5","value":14,"layerFrom":0,"layerTo":30,"date":"2026-07-01","method":"cal","source":"lab-probe"}],"clearFromActiveZones":false}},"PostSoilZonesRequest":{"type":"object","properties":{"source":{"type":"string","enum":["twi","ndvi","savi","ndmi"]},"numberOfZones":{"default":"auto","anyOf":[{"type":"string","enum":["auto"]},{"type":"integer","minimum":2,"maximum":10}]},"coarseness":{"type":"number","minimum":0,"maximum":1},"method":{"type":"string","enum":["fcm","segment"]},"cleanup":{"type":"string","enum":["merge","fix-kws"]},"minZoneHa":{"type":"number","minimum":0,"exclusiveMinimum":true}},"required":["source"],"additionalProperties":false,"title":"PostSoilZonesRequest","description":"Config for generating a soil sampling zonation from the field geometry. source: twi = topographic wetness index from the agmeo B2B rasters (requires raster access for the field's country), ndvi/savi/ndmi = best satellite scene of the last 365 days. numberOfZones 'auto' caps by field size. coarseness 0-1 smooths zone shapes (default 0.35); minZoneHa merges smaller zones into neighbours (default 0.25). WARNING: generating supersedes the currently active zonation — manually entered zone values do not carry over (field-level soil parameters are kept).","example":{"source":"twi","numberOfZones":"auto"}},"GetSoilZonesResponse":{"type":"object","properties":{"zonation":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"createdAt":{"type":"string"},"numberOfZones":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mode":{"type":"string"},"layerIds":{"type":"array","items":{"type":"string"},"description":"agmeo B2B raster layer ids the zonation was computed from (e.g. clay-dsm, soc-dsm)"},"weights":{"description":"Per-layer weights used for the zonation, keyed by layer id"}},"required":["id","createdAt","numberOfZones","mode","layerIds","weights"],"additionalProperties":false},"zones":{"type":"array","items":{"$ref":"#/components/schemas/SoilZoneResponseOutput"}}},"required":["zonation","zones"],"additionalProperties":false,"title":"GetSoilZonesResponse","description":"The active (non-superseded) soil sampling zonation of a field with per-zone geometry and measured topsoil values. Value dates are field-level sampling dates (per-zone dates are not stored yet), falling back to the zonation creation date."},"YieldHistoryResponse":{"type":"object","properties":{"fieldId":{"type":"string","description":"The field id from the path"},"crop":{"nullable":true,"description":"The ?crop= filter, null without one","type":"string"},"entries":{"type":"array","items":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Harvest year of the cultivation"},"crop":{"nullable":true,"description":"Crop id of the cultivation, e.g. winterWheat","type":"string"},"yieldTha":{"type":"number","description":"Harvested yield of ONE cultivation: the booked harvest-product quantity, weighted by zone share and worked area. A field split into several cultivations in a year has one entry per cultivation.","x-unit":"t/ha"}},"required":["year","crop","yieldTha"],"additionalProperties":false},"description":"Cultivations with a booked yield > 0, newest year first"},"avgYieldTha":{"nullable":true,"description":"Mean of the entries, null without entries","x-unit":"t/ha","type":"number"},"lastYieldTha":{"nullable":true,"description":"Yield of the newest entry, null without entries","x-unit":"t/ha","type":"number"},"years":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Number of entries (cultivations, not distinct years)"}},"required":["fieldId","crop","entries","avgYieldTha","lastYieldTha","years"],"additionalProperties":false,"title":"YieldHistoryResponse","description":"Actual harvested yields of one field across all years, from the documented harvest operations."},"AnalogYieldResponse":{"type":"object","properties":{"expectedTpHa":{"nullable":true,"description":"Median of the analog zone yields — the number to plan the crop with; null without analogs","x-unit":"t/ha","type":"number"},"analogs":{"type":"array","items":{"type":"object","properties":{"cultivationId":{"type":"string","description":"Cultivation the measured zone belongs to"},"fieldId":{"nullable":true,"type":"string"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"crop":{"type":"string","description":"Always the requested crop"},"varietyId":{"nullable":true,"description":"CropVarieties id (UUID), not a variety name","type":"string"},"soilTypeLUFA":{"type":"string","description":"LUFA soil type of the zone"},"management":{"nullable":true,"description":"Template id or technology of the cultivation group","type":"string"},"yieldInTpHa":{"type":"number","description":"Measured mean yield of the zone (yield map)","x-unit":"t/ha"},"relativeYield":{"nullable":true,"description":"Zone mean / field mean of that yield map","type":"number"},"similarity":{"type":"number","description":"0–1: how well soil, management, variety and season match"}},"required":["cultivationId","fieldId","year","crop","varietyId","soilTypeLUFA","management","yieldInTpHa","relativeYield","similarity"],"additionalProperties":false},"description":"Measured zones of the same crop, most similar first"},"transferFromPreviousCrop":{"nullable":true,"description":"What a yield map of this field's own cultivation in {year} may contribute to the requested crop: absolute = same crop, the t/ha number holds; relative-only = only the spatial pattern (relativeYield) transfers; none = neither. Null when the field has no cultivation in {year}.","type":"string","enum":["absolute","relative-only","none"]}},"required":["expectedTpHa","analogs","transferFromPreviousCrop"],"additionalProperties":false,"title":"AnalogYieldResponse","description":"Yield expectation for a crop the field has not grown: measured zone yields of the SAME crop on comparable ground, never the previous crop's number."},"GetProfitabilityResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalHa":{"type":"number","description":"Sum of the listed cultivations' areas","x-unit":"ha"},"fields":{"type":"array","items":{"type":"object","properties":{"fieldId":{"type":"string"},"fieldName":{"type":"string"},"cultivationId":{"type":"string"},"crop":{"type":"string","enum":["silageMaize","winterWheat","canola","sugarBeet","winterBarleyFodder","springBarleyMalting","springOatsFodder","springWheatFodder","winterRyeBaking","fieldGrassWiltedSilage","permanentGrasslandWiltedSilage","potatoTableLate","peasDry","peasDryFodder","triticaleFodder","broadBeans","sunflower","grassSeed","hardWheat","grainMaize","soybeanBeans","cerealRyeIntercrop","mustardIntercrop","oilRadishIntercrop","persianCloverIntercrop","phaceliaIntercrop","ryeWholePlantSilage","lupine","spelt","landscapeFeature","nonProductiveArea","alfalfa","winterOats","springRye","springTriticale","springCanola","springDurum","winterBroadBeans","winterPeas","potatoStarch","seedPotato","potatoTableEarly","cornCobMix","maizeBiogas","sorghum","buckwheat","millet","lentils","chickpeas","linseed","hemp","poppy","fodderBeet","vetch","quinoa","emmer","einkorn","clover","cloverGrass","alfalfaGrass","intercropMixture","blackOatIntercrop","vetchIntercrop","crimsonCloverIntercrop","alexandrineCloverIntercrop","buckwheatIntercrop","sunflowerIntercrop","nigerIntercrop","sorghumIntercrop","linseedIntercrop","camelinaIntercrop","serradellaIntercrop","ryegrassUndersow","cloverGrassUndersow","onion","garlic","leek","carrot","whiteCabbage","redCabbage","savoyCabbage","cauliflower","broccoli","kale","kohlrabi","brusselsSprouts","chineseCabbage","lettuce","lambsLettuce","spinach","beetroot","celeriac","fennel","endive","bushBeans","sweetCorn","pumpkin","cucumber","tomato","bellPepper","asparagus","strawberry","hops","grapevine","rhubarb","pomeFruit","stoneFruit","rice","cowpeas","dryBeans","grainSorghum","foxtailMillet","pearlMillet","fallow","springCerealMixture","cerealLegumeMixture","legumeMixture","amaranth","otherCereals","otherLegumes","otherOilseeds","crambe","camelina","swede","fenugreek","birdsfootTrefoil","sainfoin","serradella","sweetClover","meadowOrchard","jerusalemArtichoke","sweetPotato","otherVegetables","brassicaVegetables","turnip","brownMustard","watercress","rucola","gardenCress","radish","grainMustard","eggplant","belladonna","melon","watermelon","alliumVegetables","orache","sorrel","parsnip","horseradish","scorzonera","artichoke","otherHerbs","dill","chervil","anise","caraway","cumin","blackCumin","coriander","lovage","parsley","basil","rosemary","sage","borage","oregano","savory","hyssop","verbena","lavender","thyme","lemonBalm","gentian","mint","artemisia","calendula","echinacea","ribwortPlantain","chamomile","yarrow","valerian","stJohnsWort","ladysMantle","milkThistle","goatsRue","dandelion","angelica","mallow","arnica","turfGrass","woad","canaryGrass","tobacco","safflower","nettle","madder","ornamentalPlants","phaceliaMainCrop","otherEnergyCrops","silphium","virginiaMallow","knotweed","switchgrass","miscanthus","szarvasiGrass","reedCanaryGrass","otherFruit","bushBerries","seaBuckthorn","hazelnut","walnut","otherNuts","treeNursery","shortRotationCoppice","poplarCoppice","willowCoppice","otherPermanentCrops","christmasTrees","mushrooms","greenManure","otherArableCrops","unknownCrop"],"description":"Crop id, e.g. winterWheat"},"areaInHa":{"type":"number","description":"Area of the cultivation","x-unit":"ha"},"groupId":{"type":"string","description":"Cultivation group id"},"groupName":{"type":"string"},"revenue":{"type":"number","description":"Revenue of the harvest products (quantity × price)","x-unit":"currency/ha"},"seedCost":{"type":"number","description":"Product cost of PLANTING operations","x-unit":"currency/ha"},"fertilizerCost":{"type":"number","description":"Product cost of FERTILIZING operations","x-unit":"currency/ha"},"protectionCost":{"type":"number","description":"Product cost of PROTECTION operations","x-unit":"currency/ha"},"otherDirectCost":{"type":"number","description":"Product cost of all other operations","x-unit":"currency/ha"},"directCosts":{"type":"number","description":"seedCost + fertilizerCost + protectionCost + otherDirectCost","x-unit":"currency/ha"},"dfl":{"type":"number","description":"Direktkostenfreie Leistung: revenue − directCosts","x-unit":"currency/ha"},"variableMachineCosts":{"type":"number","description":"Machine materials + repairs + contractor services + fuel","x-unit":"currency/ha"},"dieselCost":{"type":"number","description":"Fuel in euro (litres × the org's DIESEL price), already included in variableMachineCosts","x-unit":"currency/ha"},"cm1":{"type":"number","description":"Deckungsbeitrag I: dfl − variableMachineCosts","x-unit":"currency/ha"},"fixedCosts":{"type":"number","description":"Depreciation + interest + misc. machine costs + labour","x-unit":"currency/ha"},"cm2":{"type":"number","description":"Deckungsbeitrag II: cm1 − fixedCosts","x-unit":"currency/ha"},"buildingCosts":{"type":"number","description":"Building costs from the farm economics settings","x-unit":"currency/ha"},"leasePerHa":{"type":"number","description":"Lease from the farm economics settings","x-unit":"currency/ha"},"landCosts":{"type":"number","description":"Lease + land tax + accident insurance","x-unit":"currency/ha"},"rightsCosts":{"type":"number","description":"Rights costs from the farm economics settings","x-unit":"currency/ha"},"singleCostFreeMargin":{"type":"number","description":"cm2 − buildingCosts − landCosts − rightsCosts","x-unit":"currency/ha"},"overhead":{"type":"number","description":"Insurance + accounting + other overhead","x-unit":"currency/ha"},"resultBeforeSubsidies":{"type":"number","description":"singleCostFreeMargin − overhead","x-unit":"currency/ha"},"subsidiesPerHa":{"type":"number","description":"CAP payments spread over the farm area","x-unit":"currency/ha"},"farmResult":{"type":"number","description":"resultBeforeSubsidies + subsidiesPerHa","x-unit":"currency/ha"},"diesel":{"type":"number","description":"Diesel of all documented operations","x-unit":"l/ha"},"hours":{"type":"number","description":"Working hours of all documented operations","x-unit":"h/ha"},"yieldTpHa":{"nullable":true,"description":"Sum of the harvest-product quantities as booked (t/ha for t_ha rows); null without a harvest","x-unit":"t/ha","type":"number"},"totalPasses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Number of documented operations"},"nKgHa":{"type":"number","description":"Nitrogen applied by FERTILIZING operations (product N content)","x-unit":"kg N/ha"}},"required":["fieldId","fieldName","cultivationId","crop","areaInHa","groupId","groupName","revenue","seedCost","fertilizerCost","protectionCost","otherDirectCost","directCosts","dfl","variableMachineCosts","dieselCost","cm1","fixedCosts","cm2","buildingCosts","leasePerHa","landCosts","rightsCosts","singleCostFreeMargin","overhead","resultBeforeSubsidies","subsidiesPerHa","farmResult","diesel","hours","yieldTpHa","totalPasses","nKgHa"],"additionalProperties":false},"description":"One P&L per cultivation with an area > 0; all money values per ha"},"settings":{"type":"object","properties":{"leasePerHa":{"type":"number"},"landTaxPerHa":{"type":"number"},"accidentInsurancePerHa":{"type":"number"},"buildingCostsPerHa":{"type":"number"},"rightsCostsPerHa":{"type":"number"},"insurancePerHa":{"type":"number"},"accountingPerHa":{"type":"number"},"miscOverheadPerHa":{"type":"number"},"salaryPerHour":{"type":"number","description":"Deprecated, not used for labour costs"},"basePremiumPerHa":{"type":"number"},"redistribution1PerHa":{"type":"number"},"redistribution2PerHa":{"type":"number"},"ecoSchemesPerHa":{"type":"number"},"agriEnvSchemesPerHa":{"type":"number"},"youngFarmersPerHa":{"type":"number"},"totalHaForRedistribution":{"nullable":true,"type":"number"},"useDefaultArticlePrices":{"type":"boolean"}},"required":["leasePerHa","landTaxPerHa","accidentInsurancePerHa","buildingCostsPerHa","rightsCostsPerHa","insurancePerHa","accountingPerHa","miscOverheadPerHa","salaryPerHour","basePremiumPerHa","redistribution1PerHa","redistribution2PerHa","ecoSchemesPerHa","agriEnvSchemesPerHa","youngFarmersPerHa","totalHaForRedistribution","useDefaultArticlePrices"],"additionalProperties":false,"description":"The farm economics settings of the year (per ha values)"},"subsidies":{"type":"object","properties":{"totalEur":{"type":"number","description":"CAP payments of the whole farm","x-unit":"currency"},"perHa":{"type":"number","description":"totalEur / farm area","x-unit":"currency/ha"}},"required":["totalEur","perHa"],"additionalProperties":false},"coverage":{"type":"object","properties":{"documentedOps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalOps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pricedArticles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalArticles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fieldsWithCrop":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalFields":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"customTemplateCultivations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalCultivations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"undocumentedOps":{"type":"array","items":{"type":"object","properties":{"fieldName":{"type":"string"},"crop":{"type":"string"},"category":{"type":"string"}},"required":["fieldName","crop","category"],"additionalProperties":false},"description":"Planned operations not yet documented — missing from the P&L"},"unpricedArticles":{"type":"array","items":{"type":"string"},"description":"Article FQNs without any price: cost 0"},"unconvertibleArticles":{"type":"array","items":{"type":"string"},"description":"Priced articles whose quantity unit cannot be converted to the price unit: cost missing"},"unconvertibleHarvestArticles":{"type":"array","items":{"type":"string"},"description":"Harvest articles whose unit cannot be converted to the price unit: revenue missing"},"articleNames":{"type":"object","additionalProperties":{"type":"string"},"description":"Display name per article FQN listed above"}},"required":["documentedOps","totalOps","pricedArticles","totalArticles","fieldsWithCrop","totalFields","customTemplateCultivations","totalCultivations","undocumentedOps","unpricedArticles","unconvertibleArticles","unconvertibleHarvestArticles","articleNames"],"additionalProperties":false,"description":"Gaps behind the numbers. A margin over undocumented operations or unpriced/unconvertible articles is wrong — report these alongside the result."}},"required":["year","totalHa","fields","settings","subsidies","coverage"],"additionalProperties":false}},"required":["data"],"additionalProperties":false,"title":"GetProfitabilityResponse","description":"The farm's P&L for one harvest year (the analysis page's numbers): per cultivation and per ha, from revenue over direct costs, DFL, CM I/II down to the farm result."},"ClimateContextResponse":{"type":"object","properties":{"daily":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","description":"Day (YYYY-MM-DD) in the field's local time zone"},"tempMin":{"type":"number","description":"Minimum air temperature at 2 m","x-unit":"°C"},"tempMax":{"type":"number","description":"Maximum air temperature at 2 m","x-unit":"°C"},"precipMm":{"type":"number","description":"Precipitation sum (0 when the archive has no value)","x-unit":"mm"},"radiationMj":{"description":"Shortwave radiation sum","x-unit":"MJ/m²","nullable":true,"type":"number"},"windMaxMs":{"description":"Maximum wind speed at 10 m","x-unit":"m/s","nullable":true,"type":"number"},"humidityPct":{"description":"Relative humidity — not available from the daily archive, always null","x-unit":"%","nullable":true,"type":"number"}},"required":["date","tempMin","tempMax","precipMm"],"additionalProperties":false},"description":"ERA5 archive days from sowing to min(sowing + 365 days, today − archive lag); empty before the season starts"},"baselines":{"type":"object","additionalProperties":{"type":"object","properties":{"mean":{"type":"number"},"sd":{"description":"Sample standard deviation, null below 2 years","nullable":true,"type":"number"},"p10":{"nullable":true,"type":"number"},"p50":{"nullable":true,"type":"number"},"p90":{"nullable":true,"type":"number"},"years":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Years the statistic is based on"}},"required":["mean","years"],"additionalProperties":false},"description":"Climatology of the same window over the previous baselineYears years, per metric: seasonPrecip and springPrecip (mm), maxDrySpell (days < 1 mm), winterMinTemp (°C), hardFrostDays (days ≤ −12 °C), springOnsetDoy (day of year), gddSum (°C·d, base 5 °C), hotDays (days ≥ 30 °C), radiationSum (MJ/m²), windPeak (m/s), stormDays (days ≥ 17.2 m/s). A metric without data in any year is absent."},"sowingDate":{"description":"Season start used (YYYY-MM-DD)","nullable":true,"type":"string"},"lat":{"description":"Latitude of the field centroid the weather is for","type":"number"},"lon":{"description":"Longitude of the field centroid the weather is for","type":"number"}},"required":["daily","baselines"],"additionalProperties":false,"title":"ClimateContextResponse","description":"This season's daily weather at the field (sowing → now) plus a per-metric baseline of the same window in earlier years, to judge whether the season is unusual."},"GetTransactionsResponse":{"type":"array","items":{"$ref":"#/components/schemas/TransactionResponseOutput"},"title":"GetTransactionsResponse","description":"Transactions of the organization, newest first. Paginated via page/pageSize + X-* headers."},"UpdateTransactionRequest":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"templateTransactionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"operationCategory":{"type":"string"},"frequency":{"type":"number","minimum":-140737488355328,"maximum":140737488355327},"articleId":{"type":"string"},"actionOrProduct":{"type":"string","enum":["action","product"]},"details":{"nullable":true,"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","nullable":true,"enum":[null]}]},{"type":"object","additionalProperties":{}},{"type":"array","items":{}}]},"diesel":{"type":"number","minimum":-140737488355328,"maximum":140737488355327},"electricity":{"nullable":true,"type":"number"},"quantity":{"type":"number","minimum":-140737488355328,"maximum":140737488355327},"unit":{"type":"string"},"workedAreaInHa":{"default":null,"nullable":true,"type":"number"},"co2":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"services":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"hours":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"materials":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"repairs":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"miscellanous":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"interest":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"depreciation":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"price":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"priceUnit":{"nullable":true,"type":"string"},"productCost":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"cost":{"nullable":true,"type":"number","minimum":-140737488355328,"maximum":140737488355327},"status":{"type":"string","enum":["PLANNING","IN_EXECUTION","DOCUMENTATION"]},"date":{"type":"string"}},"required":["id","cultivationId","templateTransactionId","operationId","operationCategory","frequency","articleId","actionOrProduct","details","diesel","quantity","unit","co2","services","hours","materials","repairs","miscellanous","interest","depreciation","price","priceUnit","productCost","cost","status","date"],"additionalProperties":false,"title":"UpdateTransactionRequest","description":"The full transaction row to store (date as ISO string). The server recomputes CO₂e and costs for the whole operation, marks the row MODIFIED and syncs warehouse stock entries."},"CreateTransactionRequest":{"type":"object","properties":{"operationId":{"description":"Omit to start a new operation","type":"string"},"category":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"id":{"nullable":true,"type":"string"},"cultivationId":{"type":"string"},"templateTransactionId":{"nullable":true,"type":"string"},"operationId":{"nullable":true,"type":"string"},"operationCategory":{"type":"string"},"modifiedOrAdded":{"nullable":true},"date":{"type":"string"},"frequency":{"type":"number","minimum":-140737488355328,"maximum":140737488355327},"articleId":{"type":"string"},"actionOrProduct":{"type":"string","enum":["action","product"]},"details":{"nullable":true},"diesel":{"type":"number","minimum":-140737488355328,"maximum":140737488355327},"electricity":{"nullable":true,"type":"number"},"quantity":{"type":"number","minimum":-140737488355328,"maximum":140737488355327},"unit":{"type":"string"},"workedAreaInHa":{"default":null,"nullable":true,"type":"number"},"co2":{"default":0,"nullable":true,"type":"number"},"services":{"default":0,"nullable":true,"type":"number"},"hours":{"default":0,"nullable":true,"type":"number"},"materials":{"default":0,"nullable":true,"type":"number"},"repairs":{"default":0,"nullable":true,"type":"number"},"miscellanous":{"default":0,"nullable":true,"type":"number"},"interest":{"default":0,"nullable":true,"type":"number"},"depreciation":{"default":0,"nullable":true,"type":"number"},"price":{"default":0,"nullable":true,"type":"number"},"priceUnit":{"default":"euro_kg","nullable":true,"type":"string"},"productCost":{"default":0,"nullable":true,"type":"number"},"cost":{"default":0,"nullable":true,"type":"number"},"status":{"type":"string","enum":["PLANNING","IN_EXECUTION","DOCUMENTATION"]}},"required":["operationCategory","date","frequency","articleId","actionOrProduct","details","diesel","quantity","unit","status"],"additionalProperties":false}}},"required":["transactions"],"additionalProperties":false,"title":"CreateTransactionRequest","description":"One operation with its transaction rows (action + product lines). The server assigns ids and the operationId, computes CO₂e, emissions and costs."},"UpdateOperationStatusRequest":{"type":"object","properties":{"status":{"type":"string","enum":["PLANNING","IN_EXECUTION","DOCUMENTATION"]}},"required":["status"],"additionalProperties":false,"title":"UpdateOperationStatusRequest","description":"New status for the whole operation (all its transaction rows advance together). Flipping to DOCUMENTATION books warehouse stock entries and freezes the BBCH snapshot; rolling back removes the stock entry.","example":{"status":"DOCUMENTATION"}},"PatchTransactionRequest":{"type":"object","properties":{"status":{"type":"string","enum":["IN_EXECUTION","DOCUMENTATION"]},"date":{"type":"string"},"note":{"type":"string"},"details":{"description":"Category-specific completion values (mobile Erledigen fields). Merged key-wise into the row's existing details JSONB — stored keys that are not re-sent are kept.","nullable":true,"type":"object","additionalProperties":{}},"frequency":{"description":"Treated-area share 0–1 ('Behandelte Fläche', PSM documentation).","nullable":true,"type":"number","minimum":0,"maximum":1},"quantity":{"description":"Measured quantity, e.g. the harvest yield onto the operation's harvest product row.","nullable":true,"type":"number","minimum":0,"exclusiveMinimum":true},"unit":{"description":"Unit of the measured quantity, stored canonically (kg/ha → kg_ha, m3_ha → cbm_ha).","nullable":true,"type":"string","minLength":1}},"required":["status"],"additionalProperties":false,"title":"PatchTransactionRequest","description":"Mark one transaction row as executed/documented. Optional actual execution date, a free-text note (merged into details.note) and the mobile completion values: details (merged key-wise into the stored details), frequency (treated-area share 0–1) and quantity/unit (e.g. harvest yield). quantity/unit/frequency recompute the row's CO₂e and cost. Idempotent: re-sending the same status is a 200 no-op. Moving a DOCUMENTATION row back to IN_EXECUTION is rejected with 409. DOCUMENTATION books warehouse stock for the row and freezes the operation's BBCH snapshot.","example":{"status":"DOCUMENTATION","note":"Nachts gespritzt, windstill","details":{"windSpeed":2.5},"frequency":0.6}},"PostTransactionRequest":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Client-generated row id and idempotency key — replaying an id that already exists returns the stored row (200) instead of creating a duplicate."},"operationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Client-generated id grouping the rows of one Maßnahme. May span multiple cultivations across calls (one row per call) — existing rows of the operation are never touched."},"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Target cultivation (Teilschlag); must belong to the organization."},"orgId":{"description":"Ignored — the orgId path parameter wins.","type":"string"},"fieldId":{"description":"Ignored — derived from the cultivation.","nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"operationCategory":{"type":"string","enum":["TILLAGE","PLANTING","FERTILIZING","PROTECTION","MONITORING","MAINTENANCE","HARVESTING","POSTHARVEST","IRRIGATION","MISCELLANEOUS","OTHERS"]},"actionOrProduct":{"type":"string","enum":["action","product"]},"articleId":{"type":"string","minLength":1,"description":"Article FQN — must reference an existing article (hard foreign key)."},"date":{"description":"Planned date (YYYY-MM-DD or ISO timestamp).","type":"string"},"status":{"type":"string","enum":["PLANNING"],"description":"Creates are always PLANNING rows; execution/documentation goes through PATCH."},"quantity":{"description":"Planned quantity (null → 0). Harvest product rows need a planned yield > 0.","nullable":true,"type":"number"},"unit":{"description":"Quantity unit, e.g. kg_ha (null → empty), stored canonically (kg/ha → kg_ha, m3_ha → cbm_ha).","nullable":true,"type":"string"},"frequency":{"description":"Treated-area share 0–1 (null → 1).","nullable":true,"type":"number","minimum":0,"maximum":1},"details":{"description":"Row details JSONB, e.g. { note } — stored exactly as sent.","nullable":true,"type":"object","additionalProperties":{}}},"required":["id","operationId","cultivationId","operationCategory","actionOrProduct","articleId","date","status"],"additionalProperties":false,"title":"PostTransactionRequest","description":"One transaction row to create for offline-first mobile planning ('Maßnahme planen'). id and operationId are client UUIDs; the id doubles as the idempotency key (201 created / 200 replay). The server verifies the cultivation belongs to the organization and computes CO₂e, diesel and costs via the same pipeline as the fieldGroups create flow.","example":{"id":"11111111-1111-1111-1111-111111111111","operationId":"44444444-4444-4444-4444-444444444444","cultivationId":"22222222-2222-2222-2222-222222222222","operationCategory":"FERTILIZING","actionOrProduct":"product","articleId":"MINERAL__CALCIUM_AMMONIUM_NITRATE","date":"2026-03-20T00:00:00.000Z","status":"PLANNING","quantity":250,"unit":"kg_ha","frequency":1,"details":{"note":"Teilfläche Nord"}}},"ExportPreflightResponse":{"type":"object","properties":{"message":{"type":"string"},"preflight":{"$ref":"#/components/schemas/ExportPreflightResultOutput"}},"required":["message","preflight"],"additionalProperties":false,"title":"ExportPreflightResponse","description":"422 body when a federal export cannot be built yet: missing org metadata (maintain it in the app under Settings → Export), unmapped crops or blocking validation issues. Warning/info issues are advisory and do not block."},"FederalExportPreflightResponse":{"type":"object","properties":{"format":{"$ref":"#/components/schemas/FederalExportFormatEnum"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"configured":{"type":"boolean","description":"The farm number this format files under is on file (st: EU-Betriebsnummer, else Betriebsnummer)"},"preflight":{"$ref":"#/components/schemas/ExportPreflightResultOutput"}},"required":["format","year","configured","preflight"],"additionalProperties":false,"description":"200 body of POST …/export/{format}/preflight — a compute, never 422"},"ExportObligationsResponse":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Report year the obligations refer to"},"defaultYear":{"type":"boolean","description":"True when `year` was not given and the default rule applied"},"region":{"type":"object","properties":{"federalState":{"nullable":true,"description":"Two-letter federal state code, e.g. NI","type":"string"},"federalStateName":{"nullable":true,"type":"string"},"source":{"nullable":true,"description":"override: set manually in the fertilizer-report settings; flik: FLIK-prefix majority; region: the farm's Regierungsbezirk (NUTS-2) or, without one, the centroid of the fields","type":"string","enum":["override","flik","region"]},"flikCoverage":{"type":"number","description":"Share of fields with a state-bearing FLIK (0..1)"}},"required":["federalState","federalStateName","source","flikCoverage"],"additionalProperties":false},"reports":{"type":"array","items":{"type":"object","properties":{"format":{"$ref":"#/components/schemas/FederalExportFormatEnum"},"label":{"type":"string"},"required":{"type":"boolean","description":"Statutory filing with a deadline (false for the BESYD import helper)"},"configured":{"type":"boolean"},"deadline":{"nullable":true,"description":"Last day of the filing period (Europe/Berlin), ISO date","type":"string"},"daysUntil":{"nullable":true,"description":"Days left until the end of the deadline day in Europe/Berlin, rounded up; negative once passed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["open","due_soon","overdue","no_deadline"],"description":"due_soon = ≤ 60 days"},"exportPath":{"type":"string"},"preflightPath":{"type":"string"}},"required":["format","label","required","configured","deadline","daysUntil","status","exportPath","preflightPath"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"string"}}},"required":["year","defaultYear","region","reports","notes"],"additionalProperties":false,"description":"Federal fertilization reports the organization owes for a report year, with deadlines and next calls","example":{"year":2025,"defaultYear":true,"region":{"federalState":"NI","federalStateName":"Niedersachsen","source":"flik","flikCoverage":0.93},"reports":[{"format":"enni","label":"ENNI Düngemeldung (Niedersachsen)","required":true,"configured":true,"deadline":"2026-06-30","daysUntil":298,"status":"open","exportPath":"/api/org_123/export/enni?year=2025","preflightPath":"/api/org_123/export/enni/preflight?year=2025"}],"notes":["Region derived from FLIK prefixes of 93 % of fields"]}},"NitrogenRequirementRequest":{"type":"object","properties":{"cultivationId":{"description":"Which cultivation of the field to compute. Required when the field has several in the year (main crop + catch crop, Teilschläge): without it such a field answers 422 naming the cultivation ids.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"overrides":{"allOf":[{"$ref":"#/components/schemas/DbeOverridesSchema"}]},"saveSnapshot":{"description":"Store the computed DBE as the cultivation's snapshot (201 when a new one was written, 200 when the newest stored snapshot already holds this determination)","type":"boolean"}},"additionalProperties":false,"example":{"overrides":{"yieldInT_perArea":8.5,"nMin_perArea":40},"saveSnapshot":false}},"NitrogenRequirementResponse":{"type":"object","properties":{"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"crop":{"type":"string"},"input":{"$ref":"#/components/schemas/DbeInputOutput"},"result":{"$ref":"#/components/schemas/DbeResultOutput"},"redArea":{"$ref":"#/components/schemas/DbeRedAreaBasisOutput"},"soilOverrideApplied":{"type":"boolean","description":"Soil-overview values (texture → LUFA class, humus, Nmin) replaced the soil-map defaults"},"snapshot":{"nullable":true,"description":"With saveSnapshot: the snapshot that holds this determination — written now, or (unchanged) the newest stored one that already equals it. Else null","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"snapshotAt":{"type":"string"},"unchanged":{"type":"boolean"}},"required":["id","snapshotAt","unchanged"],"additionalProperties":false}},"required":["fieldId","cultivationId","year","crop","input","result","redArea","soilOverrideApplied","snapshot"],"additionalProperties":false,"description":"N requirement (DBE) of one field-year, mirroring the nitrogen page's DBE column"},"GetDbeSnapshotsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DbeSnapshotItemOutput"}},"nextCursor":{"nullable":true,"type":"string"},"truncated":{"type":"boolean"}},"required":["items","nextCursor","truncated"],"additionalProperties":false,"description":"Latest snapshot per cultivation, paged by cursor"},"PostDbeSnapshotsRequest":{"type":"object","properties":{"cultivationIds":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"overrides":{"allOf":[{"$ref":"#/components/schemas/DbeOverridesSchema"}]}},"required":["cultivationIds"],"additionalProperties":false,"example":{"cultivationIds":["5a4e8d02-9d1f-4a7b-8f7c-0e2d1c3b4a59"]}},"PostDbeSnapshotsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"snapshotId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"snapshotAt":{"type":"string"},"nFertilizerNeedFinal":{"type":"number"},"unchanged":{"type":"boolean","description":"true: the newest stored snapshot already holds this determination, no new one was written (its date stays)"}},"required":["cultivationId","snapshotId","snapshotAt","nFertilizerNeedFinal","unchanged"],"additionalProperties":false}},"skipped":{"type":"array","items":{"type":"object","properties":{"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"type":"string","enum":["not_found","no_cultivation","unsupported_crop","state_value_required","variant_required","nmin_sample_required","usage_missing","dry_matter_missing","yield_missing","organic_matter_missing","moor_type_missing","legume_share_missing"]}},"required":["cultivationId","reason"],"additionalProperties":false}}},"required":["items","skipped"],"additionalProperties":false,"description":"The snapshot that holds the determination of each cultivation (written now or unchanged) plus the cultivations that could not be computed"},"GetFertilizationStrategiesResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/FertilizationStrategyOutput"}},"nextCursor":{"type":"string","nullable":true,"enum":[null]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"truncated":{"type":"boolean","enum":[false]}},"required":["items","nextCursor","total","truncated"],"additionalProperties":false,"description":"Platform default strategies plus the organization's own"},"GetMarketPricesResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MarketPriceItemOutput"}},"nextCursor":{"type":"string","nullable":true,"enum":[null]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"truncated":{"type":"boolean","enum":[false]},"country":{"type":"string","enum":["DE","FR","PL","CZ","NL","IT","RO"]},"commodities":{"type":"array","items":{"$ref":"#/components/schemas/MarketCommodityEnum"},"description":"All commodity keys the platform tracks"},"stale":{"type":"boolean","description":"Newest quote for the country is missing or older than 14 days"}},"required":["items","nextCursor","total","truncated","country","commodities","stale"],"additionalProperties":false,"description":"Weekly EU Agri-food reference prices (EUR/t) for one country"},"CreateImportRequestRequest":{"type":"object","properties":{"notes":{"description":"Free text for the fulfilling team","type":"string","maxLength":4000},"locale":{"description":"Requester language for the result e-mail (default: Accept-Language)","type":"string","maxLength":10}},"additionalProperties":false,"example":{"notes":"Please import the attached Schlagkartei export","locale":"de"}},"CreateImportRequestResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"orgId":{"type":"string"},"status":{"$ref":"#/components/schemas/ImportRequestStatusEnum"},"requestedBy":{"type":"object","properties":{"userId":{"type":"string"},"email":{"nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"}},"required":["userId","email","name"],"additionalProperties":false},"locale":{"nullable":true,"description":"Requester's UI language at request time (drives the result e-mail)","type":"string"},"host":{"nullable":true,"type":"string"},"env":{"type":"string","enum":["prod","staging"],"description":"Deployment the request was filed on (derived from host): prod = agmeo.com / bat-agrar.de, staging = beta-testing and everything else. Fulfil against the matching API (and database) only."},"notes":{"nullable":true,"type":"string"},"files":{"type":"array","items":{"$ref":"#/components/schemas/ImportRequestFileOutput"},"description":"Imports-folder snapshot at request time"},"connectors":{"type":"array","items":{"type":"string"},"description":"Provider ids of OAuth/credential connections the org had at request time"},"assigneeEmail":{"nullable":true,"type":"string"},"assigneeNote":{"nullable":true,"type":"string"},"importJobIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"}},"resultSummary":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/ImportResultSummaryOutput"}]},"learnings":{"type":"array","items":{"$ref":"#/components/schemas/ImportLearningOutput"}},"failureReason":{"nullable":true,"type":"string"},"toolshedTicket":{"nullable":true,"description":"Mirror ticket number in toolshed (internal.agvolution.com)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestedAt":{"type":"string"},"startedAt":{"nullable":true,"type":"string"},"doneAt":{"nullable":true,"type":"string"},"acknowledgedAt":{"nullable":true,"description":"Requester dismissed the in-app 'import ready' dialog","type":"string"},"notifiedAt":{"nullable":true,"description":"Requester e-mail sent","type":"string"},"created":{"type":"boolean","description":"False when an open request already existed (returned as is)"},"fileCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Files snapshotted from the Imports folder"}},"required":["id","orgId","status","requestedBy","locale","host","env","notes","files","connectors","assigneeEmail","assigneeNote","importJobIds","resultSummary","learnings","failureReason","toolshedTicket","requestedAt","startedAt","doneAt","acknowledgedAt","notifiedAt","created","fileCount"],"additionalProperties":false,"description":"The opened (201) or already open (200) AI-import request"},"GetCaptureAnnotationsResponse":{"type":"array","items":{"$ref":"#/components/schemas/CaptureAnnotationResponseOutput"},"title":"GetCaptureAnnotationsResponse","description":"Capture annotations, newest capture first. In ?since= delta mode, deletions appear as tombstones."},"CreateCaptureAnnotationRequest":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Client-generated idempotency key"},"fieldId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"cultivationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"kind":{"type":"string","enum":["note","photo","voice","receipt"]},"category":{"nullable":true,"type":"string","enum":["unkraut","krankheit","schaedlinge","wildschaden","naesse_drainage","sonstiges"]},"text":{"default":"","type":"string"},"gpsLat":{"nullable":true,"type":"number","minimum":-90,"maximum":90},"gpsLon":{"nullable":true,"type":"number","minimum":-180,"maximum":180},"gpsAccuracy":{"nullable":true,"type":"number","minimum":0},"createdAt":{"description":"Client capture time — preserved as capturedAt","type":"string"},"photoKeys":{"default":[],"type":"array","items":{"type":"string"}},"details":{"nullable":true,"type":"object","properties":{"durationSec":{"type":"number","minimum":0},"audioKey":{"type":"string"},"needsTranscription":{"type":"boolean"},"language":{"description":"voice: language of the dictation as a BCP-47 tag (primary subtag is used, e.g. 'en', 'de'). Selects the transcription language and extraction prompt; absent = German (builds before 2026-10).","type":"string"},"supplier":{"type":"string"}},"additionalProperties":{}}},"required":["id","kind","createdAt"],"additionalProperties":false,"title":"CreateCaptureAnnotationRequest","description":"Create a capture annotation. Idempotent on the client-generated id: first call 201, replay 200 with the same id. Photo/audio files are uploaded first via /files/presign + /files/confirm and referenced by their fileKeys. createdAt is the client capture time (ISO string) and is preserved as capturedAt."},"CreateLiveLocationsRequest":{"type":"object","properties":{"points":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/LiveLocationPointOutput"}}},"required":["points"],"additionalProperties":false,"title":"CreateLiveLocationsRequest","description":"Batch of driver GPS fixes. The driver identity comes from the authenticated user."},"CreateLiveLocationsResponse":{"type":"object","properties":{"inserted":{"type":"number"},"duplicates":{"type":"number","description":"Points skipped because they were already stored (offline replay)"}},"required":["inserted","duplicates"],"additionalProperties":false,"title":"CreateLiveLocationsResponse"},"GetSavedLocationsResponse":{"type":"array","items":{"$ref":"#/components/schemas/SavedLocationResponseOutput"},"title":"GetSavedLocationsResponse","description":"Saved locations by name. In ?since= delta mode, deletions appear as tombstones."},"CreateSavedLocationRequest":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Client-generated idempotency key"},"name":{"type":"string","minLength":1},"categoryId":{"description":"Client-side category id","nullable":true,"type":"string"},"categoryName":{"nullable":true,"type":"string"},"categoryColor":{"description":"Pin color, e.g. #4DC709","nullable":true,"type":"string"},"lat":{"type":"number","minimum":-90,"maximum":90},"lon":{"type":"number","minimum":-180,"maximum":180},"createdAt":{"description":"Client creation time (ISO or epoch ms)","type":"string"}},"required":["id","name","lat","lon"],"additionalProperties":false,"title":"CreateSavedLocationRequest","description":"Saved location to create. Idempotent on the client-generated id.","example":{"id":"3f2b8c1e-7a4d-4e5f-9b6a-1c2d3e4f5a6b","name":"Wasserstelle Nord","lat":52.52,"lon":13.4}},"CreateSoilSamplingSessionRequest":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Client-generated idempotency key"},"name":{"type":"string","minLength":1,"maxLength":200},"startedAt":{"description":"Client start time (ISO or epoch ms)","type":"string"}},"required":["id","name","startedAt"],"additionalProperties":false,"title":"CreateSoilSamplingSessionRequest","description":"Soil sampling session to create. Idempotent on the client-generated id.","example":{"id":"3f2b8c1e-7a4d-4e5f-9b6a-1c2d3e4f5a6b","name":"Frühjahr 2026","startedAt":1767225600000}},"CreateSoilSamplingPointRequest":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Client-generated idempotency key"},"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"zoneId":{"nullable":true,"type":"string","maxLength":100},"zoneLabel":{"nullable":true,"type":"string","maxLength":100},"pointIndex":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Number on the sample bag, per (session, field, zone)"},"lat":{"type":"number","minimum":-90,"maximum":90},"lon":{"type":"number","minimum":-180,"maximum":180},"accuracyM":{"nullable":true,"type":"number","minimum":0},"takenAt":{"description":"Client time of the probe (ISO or epoch ms)","type":"string"}},"required":["id","fieldId","pointIndex","lat","lon","takenAt"],"additionalProperties":false,"title":"CreateSoilSamplingPointRequest","description":"Soil probe to add to a session. Idempotent on the client-generated id."},"PatchSavedLocationRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"categoryId":{"description":"Client-side category id","nullable":true,"type":"string"},"categoryName":{"nullable":true,"type":"string"},"categoryColor":{"description":"Pin color, e.g. #4DC709","nullable":true,"type":"string"}},"additionalProperties":false,"title":"PatchSavedLocationRequest","description":"Partial update; only provided fields change."},"PatchCaptureAnnotationRequest":{"type":"object","properties":{"text":{"type":"string"},"category":{"nullable":true,"type":"string","enum":["unkraut","krankheit","schaedlinge","wildschaden","naesse_drainage","sonstiges"]},"details":{"nullable":true,"type":"object","additionalProperties":{}},"deleted":{"description":"Soft-delete (tombstoned in delta sync)","type":"boolean","enum":[true]}},"additionalProperties":false,"title":"PatchCaptureAnnotationRequest","description":"Partial update; only provided fields change. deleted: true soft-deletes the annotation."},"PresignFilesRequest":{"type":"object","properties":{"files":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"clientKey":{"type":"string","description":"Opaque correlation key echoed back per file"},"name":{"type":"string","minLength":1},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991}},"required":["clientKey","name","mimeType","sizeBytes"],"additionalProperties":false}}},"required":["files"],"additionalProperties":false,"title":"PresignFilesRequest","description":"Request presigned PUT URLs (Hetzner object storage) for a batch of uploads."},"PresignFilesResponse":{"type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"clientKey":{"type":"string"},"fileKey":{"type":"string"},"url":{"type":"string"},"expiresAt":{"type":"string"}},"required":["clientKey","fileKey","url","expiresAt"],"additionalProperties":false}}},"required":["files"],"additionalProperties":false,"title":"PresignFilesResponse"},"AssistantChatRequest":{"type":"object","properties":{"messages":{"minItems":1,"maxItems":40,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant","tool"]},"text":{"type":"string"},"images":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"mediaType":{"type":"string","enum":["image/jpeg","image/png"]},"base64":{"type":"string","minLength":1,"maxLength":2000000}},"required":["mediaType","base64"],"additionalProperties":false,"description":"Inline photo attached to a user message (raw base64, no data: prefix)"}},"toolCalls":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"input":{"type":"object","additionalProperties":{}}},"required":["id","name","input"],"additionalProperties":false,"description":"A tool-use request the client must execute locally"}},"toolResults":{"type":"array","items":{"type":"object","properties":{"toolCallId":{"type":"string","minLength":1},"content":{},"isError":{"type":"boolean"}},"required":["toolCallId","content"],"additionalProperties":false,"description":"Result of a locally executed tool, fed back to the model"}}},"required":["role"],"additionalProperties":false,"title":"AssistantChatMessage","description":"One neutral conversation message (backend-independent shape from @agvolution/agmeo-assistant)"}},"tools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"inputSchema":{"type":"object","properties":{"type":{"type":"string","enum":["object"]}},"required":["type"],"additionalProperties":{},"description":"JSON Schema (type: object) for the tool inputs"}},"required":["name","description","inputSchema"],"additionalProperties":false,"title":"AssistantToolSchema"}},"model":{"description":"Model hint from the client — the server pins its own model (ASSISTANT_MODEL) and ignores this","type":"string"},"maxTokens":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"language":{"description":"Answer language as a BCP-47 tag (primary subtag is used, e.g. 'en'). Falls back to the Accept-Language header, then German. Units and currency come from the org's settings, not from the client.","type":"string"}},"required":["messages","tools"],"additionalProperties":false,"title":"AssistantChatRequest","description":"One model step of the on-device agentic loop. The system prompt is NOT part of the request — the server owns it (imported from @agvolution/agmeo-assistant) and appends the answer language and the org's measurement system and currency."},"AssistantChatResponse":{"type":"object","properties":{"text":{"type":"string","description":"Assistant free text for this step"},"toolCalls":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"input":{"type":"object","additionalProperties":{}}},"required":["id","name","input"],"additionalProperties":false,"description":"A tool-use request the client must execute locally"},"description":"Tool-use requests the client must run locally; empty array means the turn is finished"},"usage":{"description":"Token usage of this step (also metered into the org's daily budget)","type":"object","properties":{"inputTokens":{"type":"number"},"outputTokens":{"type":"number"}},"required":["inputTokens","outputTokens"],"additionalProperties":false}},"required":["text","toolCalls"],"additionalProperties":false,"title":"AssistantChatResponse"},"GetVoiceDraftsResponse":{"type":"array","items":{"$ref":"#/components/schemas/VoiceDraftResponseOutput"},"title":"GetVoiceDraftsResponse","description":"Voice drafts, newest first. ?since= filters on updatedAt for delta sync."},"ConfirmFilesRequest":{"type":"object","properties":{"files":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"fileKey":{"type":"string"},"name":{"type":"string","minLength":1},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["fileKey","name","mimeType","sizeBytes"],"additionalProperties":false}}},"required":["files"],"additionalProperties":false,"title":"ConfirmFilesRequest","description":"Register uploaded files as UserFiles rows after the PUTs succeeded. Idempotent — replays are ignored (fileKey is the primary key)."},"FieldWeatherResponse":{"type":"object","properties":{"fetchedAt":{"nullable":true,"description":"When the platform crawler last refreshed the data","type":"string"},"hourly":{"type":"array","items":{"type":"object","properties":{"ts":{"type":"string"},"tempC":{"nullable":true,"description":"Air temperature; null = no reading for that hour, never 0","x-unit":"°C","type":"number"},"windMs":{"nullable":true,"description":"Wind speed; null = no reading for that hour, never 0","x-unit":"m/s","type":"number"},"gustMs":{"nullable":true,"description":"Wind gust; null = no reading for that hour, never 0","x-unit":"m/s","type":"number"},"humidityPct":{"nullable":true,"description":"Relative humidity; null = no reading for that hour, never 0","x-unit":"%","type":"number"},"precipMm":{"nullable":true,"description":"Precipitation; null = no reading for that hour, never 0","x-unit":"mm","type":"number"},"precipProbPct":{"nullable":true,"description":"Not stored per hour yet — always null","type":"number"},"spray":{"type":"object","properties":{"level":{"nullable":true,"description":"0 = best spraying conditions, 3 = unsuitable (server convention); null = a reading of that hour is missing, so the hour is not scored","type":"integer","minimum":0,"maximum":3},"reasons":{"type":"array","items":{"type":"string"}}},"required":["level","reasons"],"additionalProperties":false}},"required":["ts","tempC","windMs","gustMs","humidityPct","precipMm","precipProbPct","spray"],"additionalProperties":false}},"daily":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"tempMin":{"type":"number"},"tempMax":{"type":"number"},"precipMm":{"type":"number"},"precipProbPct":{"nullable":true,"description":"Not stored per day yet — always null","type":"number"},"windMaxMs":{"type":"number"}},"required":["date","tempMin","tempMax","precipMm","precipProbPct","windMaxMs"],"additionalProperties":false}}},"required":["fetchedAt","hourly","daily"],"additionalProperties":false,"title":"FieldWeatherResponse","description":"48 h hourly weather with per-hour spray score (0 = best) and 7 d daily aggregates for the field's latest cultivation, from the platform's weather timeseries."},"PostVrnLegacyRequest":{"type":"object","properties":{"yieldPotential":{"description":"User yield expectation in t/ha fresh matter. Nitrogen demand correlates with yield expectation (yield response curve). If omitted, an internal yield prediction model is used.","example":8.7,"type":"number","minimum":0,"exclusiveMinimum":true},"desiredN":{"type":"number","minimum":0,"maximum":1,"description":"Fraction (0-1) of total seasonal nitrogen demand to include in the requested application map.","example":0.6},"desiredZones":{"type":"number","minimum":1,"description":"Number of desired zones for fertilizer application map.","example":5},"borderWidth":{"type":"number","minimum":0,"description":"Width of the border zone around the field in meters.","example":8},"borderFertilization":{"type":"number","minimum":0,"description":"Amount of fertilizer to apply in the border zone in kgN/ha.","example":15},"fertilizer":{"description":"Fully qualified name of the fertilizer product. Refer to GET /api/asset/latest/enums/fertilizers.","example":"MINERAL__AHL_28","type":"string"},"fertilizerNContent":{"description":"Nitrogen content fraction of the fertilizer product. Will overwrite value of product database if 'fertilizer' is provided too.","example":0.28,"type":"number","minimum":0,"maximum":1},"nmin":{"description":"Nmin in the soil at start of season in kgN/ha.","example":20,"nullable":true,"type":"number","minimum":0},"alreadyAppliedN":{"description":"Amount of nitrogen already applied this season in kgN/ha.","example":30,"type":"number","minimum":0},"previousExecution":{"description":"Legacy compatibility purpose only.","type":"string"}},"required":["desiredN","desiredZones","borderWidth","borderFertilization"],"additionalProperties":false},"PostFertilizingApplicationMapsRequest":{"type":"object","properties":{"targetTerminal":{"description":"Target terminal type for the application map","example":"JD_GEN4_COMMAND_CENTER","allOf":[{"$ref":"#/components/schemas/TargetTerminalTypeEnum"}]},"fieldName":{"type":"string","minLength":1,"description":"Name of the field for the application map","example":"North Field 42"},"product":{"type":"string","minLength":1,"description":"Name of the fertilizer product being applied","example":"KAS 27%"},"zones":{"type":"object","properties":{"type":{"type":"string","enum":["FeatureCollection"]},"features":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"properties":{"type":"object","properties":{"RATE":{"type":"number","minimum":0,"description":"Application rate for this zone","example":120.5},"UNIT":{"type":"string","enum":["kg_ha","l_ha"],"description":"Unit of measurement for fertilizer application rate","example":"kg_ha"}},"required":["RATE","UNIT"],"additionalProperties":false}},"required":["type","geometry","properties"],"additionalProperties":false}}},"required":["type","features"],"additionalProperties":false,"description":"GeoJSON FeatureCollection containing management zones with application rates"}},"required":["targetTerminal","fieldName","product","zones"],"additionalProperties":false,"ref":"PostFertilizingApplicationMapsRequest","description":"Request to generate a fertilizing application map in ISOXML format","example":{"targetTerminal":"JD_GEN4_COMMAND_CENTER","fieldName":"North Field 42","product":"KAS 27%","zones":{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[13.404954,52.520008],[13.405954,52.520008],[13.405954,52.521008],[13.404954,52.521008],[13.404954,52.520008]]]},"properties":{"RATE":120.5,"UNIT":"kg_ha"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[13.405954,52.520008],[13.406954,52.520008],[13.406954,52.521008],[13.405954,52.521008],[13.405954,52.520008]]]},"properties":{"RATE":95,"UNIT":"kg_ha"}}]}}},"PostFertilizingApplicationMapsBatchRequest":{"type":"object","properties":{"targetTerminal":{"description":"Target terminal type for all fields","example":"FENDT","allOf":[{"$ref":"#/components/schemas/TargetTerminalTypeEnum"}]},"fields":{"minItems":1,"type":"array","items":{"type":"object","properties":{"fieldName":{"type":"string","minLength":1,"description":"Name of the field","example":"North Field 42"},"product":{"type":"string","minLength":1,"description":"Name of the fertilizer product being applied","example":"KAS 27%"},"zones":{"type":"object","properties":{"type":{"type":"string","enum":["FeatureCollection"]},"features":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"properties":{"type":"object","properties":{"RATE":{"type":"number","minimum":0,"description":"Application rate for this zone","example":120.5},"UNIT":{"type":"string","enum":["kg_ha","l_ha"],"description":"Unit of measurement for fertilizer application rate","example":"kg_ha"}},"required":["RATE","UNIT"],"additionalProperties":false}},"required":["type","geometry","properties"],"additionalProperties":false}}},"required":["type","features"],"additionalProperties":false,"description":"GeoJSON FeatureCollection containing management zones with application rates"}},"required":["fieldName","product","zones"],"additionalProperties":false},"description":"Array of fields to include in the batch export"}},"required":["targetTerminal","fields"],"additionalProperties":false,"ref":"PostFertilizingApplicationMapsBatchRequest","description":"Request to generate a single ISOXML/shapefile containing application maps for multiple fields. For ISOXML terminals, all fields are combined into one TASKDATA with multiple tasks. For shapefile terminals, all fields are placed in one ZIP with per-field subfolders.","example":{"targetTerminal":"FENDT","fields":[{"fieldName":"North Field 42","product":"KAS 27%","zones":{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[13.404954,52.520008],[13.405954,52.520008],[13.405954,52.521008],[13.404954,52.521008],[13.404954,52.520008]]]},"properties":{"RATE":120.5,"UNIT":"kg_ha"}}]}},{"fieldName":"South Field 15","product":"KAS 27%","zones":{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[13.406954,52.519008],[13.407954,52.519008],[13.407954,52.520008],[13.406954,52.520008],[13.406954,52.519008]]]},"properties":{"RATE":95,"UNIT":"kg_ha"}}]}}]}},"PostSeedingApplicationMapsRequest":{"type":"object","properties":{"targetTerminal":{"description":"Target terminal type for the application map","example":"FENDT","allOf":[{"$ref":"#/components/schemas/TargetTerminalTypeEnum"}]},"fieldName":{"type":"string","minLength":1,"description":"Name of the field for the application map","example":"South Field 15"},"variety":{"description":"Seed variety being planted (optional)","example":"KWS Campesino","type":"string","minLength":1},"zones":{"type":"object","properties":{"type":{"type":"string","enum":["FeatureCollection"]},"features":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"properties":{"type":"object","properties":{"RATE":{"type":"number","minimum":0,"description":"Seeding rate for this zone","example":32},"UNIT":{"type":"string","enum":["kg_ha","grains_m2"],"description":"Unit of measurement for seeding rate","example":"grains_m2"}},"required":["RATE","UNIT"],"additionalProperties":false}},"required":["type","geometry","properties"],"additionalProperties":false}}},"required":["type","features"],"additionalProperties":false,"description":"GeoJSON FeatureCollection containing management zones with seeding rates"}},"required":["targetTerminal","fieldName","zones"],"additionalProperties":false,"ref":"PostSeedingApplicationMapsRequest","description":"Request to generate a seeding application map in ISOXML format","example":{"targetTerminal":"FENDT","fieldName":"South Field 15","variety":"KWS Campesino","zones":{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[13.404954,52.520008],[13.405954,52.520008],[13.405954,52.521008],[13.404954,52.521008],[13.404954,52.520008]]]},"properties":{"RATE":32,"UNIT":"grains_m2"}}]}}},"PostSeedingApplicationMapsBatchRequest":{"type":"object","properties":{"targetTerminal":{"description":"Target terminal type for all fields","example":"FENDT","allOf":[{"$ref":"#/components/schemas/TargetTerminalTypeEnum"}]},"fields":{"minItems":1,"type":"array","items":{"type":"object","properties":{"fieldName":{"type":"string","minLength":1,"description":"Name of the field","example":"South Field 15"},"variety":{"description":"Seed variety being planted (optional)","example":"KWS Campesino","type":"string","minLength":1},"zones":{"type":"object","properties":{"type":{"type":"string","enum":["FeatureCollection"]},"features":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"properties":{"type":"object","properties":{"RATE":{"type":"number","minimum":0,"description":"Seeding rate for this zone","example":32},"UNIT":{"type":"string","enum":["kg_ha","grains_m2"],"description":"Unit of measurement for seeding rate","example":"grains_m2"}},"required":["RATE","UNIT"],"additionalProperties":false}},"required":["type","geometry","properties"],"additionalProperties":false}}},"required":["type","features"],"additionalProperties":false,"description":"GeoJSON FeatureCollection containing management zones with seeding rates"}},"required":["fieldName","zones"],"additionalProperties":false},"description":"Array of fields to include in the batch export"}},"required":["targetTerminal","fields"],"additionalProperties":false,"ref":"PostSeedingApplicationMapsBatchRequest","description":"Request to generate a single ISOXML/shapefile containing seeding maps for multiple fields. For ISOXML terminals, all fields are combined into one TASKDATA with multiple tasks. For shapefile terminals, all fields are placed in one ZIP with per-field subfolders.","example":{"targetTerminal":"FENDT","fields":[{"fieldName":"South Field 15","variety":"KWS Campesino","zones":{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[13.404954,52.520008],[13.405954,52.520008],[13.405954,52.521008],[13.404954,52.521008],[13.404954,52.520008]]]},"properties":{"RATE":32,"UNIT":"grains_m2"}}]}}]}},"GeneralError":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false,"example":{"message":"Error message"}},"UnauthorizedError":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false,"example":{"message":"Unauthorized"}},"GetCropsResponse":{"type":"array","items":{"$ref":"#/components/schemas/CropResponseOutput"},"description":"List of all available crops"},"GetCropVarietiesResponse":{"type":"array","items":{"$ref":"#/components/schemas/CropVarietyResponseOutput"},"description":"List of crop varieties"},"GetCultivationGroupsResponse":{"type":"array","items":{"$ref":"#/components/schemas/CultivationGroupResponseOutput"},"description":"List of cultivation groups"},"CreateCultivationGroupRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"year":{"type":"integer","minimum":1900,"maximum":2100},"crop":{"type":"string"},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"isSecondaryOf":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"secondaryCropType":{"type":"string","enum":["INTERCROP","UNDERSOW"]}},"required":["name","year","crop","templateId"],"additionalProperties":false,"description":"Request body for creating a cultivation group","example":{"name":"Winter Wheat 2025","year":2025,"crop":"winterWheat","templateId":"456e7890-e89b-12d3-a456-426614174000"}},"UpdateCultivationGroupRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"crop":{"type":"string"}},"additionalProperties":false,"description":"Request body for updating a cultivation group","example":{"name":"Updated Winter Wheat 2025"}},"GetCultivationsResponse":{"type":"array","items":{"$ref":"#/components/schemas/CultivationResponseOutput"},"description":"List of cultivations"},"CreateCultivationRequest":{"type":"object","properties":{"cultivationGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"derivedFromFieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"sowingDate":{"format":"date","type":"string"},"harvestDate":{"format":"date","type":"string"},"variety":{"type":"string"},"usage":{"description":"Purpose of the cultivation: COMMERCIAL (market production, the default) or SEED_MULTIPLICATION (certified seed production of the same crop). Available for every crop; null is treated like an omitted field.","type":"string","enum":["COMMERCIAL","SEED_MULTIPLICATION"]},"seedLot":{"description":"Seed lot / certification number of a seed multiplication. Only kept while usage is SEED_MULTIPLICATION; null or \"\" clears it.","nullable":true,"type":"string","maxLength":100},"multiplicationGeneration":{"description":"Multiplication generation of a seed multiplication (e.g. Basic, C1, Z1). Only kept while usage is SEED_MULTIPLICATION; null or \"\" clears it.","nullable":true,"type":"string","maxLength":50}},"required":["cultivationGroupId","derivedFromFieldId"],"additionalProperties":false,"description":"Request body for creating a cultivation. `cultivationGroupId`: the cultivation group (crop + harvest year + template) the field joins — GET /api/{orgId}/cultivation-groups lists them, POST creates one. `derivedFromFieldId`: the field (`id` of GET /api/{orgId}/fields), whose outline becomes the cultivation's. `sowingDate` and `harvestDate` are days, YYYY-MM-DD (an ISO 8601 timestamp is accepted too): the template's planting operations move to the sowing day and its harvest operations shift so that the last one lands on the harvest day; without such operations one generic sowing or harvest is booked. Both are ignored for crops that are never sown. `variety` is the variety's name or its catalogue id (GET /api/{orgId}/crop-varieties?crop=…). A name is matched case-, whitespace- and manufacturer-prefix-insensitively to the varieties of the cultivation's crop (\"arturello\" and \"KWS Arturello\" are the same variety); a variety the catalogue does not have for that crop is never guessed: the cultivation is created without a variety (`variety: null`) and `warnings` names the value that was not set. Sending the same body again creates no second cultivation: it answers 200 with the existing one and `created: false`.","example":{"cultivationGroupId":"b1a2c3d4-e5f6-7890-abcd-ef1234567890","derivedFromFieldId":"f1e2d3c4-b5a6-7890-abcd-ef0987654321","sowingDate":"2025-09-15","harvestDate":"2026-07-28","variety":"KWS Donovan"}},"CreateCultivationResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"cultivationGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"geometry":{"nullable":true,"description":"Boundary of the cultivation as a bare GeoJSON geometry; null without a boundary","anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"mgrs":{"type":"array","items":{"type":"string"}},"utmZone":{"type":"array","items":{"type":"string"}},"areaInHa":{"type":"number","x-unit":"ha"},"derivedFromFieldId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"variety":{"description":"Catalogue UUID of the variety (CropVarieties id, see GET /crop-varieties) — not its name, which GET /fields returns","nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"usage":{"type":"string","enum":["COMMERCIAL","SEED_MULTIPLICATION"],"description":"COMMERCIAL (market production) or SEED_MULTIPLICATION (certified seed production)"},"seedLot":{"nullable":true,"description":"Seed lot of a seed multiplication, null otherwise","type":"string"},"multiplicationGeneration":{"nullable":true,"description":"Multiplication generation of a seed multiplication, null otherwise","type":"string"},"crop":{"description":"Denormalized from the cultivation group","type":"string"},"year":{"description":"Denormalized from the cultivation group","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created":{"type":"boolean","description":"true: this request created the cultivation (201). false: the field already had this cultivation with the values sent, nothing was written (200)."},"warnings":{"description":"What of the request was not applied: a `variety` the catalogue does not have for the crop, with the lookup and the route that sets one. Absent when everything was applied.","type":"array","items":{"type":"string"}}},"required":["id","cultivationGroupId","geometry","mgrs","utmZone","areaInHa","usage","seedLot","multiplicationGeneration","created"],"additionalProperties":false,"description":"The field's cultivation in the cultivation group, and whether this request created it"},"CultivationConflictError":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["validation_failed","not_found","conflict","forbidden_org","missing_scope","rate_limited","internal"]},"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"The cultivation the field already has in that year"}},"required":["message","code","cultivationId"],"additionalProperties":false,"description":"The field already has a cultivation in the year: `message` names it and the route that changes it or adds another","example":{"message":"Field f1e2d3c4-b5a6-7890-abcd-ef0987654321 already has a cultivation in 2026: 0b9c2f6e-1d2a-4c3b-9e8f-7a6b5c4d3e2f (winterWheat). This route creates the first cultivation of a field-year only. PUT /api/{orgId}/fields/f1e2d3c4-b5a6-7890-abcd-ef0987654321/2026 changes the crop, dates or variety of that cultivation, or adds a further one (a sub-field or a secondary crop) with asNewCultivation: true.","code":"conflict","cultivationId":"0b9c2f6e-1d2a-4c3b-9e8f-7a6b5c4d3e2f"}},"UpdateCultivationRequest":{"type":"object","properties":{"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"variety":{"type":"string"},"usage":{"description":"Purpose of the cultivation: COMMERCIAL (market production, the default) or SEED_MULTIPLICATION (certified seed production of the same crop). Available for every crop; null is treated like an omitted field.","type":"string","enum":["COMMERCIAL","SEED_MULTIPLICATION"]},"seedLot":{"description":"Seed lot / certification number of a seed multiplication. Only kept while usage is SEED_MULTIPLICATION; null or \"\" clears it.","nullable":true,"type":"string","maxLength":100},"multiplicationGeneration":{"description":"Multiplication generation of a seed multiplication (e.g. Basic, C1, Z1). Only kept while usage is SEED_MULTIPLICATION; null or \"\" clears it.","nullable":true,"type":"string","maxLength":50}},"additionalProperties":false,"description":"Request body for updating a cultivation: only the keys sent are changed. `variety` is the variety's name or its catalogue id (GET /api/{orgId}/crop-varieties?crop=…). A name is matched case-, whitespace- and manufacturer-prefix-insensitively to the varieties of the cultivation's crop (\"arturello\" and \"KWS Arturello\" are the same variety); a variety the catalogue does not have for that crop is never guessed: it is refused with 400. `geometry` is the new outline (a bare GeoJSON Polygon or MultiPolygon, WGS84); the area is recomputed. The crop and the sowing and harvest dates are changed with PUT /api/{orgId}/fields/{id}/{year} (`cultivationId` picks the cultivation).","example":{"variety":"KWS Donovan"}},"GetTechnologiesResponse":{"type":"array","items":{"$ref":"#/components/schemas/TechnologyResponseOutput"},"description":"List of all available technologies"},"TemplateWithTransactionsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"ownerId":{"type":"string"},"name":{"type":"string"},"crop":{"type":"string"},"technology":{"type":"string"},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/TemplateTransactionResponseOutput"}}},"required":["id","ownerId","name","crop","technology","transactions"],"additionalProperties":false,"description":"A template with its transactions"},"GetTemplatesResponse":{"type":"array","items":{"$ref":"#/components/schemas/TemplateResponseOutput"},"description":"List of templates"},"CreateTemplateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Name of the template, as the farm will see it"},"crop":{"type":"string","description":"A crop id from GET /api/crops, e.g. `winterWheat` — not a crop's name"},"technology":{"type":"string","description":"A technology `fqn` from GET /api/technologies — take one whose `cropId` is the crop (a crop without its own: one of a similar crop). It names the tillage system in its third part: `PL_…` ploughing, `NP_…` non-inversion tillage (mulch seeding), `NT_…` direct sowing; grassland ones name the harvest chain instead. A word like \"conventional\" or \"pfluglos\" is refused with the crop's technologies to choose from."}},"required":["name","crop","technology"],"additionalProperties":false,"description":"Request body for creating a template. Exactly these three keys: operation rows (`transactions`) cannot be sent along, the template starts empty. For a template with operations copy one — POST /api/{orgId}/templates/{id}/duplicate.","example":{"name":"Winter wheat, ploughed","crop":"winterWheat","technology":"WINTER_WHEAT_BAKING_QUALITY__CONV__PL_3000__A__HS_2000__120__100__5"}},"DuplicateTemplateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Name of the copy"}},"required":["name"],"additionalProperties":false,"description":"Request body for duplicating a template: `name`, the name of the copy.","example":{"name":"Winter wheat, ploughed — own rates"}},"GetCropRotationsResponse":{"type":"array","items":{"$ref":"#/components/schemas/CropRotationResponseOutput"},"description":"List of crop rotations"},"CreateCropRotationRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"entries":{"type":"array","items":{"type":"object","properties":{"sortOrder":{"type":"integer","minimum":0,"maximum":9007199254740991},"crop":{"type":"string","enum":["silageMaize","winterWheat","canola","sugarBeet","winterBarleyFodder","springBarleyMalting","springOatsFodder","springWheatFodder","winterRyeBaking","fieldGrassWiltedSilage","permanentGrasslandWiltedSilage","potatoTableLate","peasDry","peasDryFodder","triticaleFodder","broadBeans","sunflower","grassSeed","hardWheat","grainMaize","soybeanBeans","cerealRyeIntercrop","mustardIntercrop","oilRadishIntercrop","persianCloverIntercrop","phaceliaIntercrop","ryeWholePlantSilage","lupine","spelt","landscapeFeature","nonProductiveArea","alfalfa","winterOats","springRye","springTriticale","springCanola","springDurum","winterBroadBeans","winterPeas","potatoStarch","seedPotato","potatoTableEarly","cornCobMix","maizeBiogas","sorghum","buckwheat","millet","lentils","chickpeas","linseed","hemp","poppy","fodderBeet","vetch","quinoa","emmer","einkorn","clover","cloverGrass","alfalfaGrass","intercropMixture","blackOatIntercrop","vetchIntercrop","crimsonCloverIntercrop","alexandrineCloverIntercrop","buckwheatIntercrop","sunflowerIntercrop","nigerIntercrop","sorghumIntercrop","linseedIntercrop","camelinaIntercrop","serradellaIntercrop","ryegrassUndersow","cloverGrassUndersow","onion","garlic","leek","carrot","whiteCabbage","redCabbage","savoyCabbage","cauliflower","broccoli","kale","kohlrabi","brusselsSprouts","chineseCabbage","lettuce","lambsLettuce","spinach","beetroot","celeriac","fennel","endive","bushBeans","sweetCorn","pumpkin","cucumber","tomato","bellPepper","asparagus","strawberry","hops","grapevine","rhubarb","pomeFruit","stoneFruit","rice","cowpeas","dryBeans","grainSorghum","foxtailMillet","pearlMillet","fallow","springCerealMixture","cerealLegumeMixture","legumeMixture","amaranth","otherCereals","otherLegumes","otherOilseeds","crambe","camelina","swede","fenugreek","birdsfootTrefoil","sainfoin","serradella","sweetClover","meadowOrchard","jerusalemArtichoke","sweetPotato","otherVegetables","brassicaVegetables","turnip","brownMustard","watercress","rucola","gardenCress","radish","grainMustard","eggplant","belladonna","melon","watermelon","alliumVegetables","orache","sorrel","parsnip","horseradish","scorzonera","artichoke","otherHerbs","dill","chervil","anise","caraway","cumin","blackCumin","coriander","lovage","parsley","basil","rosemary","sage","borage","oregano","savory","hyssop","verbena","lavender","thyme","lemonBalm","gentian","mint","artemisia","calendula","echinacea","ribwortPlantain","chamomile","yarrow","valerian","stJohnsWort","ladysMantle","milkThistle","goatsRue","dandelion","angelica","mallow","arnica","turfGrass","woad","canaryGrass","tobacco","safflower","nettle","madder","ornamentalPlants","phaceliaMainCrop","otherEnergyCrops","silphium","virginiaMallow","knotweed","switchgrass","miscanthus","szarvasiGrass","reedCanaryGrass","otherFruit","bushBerries","seaBuckthorn","hazelnut","walnut","otherNuts","treeNursery","shortRotationCoppice","poplarCoppice","willowCoppice","otherPermanentCrops","christmasTrees","mushrooms","greenManure","otherArableCrops","unknownCrop"]},"templateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"yieldExpectationInTpHa":{"type":"number"},"cropResidueLeft":{"type":"boolean"},"secondaryCrop":{"type":"string","enum":["silageMaize","winterWheat","canola","sugarBeet","winterBarleyFodder","springBarleyMalting","springOatsFodder","springWheatFodder","winterRyeBaking","fieldGrassWiltedSilage","permanentGrasslandWiltedSilage","potatoTableLate","peasDry","peasDryFodder","triticaleFodder","broadBeans","sunflower","grassSeed","hardWheat","grainMaize","soybeanBeans","cerealRyeIntercrop","mustardIntercrop","oilRadishIntercrop","persianCloverIntercrop","phaceliaIntercrop","ryeWholePlantSilage","lupine","spelt","landscapeFeature","nonProductiveArea","alfalfa","winterOats","springRye","springTriticale","springCanola","springDurum","winterBroadBeans","winterPeas","potatoStarch","seedPotato","potatoTableEarly","cornCobMix","maizeBiogas","sorghum","buckwheat","millet","lentils","chickpeas","linseed","hemp","poppy","fodderBeet","vetch","quinoa","emmer","einkorn","clover","cloverGrass","alfalfaGrass","intercropMixture","blackOatIntercrop","vetchIntercrop","crimsonCloverIntercrop","alexandrineCloverIntercrop","buckwheatIntercrop","sunflowerIntercrop","nigerIntercrop","sorghumIntercrop","linseedIntercrop","camelinaIntercrop","serradellaIntercrop","ryegrassUndersow","cloverGrassUndersow","onion","garlic","leek","carrot","whiteCabbage","redCabbage","savoyCabbage","cauliflower","broccoli","kale","kohlrabi","brusselsSprouts","chineseCabbage","lettuce","lambsLettuce","spinach","beetroot","celeriac","fennel","endive","bushBeans","sweetCorn","pumpkin","cucumber","tomato","bellPepper","asparagus","strawberry","hops","grapevine","rhubarb","pomeFruit","stoneFruit","rice","cowpeas","dryBeans","grainSorghum","foxtailMillet","pearlMillet","fallow","springCerealMixture","cerealLegumeMixture","legumeMixture","amaranth","otherCereals","otherLegumes","otherOilseeds","crambe","camelina","swede","fenugreek","birdsfootTrefoil","sainfoin","serradella","sweetClover","meadowOrchard","jerusalemArtichoke","sweetPotato","otherVegetables","brassicaVegetables","turnip","brownMustard","watercress","rucola","gardenCress","radish","grainMustard","eggplant","belladonna","melon","watermelon","alliumVegetables","orache","sorrel","parsnip","horseradish","scorzonera","artichoke","otherHerbs","dill","chervil","anise","caraway","cumin","blackCumin","coriander","lovage","parsley","basil","rosemary","sage","borage","oregano","savory","hyssop","verbena","lavender","thyme","lemonBalm","gentian","mint","artemisia","calendula","echinacea","ribwortPlantain","chamomile","yarrow","valerian","stJohnsWort","ladysMantle","milkThistle","goatsRue","dandelion","angelica","mallow","arnica","turfGrass","woad","canaryGrass","tobacco","safflower","nettle","madder","ornamentalPlants","phaceliaMainCrop","otherEnergyCrops","silphium","virginiaMallow","knotweed","switchgrass","miscanthus","szarvasiGrass","reedCanaryGrass","otherFruit","bushBerries","seaBuckthorn","hazelnut","walnut","otherNuts","treeNursery","shortRotationCoppice","poplarCoppice","willowCoppice","otherPermanentCrops","christmasTrees","mushrooms","greenManure","otherArableCrops","unknownCrop"]},"secondaryCropTemplateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"secondaryCropHarvested":{"type":"boolean"}},"required":["sortOrder","crop"],"additionalProperties":false}}},"required":["name"],"additionalProperties":false,"description":"Request body for creating a crop rotation"},"UpdateCropRotationRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1}},"additionalProperties":false,"description":"Request body for updating a crop rotation"},"CreateCropRotationEntryRequest":{"type":"object","properties":{"sortOrder":{"type":"integer","minimum":0,"maximum":9007199254740991},"crop":{"type":"string","enum":["silageMaize","winterWheat","canola","sugarBeet","winterBarleyFodder","springBarleyMalting","springOatsFodder","springWheatFodder","winterRyeBaking","fieldGrassWiltedSilage","permanentGrasslandWiltedSilage","potatoTableLate","peasDry","peasDryFodder","triticaleFodder","broadBeans","sunflower","grassSeed","hardWheat","grainMaize","soybeanBeans","cerealRyeIntercrop","mustardIntercrop","oilRadishIntercrop","persianCloverIntercrop","phaceliaIntercrop","ryeWholePlantSilage","lupine","spelt","landscapeFeature","nonProductiveArea","alfalfa","winterOats","springRye","springTriticale","springCanola","springDurum","winterBroadBeans","winterPeas","potatoStarch","seedPotato","potatoTableEarly","cornCobMix","maizeBiogas","sorghum","buckwheat","millet","lentils","chickpeas","linseed","hemp","poppy","fodderBeet","vetch","quinoa","emmer","einkorn","clover","cloverGrass","alfalfaGrass","intercropMixture","blackOatIntercrop","vetchIntercrop","crimsonCloverIntercrop","alexandrineCloverIntercrop","buckwheatIntercrop","sunflowerIntercrop","nigerIntercrop","sorghumIntercrop","linseedIntercrop","camelinaIntercrop","serradellaIntercrop","ryegrassUndersow","cloverGrassUndersow","onion","garlic","leek","carrot","whiteCabbage","redCabbage","savoyCabbage","cauliflower","broccoli","kale","kohlrabi","brusselsSprouts","chineseCabbage","lettuce","lambsLettuce","spinach","beetroot","celeriac","fennel","endive","bushBeans","sweetCorn","pumpkin","cucumber","tomato","bellPepper","asparagus","strawberry","hops","grapevine","rhubarb","pomeFruit","stoneFruit","rice","cowpeas","dryBeans","grainSorghum","foxtailMillet","pearlMillet","fallow","springCerealMixture","cerealLegumeMixture","legumeMixture","amaranth","otherCereals","otherLegumes","otherOilseeds","crambe","camelina","swede","fenugreek","birdsfootTrefoil","sainfoin","serradella","sweetClover","meadowOrchard","jerusalemArtichoke","sweetPotato","otherVegetables","brassicaVegetables","turnip","brownMustard","watercress","rucola","gardenCress","radish","grainMustard","eggplant","belladonna","melon","watermelon","alliumVegetables","orache","sorrel","parsnip","horseradish","scorzonera","artichoke","otherHerbs","dill","chervil","anise","caraway","cumin","blackCumin","coriander","lovage","parsley","basil","rosemary","sage","borage","oregano","savory","hyssop","verbena","lavender","thyme","lemonBalm","gentian","mint","artemisia","calendula","echinacea","ribwortPlantain","chamomile","yarrow","valerian","stJohnsWort","ladysMantle","milkThistle","goatsRue","dandelion","angelica","mallow","arnica","turfGrass","woad","canaryGrass","tobacco","safflower","nettle","madder","ornamentalPlants","phaceliaMainCrop","otherEnergyCrops","silphium","virginiaMallow","knotweed","switchgrass","miscanthus","szarvasiGrass","reedCanaryGrass","otherFruit","bushBerries","seaBuckthorn","hazelnut","walnut","otherNuts","treeNursery","shortRotationCoppice","poplarCoppice","willowCoppice","otherPermanentCrops","christmasTrees","mushrooms","greenManure","otherArableCrops","unknownCrop"]},"templateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"yieldExpectationInTpHa":{"type":"number"},"cropResidueLeft":{"type":"boolean"},"secondaryCrop":{"type":"string","enum":["silageMaize","winterWheat","canola","sugarBeet","winterBarleyFodder","springBarleyMalting","springOatsFodder","springWheatFodder","winterRyeBaking","fieldGrassWiltedSilage","permanentGrasslandWiltedSilage","potatoTableLate","peasDry","peasDryFodder","triticaleFodder","broadBeans","sunflower","grassSeed","hardWheat","grainMaize","soybeanBeans","cerealRyeIntercrop","mustardIntercrop","oilRadishIntercrop","persianCloverIntercrop","phaceliaIntercrop","ryeWholePlantSilage","lupine","spelt","landscapeFeature","nonProductiveArea","alfalfa","winterOats","springRye","springTriticale","springCanola","springDurum","winterBroadBeans","winterPeas","potatoStarch","seedPotato","potatoTableEarly","cornCobMix","maizeBiogas","sorghum","buckwheat","millet","lentils","chickpeas","linseed","hemp","poppy","fodderBeet","vetch","quinoa","emmer","einkorn","clover","cloverGrass","alfalfaGrass","intercropMixture","blackOatIntercrop","vetchIntercrop","crimsonCloverIntercrop","alexandrineCloverIntercrop","buckwheatIntercrop","sunflowerIntercrop","nigerIntercrop","sorghumIntercrop","linseedIntercrop","camelinaIntercrop","serradellaIntercrop","ryegrassUndersow","cloverGrassUndersow","onion","garlic","leek","carrot","whiteCabbage","redCabbage","savoyCabbage","cauliflower","broccoli","kale","kohlrabi","brusselsSprouts","chineseCabbage","lettuce","lambsLettuce","spinach","beetroot","celeriac","fennel","endive","bushBeans","sweetCorn","pumpkin","cucumber","tomato","bellPepper","asparagus","strawberry","hops","grapevine","rhubarb","pomeFruit","stoneFruit","rice","cowpeas","dryBeans","grainSorghum","foxtailMillet","pearlMillet","fallow","springCerealMixture","cerealLegumeMixture","legumeMixture","amaranth","otherCereals","otherLegumes","otherOilseeds","crambe","camelina","swede","fenugreek","birdsfootTrefoil","sainfoin","serradella","sweetClover","meadowOrchard","jerusalemArtichoke","sweetPotato","otherVegetables","brassicaVegetables","turnip","brownMustard","watercress","rucola","gardenCress","radish","grainMustard","eggplant","belladonna","melon","watermelon","alliumVegetables","orache","sorrel","parsnip","horseradish","scorzonera","artichoke","otherHerbs","dill","chervil","anise","caraway","cumin","blackCumin","coriander","lovage","parsley","basil","rosemary","sage","borage","oregano","savory","hyssop","verbena","lavender","thyme","lemonBalm","gentian","mint","artemisia","calendula","echinacea","ribwortPlantain","chamomile","yarrow","valerian","stJohnsWort","ladysMantle","milkThistle","goatsRue","dandelion","angelica","mallow","arnica","turfGrass","woad","canaryGrass","tobacco","safflower","nettle","madder","ornamentalPlants","phaceliaMainCrop","otherEnergyCrops","silphium","virginiaMallow","knotweed","switchgrass","miscanthus","szarvasiGrass","reedCanaryGrass","otherFruit","bushBerries","seaBuckthorn","hazelnut","walnut","otherNuts","treeNursery","shortRotationCoppice","poplarCoppice","willowCoppice","otherPermanentCrops","christmasTrees","mushrooms","greenManure","otherArableCrops","unknownCrop"]},"secondaryCropTemplateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"secondaryCropHarvested":{"type":"boolean"}},"required":["sortOrder","crop"],"additionalProperties":false,"description":"Request body for creating a crop rotation entry"},"UpdateCropRotationEntryRequest":{"type":"object","properties":{"sortOrder":{"type":"integer","minimum":0,"maximum":9007199254740991},"crop":{"type":"string","enum":["silageMaize","winterWheat","canola","sugarBeet","winterBarleyFodder","springBarleyMalting","springOatsFodder","springWheatFodder","winterRyeBaking","fieldGrassWiltedSilage","permanentGrasslandWiltedSilage","potatoTableLate","peasDry","peasDryFodder","triticaleFodder","broadBeans","sunflower","grassSeed","hardWheat","grainMaize","soybeanBeans","cerealRyeIntercrop","mustardIntercrop","oilRadishIntercrop","persianCloverIntercrop","phaceliaIntercrop","ryeWholePlantSilage","lupine","spelt","landscapeFeature","nonProductiveArea","alfalfa","winterOats","springRye","springTriticale","springCanola","springDurum","winterBroadBeans","winterPeas","potatoStarch","seedPotato","potatoTableEarly","cornCobMix","maizeBiogas","sorghum","buckwheat","millet","lentils","chickpeas","linseed","hemp","poppy","fodderBeet","vetch","quinoa","emmer","einkorn","clover","cloverGrass","alfalfaGrass","intercropMixture","blackOatIntercrop","vetchIntercrop","crimsonCloverIntercrop","alexandrineCloverIntercrop","buckwheatIntercrop","sunflowerIntercrop","nigerIntercrop","sorghumIntercrop","linseedIntercrop","camelinaIntercrop","serradellaIntercrop","ryegrassUndersow","cloverGrassUndersow","onion","garlic","leek","carrot","whiteCabbage","redCabbage","savoyCabbage","cauliflower","broccoli","kale","kohlrabi","brusselsSprouts","chineseCabbage","lettuce","lambsLettuce","spinach","beetroot","celeriac","fennel","endive","bushBeans","sweetCorn","pumpkin","cucumber","tomato","bellPepper","asparagus","strawberry","hops","grapevine","rhubarb","pomeFruit","stoneFruit","rice","cowpeas","dryBeans","grainSorghum","foxtailMillet","pearlMillet","fallow","springCerealMixture","cerealLegumeMixture","legumeMixture","amaranth","otherCereals","otherLegumes","otherOilseeds","crambe","camelina","swede","fenugreek","birdsfootTrefoil","sainfoin","serradella","sweetClover","meadowOrchard","jerusalemArtichoke","sweetPotato","otherVegetables","brassicaVegetables","turnip","brownMustard","watercress","rucola","gardenCress","radish","grainMustard","eggplant","belladonna","melon","watermelon","alliumVegetables","orache","sorrel","parsnip","horseradish","scorzonera","artichoke","otherHerbs","dill","chervil","anise","caraway","cumin","blackCumin","coriander","lovage","parsley","basil","rosemary","sage","borage","oregano","savory","hyssop","verbena","lavender","thyme","lemonBalm","gentian","mint","artemisia","calendula","echinacea","ribwortPlantain","chamomile","yarrow","valerian","stJohnsWort","ladysMantle","milkThistle","goatsRue","dandelion","angelica","mallow","arnica","turfGrass","woad","canaryGrass","tobacco","safflower","nettle","madder","ornamentalPlants","phaceliaMainCrop","otherEnergyCrops","silphium","virginiaMallow","knotweed","switchgrass","miscanthus","szarvasiGrass","reedCanaryGrass","otherFruit","bushBerries","seaBuckthorn","hazelnut","walnut","otherNuts","treeNursery","shortRotationCoppice","poplarCoppice","willowCoppice","otherPermanentCrops","christmasTrees","mushrooms","greenManure","otherArableCrops","unknownCrop"]},"templateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"yieldExpectationInTpHa":{"type":"number"},"cropResidueLeft":{"type":"boolean"},"secondaryCrop":{"type":"string","enum":["silageMaize","winterWheat","canola","sugarBeet","winterBarleyFodder","springBarleyMalting","springOatsFodder","springWheatFodder","winterRyeBaking","fieldGrassWiltedSilage","permanentGrasslandWiltedSilage","potatoTableLate","peasDry","peasDryFodder","triticaleFodder","broadBeans","sunflower","grassSeed","hardWheat","grainMaize","soybeanBeans","cerealRyeIntercrop","mustardIntercrop","oilRadishIntercrop","persianCloverIntercrop","phaceliaIntercrop","ryeWholePlantSilage","lupine","spelt","landscapeFeature","nonProductiveArea","alfalfa","winterOats","springRye","springTriticale","springCanola","springDurum","winterBroadBeans","winterPeas","potatoStarch","seedPotato","potatoTableEarly","cornCobMix","maizeBiogas","sorghum","buckwheat","millet","lentils","chickpeas","linseed","hemp","poppy","fodderBeet","vetch","quinoa","emmer","einkorn","clover","cloverGrass","alfalfaGrass","intercropMixture","blackOatIntercrop","vetchIntercrop","crimsonCloverIntercrop","alexandrineCloverIntercrop","buckwheatIntercrop","sunflowerIntercrop","nigerIntercrop","sorghumIntercrop","linseedIntercrop","camelinaIntercrop","serradellaIntercrop","ryegrassUndersow","cloverGrassUndersow","onion","garlic","leek","carrot","whiteCabbage","redCabbage","savoyCabbage","cauliflower","broccoli","kale","kohlrabi","brusselsSprouts","chineseCabbage","lettuce","lambsLettuce","spinach","beetroot","celeriac","fennel","endive","bushBeans","sweetCorn","pumpkin","cucumber","tomato","bellPepper","asparagus","strawberry","hops","grapevine","rhubarb","pomeFruit","stoneFruit","rice","cowpeas","dryBeans","grainSorghum","foxtailMillet","pearlMillet","fallow","springCerealMixture","cerealLegumeMixture","legumeMixture","amaranth","otherCereals","otherLegumes","otherOilseeds","crambe","camelina","swede","fenugreek","birdsfootTrefoil","sainfoin","serradella","sweetClover","meadowOrchard","jerusalemArtichoke","sweetPotato","otherVegetables","brassicaVegetables","turnip","brownMustard","watercress","rucola","gardenCress","radish","grainMustard","eggplant","belladonna","melon","watermelon","alliumVegetables","orache","sorrel","parsnip","horseradish","scorzonera","artichoke","otherHerbs","dill","chervil","anise","caraway","cumin","blackCumin","coriander","lovage","parsley","basil","rosemary","sage","borage","oregano","savory","hyssop","verbena","lavender","thyme","lemonBalm","gentian","mint","artemisia","calendula","echinacea","ribwortPlantain","chamomile","yarrow","valerian","stJohnsWort","ladysMantle","milkThistle","goatsRue","dandelion","angelica","mallow","arnica","turfGrass","woad","canaryGrass","tobacco","safflower","nettle","madder","ornamentalPlants","phaceliaMainCrop","otherEnergyCrops","silphium","virginiaMallow","knotweed","switchgrass","miscanthus","szarvasiGrass","reedCanaryGrass","otherFruit","bushBerries","seaBuckthorn","hazelnut","walnut","otherNuts","treeNursery","shortRotationCoppice","poplarCoppice","willowCoppice","otherPermanentCrops","christmasTrees","mushrooms","greenManure","otherArableCrops","unknownCrop"]},"secondaryCropTemplateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"secondaryCropHarvested":{"type":"boolean"}},"additionalProperties":false,"description":"Request body for updating a crop rotation entry"},"GetArticlesResponse":{"type":"array","items":{"$ref":"#/components/schemas/ArticleResponseOutput"},"description":"List of articles"},"CreateArticleRequest":{"type":"object","properties":{"name":{"type":"string"},"actionOrProduct":{"$ref":"#/components/schemas/ArticleActionOrProductEnum"},"operationCategory":{"type":"string","enum":["TILLAGE","PLANTING","FERTILIZING","PROTECTION","MONITORING","MAINTENANCE","HARVESTING","POSTHARVEST","IRRIGATION","MISCELLANEOUS","OTHERS"]},"actionCategory":{"type":"string"},"machineId":{"type":"string"},"appliesTo":{"$ref":"#/components/schemas/AppliesToEnum"},"customFqnKind":{"default":"GENERIC","type":"string","enum":["MINERAL","ORGANIC","GENERIC"]},"vendorId":{"type":"string"},"vendorProductId":{"type":"string"},"otherProperties":{"type":"object","additionalProperties":{}},"price":{"type":"number"},"priceUnit":{"type":"string"},"dryMatterContent":{"type":"number"},"humus":{"type":"number"},"convTtoCbm":{"type":"number"},"nEffectiveness":{"type":"number"},"n":{"type":"number"},"nh4":{"type":"number"},"p2o5":{"type":"number"},"k":{"type":"number"},"k2o":{"type":"number"},"mgo":{"type":"number"},"limeEffectPer100Kg":{"type":"number"},"kgNper100L":{"type":"number"},"category":{"type":"string"},"isHarvestProduct":{"type":"boolean"},"metadata":{"allOf":[{"$ref":"#/components/schemas/CreateArticleMetadataRequestOutput"}]}},"required":["actionOrProduct","operationCategory","actionCategory","appliesTo","customFqnKind"],"additionalProperties":false,"description":"Request body for creating an org-owned article. FQN is always generated server-side. Optional vendorId + vendorProductId enable idempotent sync (e.g. Barto)."},"UpdateArticleRequest":{"type":"object","properties":{"name":{"type":"string"},"actionOrProduct":{"allOf":[{"$ref":"#/components/schemas/ArticleActionOrProductEnum"}]},"operationCategory":{"type":"string"},"actionCategory":{"type":"string"},"machineId":{"type":"string"},"appliesTo":{"allOf":[{"$ref":"#/components/schemas/AppliesToEnum"}]},"price":{"type":"number"},"priceUnit":{"type":"string"},"dryMatterContent":{"type":"number"},"humus":{"type":"number"},"convTtoCbm":{"type":"number"},"nEffectiveness":{"type":"number"},"n":{"type":"number"},"nh4":{"type":"number"},"p2o5":{"type":"number"},"k":{"type":"number"},"k2o":{"type":"number"},"mgo":{"type":"number"},"limeEffectPer100Kg":{"type":"number"},"kgNper100L":{"type":"number"},"category":{"type":"string"},"isHarvestProduct":{"type":"boolean"}},"additionalProperties":false,"description":"Request body for updating an article"},"GetArticleMetadataResponse":{"type":"array","items":{"$ref":"#/components/schemas/ArticleMetadataResponseOutput"},"description":"List of article metadata"},"UpdateArticleMetadataRequest":{"type":"object","properties":{"manufacturer":{"type":"string"},"website":{"type":"string"},"fileKey":{"type":"string"},"metadata":{}},"additionalProperties":false,"description":"Request body for updating article metadata"},"GetWarehouseStockResponse":{"type":"array","items":{"$ref":"#/components/schemas/WarehouseStockEntryResponseOutput"},"description":"List of warehouse stock entries, newest bookedAt first"},"GetOrgArticlePricesResponse":{"type":"array","items":{"$ref":"#/components/schemas/OrgArticlePriceResponseOutput"},"description":"List of the organization's article price overrides"},"PutOrgArticlePriceRequest":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price":{"type":"number","minimum":0},"priceUnit":{"type":"string","minLength":1}},"required":["year","price","priceUnit"],"additionalProperties":false,"description":"Request body for upserting an org price override. priceUnit must be one of the units returned by GET /api/units/price; the legacy app spellings EUR/t, EUR/kg, EUR/l and EUR/Stk are accepted for euro_t, euro_kg, euro_l and euro_U."},"GetQuantityUnitsResponse":{"type":"array","items":{"$ref":"#/components/schemas/QuantityUnitResponseOutput"},"description":"List of all available quantity units"},"GetPriceUnitsResponse":{"type":"array","items":{"$ref":"#/components/schemas/PriceUnitResponseOutput"},"description":"List of all available price units"},"GetUnitConversionsResponse":{"type":"array","items":{"$ref":"#/components/schemas/UnitConversionResponseOutput"},"description":"List of all unit conversions"},"GetFilesResponse":{"type":"array","items":{"$ref":"#/components/schemas/FileResponseOutput"},"description":"List of files"},"UpdateFileRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":{"type":"string"}},"additionalProperties":false,"description":"Request body for updating file metadata"},"UploadFileMetadata":{"type":"object","properties":{"name":{"type":"string","minLength":1},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":{"type":"string"}},"additionalProperties":false,"description":"Metadata for file upload (sent as form fields alongside the file)"},"StorageUsageResponse":{"type":"object","properties":{"usedBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limitBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"usedPercentage":{"type":"number"},"remainingBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["usedBytes","limitBytes","usedPercentage","remainingBytes"],"additionalProperties":false,"description":"Storage usage information for an organization"},"PresignedUrlResponse":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"expiresInSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["url","expiresInSeconds"],"additionalProperties":false,"description":"A presigned URL for file download"},"SystemFolderKeyEnum":{"type":"string","enum":["applicationMaps","exports","imports","reports"],"description":"App-managed folders; created on first use"},"GetFileFoldersResponse":{"type":"object","properties":{"folders":{"type":"array","items":{"$ref":"#/components/schemas/FileFolderResponseOutput"}}},"required":["folders"],"additionalProperties":false,"description":"The org's folder tree as a flat list (build the tree via parentId), sorted by name"},"FarmImportRequest":{"type":"object","properties":{"contractVersion":{"type":"string","enum":["1"]},"fieldGroups":{"default":[],"type":"array","items":{"type":"object","properties":{"mode":{"default":"upsert","type":"string","enum":["upsert","createOnly","updateOnly"]},"externalRef":{"type":"string","minLength":1,"maxLength":200},"matchHint":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"matchedBy":{"type":"string","maxLength":100}},"required":["id"],"additionalProperties":false},"sourceRef":{"type":"string","maxLength":500},"tempId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._:\\-]+$"},"name":{"type":"string","minLength":1,"maxLength":255},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["tempId","name"],"additionalProperties":false}},"fields":{"default":[],"type":"array","items":{"type":"object","properties":{"mode":{"default":"upsert","type":"string","enum":["upsert","createOnly","updateOnly"]},"externalRef":{"type":"string","minLength":1,"maxLength":200},"matchHint":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"matchedBy":{"type":"string","maxLength":100}},"required":["id"],"additionalProperties":false},"sourceRef":{"type":"string","maxLength":500},"tempId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._:\\-]+$"},"name":{"type":"string","minLength":1},"fieldGroupRefs":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._:\\-]+$"}},"fieldGroupIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"}},"parcelId":{"type":"string"},"flik":{"type":"string"},"areaInHa":{"type":"number","minimum":0,"exclusiveMinimum":true},"geometry":{"type":"object","properties":{"type":{"type":"string","enum":["Polygon","MultiPolygon"]},"coordinates":{}},"required":["type","coordinates"],"additionalProperties":false},"geometryVersions":{"type":"array","items":{"type":"object","properties":{"validFromYear":{"nullable":true,"type":"integer","minimum":1900,"maximum":2100},"validUntilYear":{"type":"integer","minimum":1900,"maximum":2100},"geometry":{"type":"object","properties":{"type":{"type":"string","enum":["Polygon","MultiPolygon"]},"coordinates":{}},"required":["type","coordinates"],"additionalProperties":false},"reason":{"type":"string","maxLength":100}},"required":["validFromYear","validUntilYear","geometry"],"additionalProperties":false}},"soilTypeLUFA":{"type":"string","enum":["S","lS","sU","ssL","lU","sL","uL","L","utL","tL","T"]},"nitrateSensitiveZone":{"type":"boolean"},"origin":{"type":"string"}},"required":["tempId","name"],"additionalProperties":false}},"cultivations":{"default":[],"type":"array","items":{"type":"object","properties":{"mode":{"default":"upsert","type":"string","enum":["upsert","createOnly","updateOnly"]},"externalRef":{"type":"string","minLength":1,"maxLength":200},"matchHint":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"matchedBy":{"type":"string","maxLength":100}},"required":["id"],"additionalProperties":false},"sourceRef":{"type":"string","maxLength":500},"tempId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._:\\-]+$"},"fieldRef":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._:\\-]+$"},"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"year":{"type":"integer","minimum":1900,"maximum":2100},"crop":{"type":"string","minLength":1},"eppoCode":{"description":"EPPO code of the plant grown on this cultivation, as the source states it (TRZAW, ZEAMX, POPSS). It names the species when the crop is a general one: NC 841 with POPSS imports as poplarCoppice. A code of another crop plans with a warning. Omit it rather than putting it into sourceRef.","type":"string","pattern":"^[A-Z0-9]{5,6}$"},"variety":{"type":"string"},"templateFqn":{"type":"string"},"secondaryCropType":{"type":"string","enum":["INTERCROP","UNDERSOW"]},"geometry":{"type":"object","properties":{"type":{"type":"string","enum":["Polygon","MultiPolygon"]},"coordinates":{}},"required":["type","coordinates"],"additionalProperties":false},"areaInHa":{"type":"number","minimum":0,"exclusiveMinimum":true},"name":{"type":"string","minLength":1,"maxLength":255},"number":{"type":"string","minLength":1,"maxLength":100},"sowingDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}]},"harvestDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}]},"onCropConflict":{"description":"What to do when the field already has exactly one cultivation in this year with a different crop. Omitted: the record plans as a conflict. attach: operations import onto the existing cultivation and its crop stays. replace: the existing cultivation moves to this crop and variety and keeps its operations; planned work that came from the old crop's template is removed.","type":"string","enum":["attach","replace"]}},"required":["tempId","year","crop"],"additionalProperties":false}},"operations":{"default":[],"type":"array","items":{"type":"object","properties":{"mode":{"default":"upsert","type":"string","enum":["upsert","createOnly","updateOnly"]},"externalRef":{"type":"string","minLength":1,"maxLength":200},"matchHint":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"matchedBy":{"type":"string","maxLength":100}},"required":["id"],"additionalProperties":false},"sourceRef":{"type":"string","maxLength":500},"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"cultivationRef":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._:\\-]+$"},"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"fieldRef":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._:\\-]+$"},"year":{"type":"integer","minimum":1900,"maximum":2100},"operationRef":{"description":"Groups staged rows into one operation (shared operationId): an action plus its product rows, e.g. sowing + seed or irrigation + water. Rows sharing an operationRef must resolve to the same cultivation, calendar day and status, with at most one action row; otherwise the whole group plans as invalid.","type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._:\\-]+$"},"kind":{"type":"string","enum":["TILLAGE","PLANTING","FERTILIZING","PROTECTION","MONITORING","MAINTENANCE","HARVESTING","POSTHARVEST","IRRIGATION","MISCELLANEOUS","OTHERS"]},"actionOrProduct":{"type":"string","enum":["action","product"]},"date":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}]},"articleFqn":{"type":"string","minLength":1},"quantity":{"type":"number"},"unit":{"type":"string","minLength":1},"frequency":{"type":"number","minimum":0,"exclusiveMinimum":true},"diesel":{"type":"number","minimum":0},"details":{"type":"object","additionalProperties":{}},"status":{"default":"DOCUMENTATION","type":"string","enum":["PLANNING","IN_EXECUTION","DOCUMENTATION"]},"price":{"type":"number"},"priceUnit":{"type":"string"},"machineSerial":{"description":"Serial number (VIN) of the machine that did the work, e.g. the ISOXML device serial. The same work from another source (John Deere, CLAAS) attaches to that operation when the machine matches.","type":"string","minLength":1,"maxLength":100},"distinctFromOperationIds":{"description":"Existing operations (operationId) this work is known not to be: no conflict, create.","type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"}},"valuesFrom":{"description":"With matchHint {id: operationId} on the same work from another source whose amounts differ: whose values the operation documents. Both stay as sources of the operation.","type":"string","enum":["existing","incoming"]}},"required":["kind","actionOrProduct","date","articleFqn","quantity","unit"],"additionalProperties":false}},"statusTransitions":{"default":[],"type":"array","items":{"type":"object","properties":{"sourceRef":{"type":"string","maxLength":500},"match":{"type":"object","properties":{"transactionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"fieldRef":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._:\\-]+$"},"year":{"type":"integer","minimum":1900,"maximum":2100},"operationCategory":{"type":"string","enum":["TILLAGE","PLANTING","FERTILIZING","PROTECTION","MONITORING","MAINTENANCE","HARVESTING","POSTHARVEST","IRRIGATION","MISCELLANEOUS","OTHERS"]},"articleFqn":{"type":"string"},"dateWindow":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}]},{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}]}]},"minItems":2,"maxItems":2}},"additionalProperties":false},"set":{"type":"object","properties":{"status":{"default":"DOCUMENTATION","type":"string","enum":["IN_EXECUTION","DOCUMENTATION"]},"date":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}]},"quantity":{"type":"number"},"unit":{"type":"string","minLength":1}},"additionalProperties":false}},"required":["match","set"],"additionalProperties":false}},"soilValues":{"default":[],"type":"array","items":{"type":"object","properties":{"mode":{"default":"upsert","type":"string","enum":["upsert","createOnly","updateOnly"]},"externalRef":{"type":"string","minLength":1,"maxLength":200},"matchHint":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"matchedBy":{"type":"string","maxLength":100}},"required":["id"],"additionalProperties":false},"sourceRef":{"type":"string","maxLength":500},"fieldRef":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._:\\-]+$"},"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"parameter":{"type":"string","enum":["soc","humus","clay","silt","sand","ph","p2o5","k2o","mgo","bd","nmin","no3","nh4","cec","nt","s","b","cu","zn","mn","fe","cd","na","ca","mo","smin","nsol","caco3","ct","siltf","siltm","siltc","sandf","sandmc","pb","cr","ni","hg","as","cut","znt"]},"value":{"type":"number"},"layerFrom":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"layerTo":{"default":30,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"method":{"type":"string"},"source":{"default":"lab-probe","type":"string","enum":["user","lab-probe"]}},"required":["parameter","value","date"],"additionalProperties":false}}},"required":["values"],"additionalProperties":false}},"soilZones":{"default":[],"type":"array","items":{"type":"object","properties":{"mode":{"default":"upsert","type":"string","enum":["upsert","createOnly","updateOnly"]},"externalRef":{"type":"string","minLength":1,"maxLength":200},"matchHint":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"matchedBy":{"type":"string","maxLength":100}},"required":["id"],"additionalProperties":false},"sourceRef":{"type":"string","maxLength":500},"tempId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._:\\-]+$"},"fieldRef":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._:\\-]+$"},"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"name":{"type":"string","minLength":1,"maxLength":200},"geometry":{"type":"object","properties":{"type":{"type":"string","enum":["Polygon","MultiPolygon"]},"coordinates":{}},"required":["type","coordinates"],"additionalProperties":false},"soilTypeText":{"type":"string","minLength":1,"maxLength":200},"nfkMm":{"type":"number","minimum":0},"nfk30Pct":{"type":"number"},"nfk50Pct":{"type":"number"},"nfk70Pct":{"type":"number"}},"required":["tempId","name"],"additionalProperties":false}}},"required":["contractVersion"],"additionalProperties":false,"description":"FarmImportRequest — one chunk of the org-scoped incremental import contract. Every record carries match-or-create semantics (externalRef → matchHints → name-based passes); `plan` reports the per-record diff before `commit` writes anything. Fields with server-side defaults appear required here — the input-typed JSON Schema at GET /api/{orgId}/import/schema is authoritative for what a client must send."},"ImportSchemaResponse":{"type":"object","properties":{"version":{"type":"string","enum":["1"]},"jsonSchema":{"type":"object","additionalProperties":{}}},"required":["version","jsonSchema"],"additionalProperties":false,"description":"The FarmImportRequest contract as JSON Schema (input-typed), generated from the deployed zod definition."},"ImportSnapshotResponse":{"type":"object","properties":{"orgId":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"name":{"type":"string"},"parcelId":{"nullable":true,"type":"string"},"flik":{"nullable":true,"type":"string"},"areaInHa":{"type":"number"},"soilTypeLUFA":{"nullable":true,"type":"string"},"nitrateSensitiveZone":{"type":"boolean"},"externalRefs":{"type":"array","items":{"type":"string"},"description":"Known externalRefs of this entity (re-imports can reuse them)"},"geometry":{"description":"Only with ?geometry=simplified: WGS84 outline simplified to ≈1 m, 6 decimals; null when the stored geometry is unparseable","nullable":true,"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":["id","name","parcelId","flik","areaInHa","soilTypeLUFA","nitrateSensitiveZone","externalRefs"],"additionalProperties":false}},"fieldGroups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"name":{"type":"string"},"color":{"nullable":true,"type":"string"},"fieldIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"}},"externalRefs":{"type":"array","items":{"type":"string"},"description":"Known externalRefs of this entity (re-imports can reuse them)"}},"required":["id","name","color","fieldIds","externalRefs"],"additionalProperties":false}},"cultivations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"fieldId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"crop":{"type":"string"},"varietyId":{"nullable":true,"type":"string"},"areaInHa":{"type":"number"}},"required":["id","fieldId","year","crop","varietyId","areaInHa"],"additionalProperties":false}},"operations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"fieldId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"operationCategory":{"type":"string"},"articleFqn":{"type":"string"},"date":{"type":"string"},"quantity":{"type":"number"},"unit":{"type":"string"},"status":{"type":"string","enum":["PLANNING","IN_EXECUTION","DOCUMENTATION"]}},"required":["id","cultivationId","fieldId","year","operationCategory","articleFqn","date","quantity","unit","status"],"additionalProperties":false}},"articles":{"type":"array","items":{"type":"object","properties":{"fqn":{"type":"string"},"customName":{"nullable":true,"type":"string"},"actionOrProduct":{"type":"string"},"operationCategory":{"type":"string"}},"required":["fqn","customName","actionOrProduct","operationCategory"],"additionalProperties":false}},"nextCursors":{"description":"Per entity: pass as ?entity=<key>&cursor=<value> to fetch the next page","type":"object","additionalProperties":{"type":"string"}}},"required":["orgId"],"additionalProperties":false,"description":"Existing org data in a compact, import-oriented shape (field geometries only with ?geometry=simplified). Only the entities listed in `include` are present; org-owned custom articles only (the system catalog is GET /api/{orgId}/articles)."},"ImportFieldOverlapsRequest":{"type":"object","properties":{"fields":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":200,"description":"Client key echoed in the result, e.g. \"schlaege.shp#12\" or the planned tempId"},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}],"description":"WGS84 outline. Checked per item: a broken one is reported `invalid`, the batch still runs"}},"required":["ref","geometry"],"additionalProperties":false}},"minShare":{"default":0.01,"description":"Drop overlaps where neither stagedShare nor existingShare reaches this (boundary slivers); 0 keeps every overlap with positive area","type":"number","minimum":0,"maximum":1}},"required":["fields"],"additionalProperties":false,"description":"Staged field outlines to compare with the org's existing fields"},"ImportFieldOverlapsResponse":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"classification":{"type":"string","enum":["match","ambiguous","split","larger","partial","none","invalid"],"description":"First rule wins: exactly one `same` overlap → match; several → ambiguous; any stagedWithinExisting → split (part of an existing field); any existingWithinStaged → larger; other overlaps → partial; none → none"},"reason":{"description":"Why the geometry was rejected (invalid only)","type":"string"},"stagedAreaInHa":{"description":"Geodesic area of the repaired staged outline","type":"number"},"overlaps":{"type":"array","items":{"type":"object","properties":{"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"name":{"type":"string"},"areaInHa":{"type":"number"},"stagedShare":{"type":"number","description":"Intersection / staged area (0–1)"},"existingShare":{"type":"number","description":"Intersection / existing field area (0–1)"},"intersectionAreaInHa":{"type":"number"},"relation":{"type":"string","enum":["same","stagedWithinExisting","existingWithinStaged","partial"],"description":"same: both shares ≥ 0.8 · stagedWithinExisting: only stagedShare ≥ 0.8 · existingWithinStaged: only existingShare ≥ 0.8 · partial: neither"}},"required":["fieldId","name","areaInHa","stagedShare","existingShare","intersectionAreaInHa","relation"],"additionalProperties":false},"description":"Best common ground first (sorted by min(stagedShare, existingShare))"}},"required":["ref","classification","overlaps"],"additionalProperties":false,"description":"Existing fields sharing ground with one staged outline"},"description":"One entry per input, in input order"},"summary":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":9007199254740991},"description":"Number of inputs per classification"}},"required":["results","summary"],"additionalProperties":false,"description":"Per staged outline: overlapping existing fields with both area shares"},"CreateImportJobRequest":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"source":{"description":"Free-text client tag, e.g. \"claude-skill\", \"mcp\" (default \"api\")","type":"string","maxLength":100},"contractVersion":{"type":"string","enum":["1"]},"idempotencyKey":{"description":"Unique per org: a retried creation returns the existing job (200, reused=true) instead of a duplicate","type":"string","maxLength":200},"requestId":{"description":"AI-import request (ImportRequest.id) this job fulfils — links journal, files and notes","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"}},"additionalProperties":false,"description":"Request body for creating an import job (starts in `staging`)"},"ImportJobCreatedResponse":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"status":{"$ref":"#/components/schemas/ImportJobStatusEnum"},"reused":{"description":"Present when an existing job was returned for the idempotencyKey","type":"boolean","enum":[true]}},"required":["jobId","status"],"additionalProperties":false,"description":"The created (201) or reused (200) import job"},"GetImportJobsResponse":{"type":"object","properties":{"jobs":{"type":"array","items":{"$ref":"#/components/schemas/ImportJobListItemOutput"}}},"required":["jobs"],"additionalProperties":false,"description":"The 50 most recent import jobs of the org, newest first"},"ImportJobDetailResponse":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"title":{"nullable":true,"type":"string"},"source":{"type":"string"},"status":{"$ref":"#/components/schemas/ImportJobStatusEnum"},"contractVersion":{"type":"string"},"staged":{"$ref":"#/components/schemas/ImportStagedCounts"},"chunkSources":{"type":"array","items":{"$ref":"#/components/schemas/ImportChunkSourceOutput"},"description":"Provenance of every staging call, oldest first (empty for jobs staged before it)"},"summary":{"nullable":true,"description":"Per-action counts after commit, e.g. {\"field:create\": 12, \"operation:update\": 3}; null until committed","type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"error":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"plannedAt":{"nullable":true,"type":"string"},"committedAt":{"nullable":true,"type":"string"},"records":{"type":"array","items":{"$ref":"#/components/schemas/ImportJobRecordOutput"}}},"required":["jobId","title","source","status","contractVersion","staged","chunkSources","summary","error","createdAt","plannedAt","committedAt","records"],"additionalProperties":false,"description":"Job status plus the journal: what was imported / changed / skipped / not understood"},"ImportChunkReference":{"type":"object","properties":{"fileKey":{"description":"An org file: the fileKey from POST …/uploads (job staging area) or of a live org file (e.g. the Imports folder; full or scoped key)","type":"string"},"chunkUrl":{"description":"https URL of a file in this deployment's object storage that the org owns (presigned or not; read via the storage client), or of a host listed in IMPORT_CHUNK_URL_HOSTS (fetched without redirects, private addresses blocked). The query (signature) is never stored","type":"string","format":"uri"}},"additionalProperties":false,"description":"Stage a chunk by reference — exactly one of fileKey / chunkUrl. The file (≤ 25 MB) is a FarmImportRequest JSON or NDJSON (`{\"entity\": \"operations\", …record}` per line, or whole FarmImportRequest lines); it is validated as a whole (422 lists issues with line numbers, nothing is staged), auto-corrected like inline chunks and split into chunks of the usual size. Re-sending the same bytes is a no-op (duplicate=true).","example":{"fileKey":"farmalyzer/useruploads/org_123/import-jobs/<jobId>/0192…-operations.ndjson"}},"ImportChunkAcceptedResponse":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"status":{"description":"`staging`; unchanged when duplicate=true","allOf":[{"$ref":"#/components/schemas/ImportJobStatusEnum"}]},"staged":{"$ref":"#/components/schemas/ImportStagedCounts"},"added":{"description":"Records this call added, per entity","allOf":[{"$ref":"#/components/schemas/ImportStagedCounts"}]},"duplicate":{"type":"boolean","description":"true: the same bytes / records were staged before — nothing changed, a plan stays valid"},"chunks":{"type":"object","properties":{"staged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"duplicates":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Chunks skipped because their records were already staged"}},"required":["staged","duplicates"],"additionalProperties":false},"source":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stagedAs":{"description":"Earlier staging call that had the same bytes","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string","enum":["inline","file","url"]},"fileKey":{"type":"string"},"url":{"type":"string"},"name":{"type":"string"},"sha256":{"type":"string"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"format":{"type":"string","enum":["json","ndjson"]},"records":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["kind","sha256"],"additionalProperties":false,"description":"What was staged (journaled as chunkSources on GET …/jobs/{jobId})"},"autoCorrections":{"description":"Soil method spellings resolved to method ids and boundaries above 500 vertices simplified (first 50, with NDJSON line when staged from a file)","type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["soilMethod","geometry"]},"path":{"type":"string"}},"required":["kind","path"],"additionalProperties":{}}}},"required":["count","items"],"additionalProperties":false},"message":{"type":"string"}},"required":["jobId","status","staged","added","duplicate","chunks","source"],"additionalProperties":false,"description":"Chunk merged into the staged payload; the job is back in `staging` (any earlier plan is void) — unless duplicate=true, when nothing changed"},"CreateImportUploadRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\.(json|ndjson|jsonl)$","description":"File name (kept in the key and the staging journal)"},"sizeBytes":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991,"description":"Size of the file to upload; at most 25 MB (26214400 bytes)"}},"required":["name","sizeBytes"],"additionalProperties":false,"description":"Request a presigned PUT URL for a chunk file of this job"},"ImportUploadResponse":{"type":"object","properties":{"fileKey":{"type":"string","description":"Pass to POST …/chunks as {fileKey} once the PUT succeeded"},"uploadUrl":{"type":"string","format":"uri","description":"Presigned PUT URL — plain HTTP, no bearer (curl -T)"},"method":{"type":"string","enum":["PUT"]},"expiresInSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["fileKey","uploadUrl","method","expiresInSeconds","maxBytes"],"additionalProperties":false,"description":"Where to upload a chunk file; it gets no UserFiles row (not visible in the file browser)"},"ImportPlanResponse":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"status":{"type":"string","enum":["planned"]},"confirmationToken":{"type":"string","description":"Bound to this diff — pass it to commit. Adding chunks or re-planning invalidates it"},"contractVersion":{"type":"string"},"summary":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"description":"Per entity, counts per action, e.g. {\"field\": {\"create\": 10, \"update\": 2}}"},"records":{"type":"array","items":{"$ref":"#/components/schemas/ImportPlanRecordOutput"}}},"required":["jobId","status","confirmationToken","contractVersion","summary","records"],"additionalProperties":false,"description":"Dry-run result: server-side matching against existing org data, nothing written yet"},"CommitImportJobRequest":{"type":"object","properties":{"confirmationToken":{"type":"string","minLength":1}},"required":["confirmationToken"],"additionalProperties":false,"description":"`confirmationToken`: the string of that name in the latest plan response of this job, unchanged (it starts with `cfm_`). Staging more records or planning again issues a new one.","example":{"confirmationToken":"cfm_3f9a1c0b7d2e4f6a8b1c2d3e4f5a6b7c"}},"ImportCommitResponse":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"status":{"type":"string","enum":["committed"]},"summary":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"idMap":{"type":"object","properties":{"fieldGroups":{"type":"object","additionalProperties":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"description":"stagedIndex → created entity id"},"fields":{"type":"object","additionalProperties":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"description":"stagedIndex → created entity id"},"cultivations":{"type":"object","additionalProperties":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"description":"stagedIndex → created entity id"},"operations":{"type":"object","additionalProperties":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"description":"stagedIndex → created entity id"},"soilZones":{"type":"object","additionalProperties":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"description":"stagedIndex → created entity id"}},"required":["fieldGroups","fields","cultivations","operations","soilZones"],"additionalProperties":false}},"required":["jobId","status","summary","idMap"],"additionalProperties":false,"description":"The plan was applied transactionally; async side effects (zonation, crawls) are dispatched"},"ImportValidationError":{"type":"object","properties":{"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"anyOf":[{"type":"string"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}}]},"code":{"type":"string"},"message":{"type":"string"}},"required":["path","code","message"],"additionalProperties":{}}}},"required":["message"],"additionalProperties":false,"description":"422 — body failed zod validation; `issues` carry the entity path so the caller can fix the record","example":{"message":"Chunk failed validation","issues":[{"path":"fields.3.geometry","code":"invalid_type","message":"Required"}]}},"GetImportRequestsResponse":{"type":"object","properties":{"requests":{"type":"array","items":{"$ref":"#/components/schemas/ImportRequestResponseOutput"}}},"required":["requests"],"additionalProperties":false,"description":"Import requests, newest first"},"ImportRequestDetailResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"orgId":{"type":"string"},"status":{"$ref":"#/components/schemas/ImportRequestStatusEnum"},"requestedBy":{"type":"object","properties":{"userId":{"type":"string"},"email":{"nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"}},"required":["userId","email","name"],"additionalProperties":false},"locale":{"nullable":true,"description":"Requester's UI language at request time (drives the result e-mail)","type":"string"},"host":{"nullable":true,"type":"string"},"env":{"type":"string","enum":["prod","staging"],"description":"Deployment the request was filed on (derived from host): prod = agmeo.com / bat-agrar.de, staging = beta-testing and everything else. Fulfil against the matching API (and database) only."},"notes":{"nullable":true,"type":"string"},"files":{"type":"array","items":{"$ref":"#/components/schemas/ImportRequestFileOutput"},"description":"Imports-folder snapshot at request time"},"connectors":{"type":"array","items":{"type":"string"},"description":"Provider ids of OAuth/credential connections the org had at request time"},"assigneeEmail":{"nullable":true,"type":"string"},"assigneeNote":{"nullable":true,"type":"string"},"importJobIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"}},"resultSummary":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/ImportResultSummaryOutput"}]},"learnings":{"type":"array","items":{"$ref":"#/components/schemas/ImportLearningOutput"}},"failureReason":{"nullable":true,"type":"string"},"toolshedTicket":{"nullable":true,"description":"Mirror ticket number in toolshed (internal.agvolution.com)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestedAt":{"type":"string"},"startedAt":{"nullable":true,"type":"string"},"doneAt":{"nullable":true,"type":"string"},"acknowledgedAt":{"nullable":true,"description":"Requester dismissed the in-app 'import ready' dialog","type":"string"},"notifiedAt":{"nullable":true,"description":"Requester e-mail sent","type":"string"},"liveFiles":{"type":"array","items":{"$ref":"#/components/schemas/ImportRequestLiveFileOutput"},"description":"Current Imports-folder contents (files added after the request count too)"},"jobs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"title":{"nullable":true,"type":"string"},"source":{"type":"string"},"status":{"$ref":"#/components/schemas/ImportJobStatusEnum"},"summary":{"nullable":true,"description":"Per-action counts after commit, e.g. {\"field:create\": 12, \"operation:update\": 3}; null until committed","type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"createdAt":{"type":"string"},"committedAt":{"nullable":true,"type":"string"}},"required":["id","title","source","status","summary","createdAt","committedAt"],"additionalProperties":false}}},"required":["id","orgId","status","requestedBy","locale","host","env","notes","files","connectors","assigneeEmail","assigneeNote","importJobIds","resultSummary","learnings","failureReason","toolshedTicket","requestedAt","startedAt","doneAt","acknowledgedAt","notifiedAt","liveFiles","jobs"],"additionalProperties":false,"description":"Everything the fulfilment agent needs to start: request, downloadable files and linked import jobs"},"ImportRequestPatchRequest":{"type":"object","properties":{"status":{"type":"string","enum":["in_progress","done","failed","cancelled"]},"assigneeEmail":{"type":"string","maxLength":200,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"assigneeNote":{"type":"string","maxLength":2000},"importJobIds":{"description":"Merged into the request's job list; the jobs get requestId set","maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"}},"resultSummary":{"description":"Required when status=done","allOf":[{"$ref":"#/components/schemas/ImportResultSummaryOutput"}]},"learnings":{"description":"Appended, never replaced","maxItems":200,"type":"array","items":{"$ref":"#/components/schemas/ImportLearningOutput"}},"failureReason":{"description":"Required when status=failed","type":"string","maxLength":2000}},"required":["status"],"additionalProperties":false,"description":"Lifecycle transition. `done` requires resultSummary (e-mails the requester, shows the in-app dialog, mirrors the ticket); `failed` requires failureReason. Terminal states cannot be left."},"AcknowledgeImportRequestResponse":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"acknowledged":{"type":"boolean","description":"false when the request was already acknowledged or is not the caller's"}},"required":["requestId","acknowledged"],"additionalProperties":false,"description":"Acknowledge result (idempotent)"},"ImportLearningsResponse":{"type":"object","properties":{"since":{"nullable":true,"type":"string"},"learnings":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"entity":{"type":"string","description":"\"\" when the learning named no entity"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"examples":{"type":"array","items":{"type":"string"},"description":"Up to 5 latest descriptions"}},"required":["kind","entity","count","examples"],"additionalProperties":false}}},"required":["since","learnings"],"additionalProperties":false,"description":"Learnings across all requests, counted by kind + entity, most frequent first"},"CheckBugReportRequest":{"type":"object","properties":{"type":{"type":"string","enum":["bug","feature-request"]},"message":{"type":"string","minLength":10,"maxLength":4000},"pageUrl":{"type":"string","maxLength":500},"answers":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"question":{"type":"string","maxLength":300},"answer":{"type":"string","maxLength":1000}},"required":["question","answer"],"additionalProperties":false}}},"required":["type","message"],"additionalProperties":false,"description":"A bug report or feature request draft. `answers` carries clarifying questions already answered so they are not asked again."},"CheckBugReportResponse":{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100,"description":"How actionable the draft is"},"suggestion":{"type":"string"},"questions":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"question":{"type":"string"},"type":{"type":"string","enum":["text","choice"]},"options":{"description":"Only for type 'choice'","type":"array","items":{"type":"string"}}},"required":["id","question","type"],"additionalProperties":false,"description":"A clarifying question that would make the report more actionable"}},"ready":{"type":"boolean","description":"Score ≥ 70 and no open questions — good enough to file"}},"required":["score","suggestion","questions","ready"],"additionalProperties":false,"description":"AI assessment of a report draft; nothing is filed"},"SubmitBugReportRequest":{"type":"object","properties":{"type":{"type":"string","enum":["bug","feature-request"]},"title":{"type":"string","minLength":5,"maxLength":120},"message":{"type":"string","minLength":20,"maxLength":6000},"priority":{"type":"string","enum":["low","medium","high","blocking"]},"pageUrl":{"type":"string","maxLength":500},"userAgent":{"type":"string","maxLength":300},"screenshotFileKeys":{"maxItems":5,"type":"array","items":{"type":"string","minLength":1,"maxLength":400}}},"required":["type","title","message"],"additionalProperties":false,"description":"The ticket. `priority` is recorded for Agvolution staff reporters only; `screenshotFileKeys` name image files of the organization (uploaded through the files API) that are attached to the ticket, 4 MB in total."},"SubmitBugReportResponse":{"type":"object","properties":{"ticket":{"nullable":true,"description":"Ticket number on internal.agvolution.com","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"followUrl":{"type":"string","format":"uri"},"screenshotsAttached":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"screenshotsRejected":{"type":"array","items":{"type":"object","properties":{"fileKey":{"type":"string"},"reason":{"type":"string","enum":["not_found","not_image","too_large","budget"]}},"required":["fileKey","reason"],"additionalProperties":false}},"priorityRecorded":{"type":"boolean"}},"required":["ticket","followUrl","screenshotsAttached","screenshotsRejected","priorityRecorded"],"additionalProperties":false,"description":"The filed ticket"},"SoilMapResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"method":{"$ref":"#/components/schemas/SoilMapMethodEnum"},"numberOfZones":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"properties":{"nullable":true},"creationTime":{"type":"string"}},"required":["id","fieldId","year","name","method","numberOfZones","creationTime"],"additionalProperties":false,"description":"A soil map for a field"},"SoilMapWithZonesResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"method":{"$ref":"#/components/schemas/SoilMapMethodEnum"},"numberOfZones":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"properties":{"nullable":true},"creationTime":{"type":"string"},"zones":{"type":"array","items":{"$ref":"#/components/schemas/SoilMapZoneResponseOutput"}}},"required":["id","fieldId","year","name","method","numberOfZones","creationTime","zones"],"additionalProperties":false,"description":"A soil map with its zones"},"CreateSoilMapRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"method":{"$ref":"#/components/schemas/SoilMapMethodEnum"},"numberOfZones":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"properties":{},"zones":{"type":"array","items":{"type":"object","properties":{"soilTypeLUFA":{"$ref":"#/components/schemas/SoilTypeLUFAEnum"},"soilOrganicCarbon":{"type":"number","minimum":0},"properties":{},"geometry":{},"areaFraction":{"type":"number","minimum":0,"maximum":1}},"required":["soilTypeLUFA","soilOrganicCarbon","geometry","areaFraction"],"additionalProperties":false,"description":"Request body for creating a soil map zone"}}},"required":["name","method","numberOfZones"],"additionalProperties":false,"description":"Request body for creating a soil map"},"GetCropCalendarResponse":{"type":"array","items":{"$ref":"#/components/schemas/CropCalendarFieldEntryOutput"},"description":"List of fields with their cultivation history for the crop calendar"},"RasterStatsResponse":{"anyOf":[{"$ref":"#/components/schemas/RasterContinuousStatsOutput"},{"$ref":"#/components/schemas/RasterCategoricalDistributionOutput"}],"description":"Raster zonal statistics. Continuous layers return `statistics`, categorical layers return `distribution`."},"MicroclimateLayersResponse":{"type":"object","properties":{"layers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"soil-temperature"},"name":{"type":"string","example":"Soil temperature at depth"},"group":{"type":"string","enum":["terrain","radiation","temperature","wind","humidity","water","soil-temperature","biogeochemistry","phenology","crop","advisory"],"example":"soil-temperature"},"unit":{"type":"string","example":"degC","description":"Physical unit of the raster values."},"categorical":{"type":"boolean","example":false},"aggregation":{"type":"string","enum":["sum","mean","stock"],"example":"mean","description":"How the value behaves through time: `sum` (extensive per-day flux/rate — supports the cumulative modes), `mean` (intensive state/level), `stock` (already-cumulative state, e.g. GDD/biomass). Drives which `temporalResolutions` apply."},"temporalResolutions":{"type":"array","items":{"type":"string","enum":["daily","monthly","annual","cumulative","cumulative_since_sowing","climatology"],"description":"Temporal aggregation of the layer over the requested window:\n- `daily` (default): one value/field per day.\n- `monthly` / `annual`: calendar-bucketed — Σ within the bucket for flux/rate layers (ET, precipitation, N fluxes, …), mean for state layers (temperatures, moisture, …). Supported by every layer.\n- `cumulative`: running Σ over the window. Only valid for flux/rate layers (400 otherwise: 'cumulative aggregation is only defined for flux/rate layers').\n- `cumulative_since_sowing`: running Σ from the crop's sowing date — the headline mode (e.g. cumulative ET or N mineralization since sowing). Requires `crop` + `sowingDate`; flux/rate layers only.\n- `climatology`: mean per day-of-year across the years of a multi-year `dateRange` (400 for a single-year window). Weather / soil-physics layers only.\n`stats` reduces the window to a single field, so calendar buckets (monthly/annual/climatology) fall back to the whole-window aggregate there; the cumulative modes give the accumulated field. Each layer's supported set is listed in its `temporalResolutions`."}},"depthAware":{"type":"boolean","example":true,"description":"Requires the `depth` parameter (cm)."},"model":{"type":"string","example":"Analytical damping-depth / force-restore"},"modelVersion":{"type":"string","example":"0.1.0-planned"},"status":{"type":"string","enum":["planned","experimental","stable"],"example":"planned"},"references":{"type":"array","items":{"type":"object","properties":{"citation":{"type":"string","example":"Allen et al. (1998), FAO-56"},"doi":{"example":"10.2136/sssaj2005.0117","type":"string"}},"required":["citation"],"additionalProperties":false}},"description":{"type":"string"}},"required":["id","name","group","unit","categorical","aggregation","temporalResolutions","depthAware","model","modelVersion","status","references","description"],"additionalProperties":false,"description":"Metadata for one microclimate layer, including model provenance and scientific references."}}},"required":["layers"],"additionalProperties":false,"description":"The microclimate layer registry: every computable variable with its model and references."},"MicroclimateComputeRequest":{"type":"object","properties":{"geometry":{"description":"The field boundary as GeoJSON Polygon or MultiPolygon (EPSG:4326). Provide this OR `fieldId`.","anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"fieldId":{"example":"c79f2e7b-54d8-406b-97f0-d96131405965","description":"Field id (UUID, `id` of GET /api/{orgId}/fields) in the token's organization. If given, the geometry, crop and sowing date are read from the field's cultivation in `year` — no need to pass geometry, crop or sowingDate.","type":"string"},"year":{"example":2026,"description":"Harvest year of the cultivation `fieldId` is resolved with (default: the current calendar year). A crop sown in autumn belongs to the NEXT year: pass it, or the crop and sowing date of the harvested crop are used.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"date":{"example":"2026-07-15","description":"One day, YYYY-MM-DD, for `stats` or `raster`. Mutually exclusive with `dateRange`.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dateRange":{"example":{"from":"2026-05-01","to":"2026-07-31"},"description":"The window to compute. Required by `timeseries`; `stats` and `raster` take it or a single `date`.","type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","format":"date","description":"First day, YYYY-MM-DD"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","format":"date","description":"Last day, YYYY-MM-DD (at most ~2 years after `from`)"}},"required":["from","to"],"additionalProperties":false},"aggregation":{"default":"daily","type":"string","enum":["daily","monthly","annual","cumulative","cumulative_since_sowing","climatology"],"description":"Temporal aggregation of the layer over the requested window:\n- `daily` (default): one value/field per day.\n- `monthly` / `annual`: calendar-bucketed — Σ within the bucket for flux/rate layers (ET, precipitation, N fluxes, …), mean for state layers (temperatures, moisture, …). Supported by every layer.\n- `cumulative`: running Σ over the window. Only valid for flux/rate layers (400 otherwise: 'cumulative aggregation is only defined for flux/rate layers').\n- `cumulative_since_sowing`: running Σ from the crop's sowing date — the headline mode (e.g. cumulative ET or N mineralization since sowing). Requires `crop` + `sowingDate`; flux/rate layers only.\n- `climatology`: mean per day-of-year across the years of a multi-year `dateRange` (400 for a single-year window). Weather / soil-physics layers only.\n`stats` reduces the window to a single field, so calendar buckets (monthly/annual/climatology) fall back to the whole-window aggregate there; the cumulative modes give the accumulated field. Each layer's supported set is listed in its `temporalResolutions`."},"depth":{"example":10,"description":"Soil depth in cm. Required for depth-aware layers (soil-temperature, n-mineralization-rate).","type":"number"},"crop":{"example":"silageMaize","description":"Crop id (SupportedCrops, e.g. `silageMaize`, `winterWheat`). Enables the BBCH phenology coupling: crop-specific Kc, dynamic rooting depth and crop-specific actual ET. Omit for a generic crop coefficient.","type":"string"},"sowingDate":{"example":"2026-05-01","description":"ISO sowing date; used with `crop` to accumulate growing degree days from emergence for the BBCH stage.","type":"string"},"fertilizerEvents":{"example":[{"date":"2026-06-14","nKgHa":80}],"description":"Scenario fertilizer applications (what-if): each = an ISO date + plant-available nitrogen (kg N/ha). ADDED on top of the field's logged fertilizing operations (resolved from `fieldId`). Use for 'what if I apply X more N on date Y' — the extra N enters the mineral-N pool and drives the crop-nitrogen and N-transport layers.","type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"nKgHa":{"type":"number"}},"required":["date","nKgHa"],"additionalProperties":false}},"irrigationEvents":{"example":[{"date":"2026-07-05","mm":25}],"description":"Scenario irrigation applications (what-if): each = an ISO date + water depth (mm). ADDED on top of the field's logged IRRIGATION operations (from `fieldId`). Infiltrates into the topsoil, feeding the water balance (soil moisture, ET, deficit, drainage) and the crop water-stress coefficient.","type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"mm":{"type":"number"}},"required":["date","mm"],"additionalProperties":false}},"format":{"example":"geotiff","description":"Raster endpoint only — output format. `geotiff` (default): a georeferenced single-band Float32 GeoTIFF in EPSG:3857 whose bounds equal the `x-bounding-box-epsg-3857` response header (NoData = -9999); `png`: a coloured rendered preview (hillshade + colour map + legend, not georeferenced). Ignored by stats/bundle/timeseries.","type":"string","enum":["geotiff","png"]}},"additionalProperties":false,"description":"Compute request for a microclimate layer over a field: name the field with `fieldId` or send a `geometry`, and give a `date` or a `dateRange`.","example":{"fieldId":"c79f2e7b-54d8-406b-97f0-d96131405965","year":2026,"dateRange":{"from":"2026-05-01","to":"2026-07-31"},"aggregation":"daily"}},"MicroclimateStatsResponse":{"type":"object","properties":{"provenance":{"type":"object","properties":{"layerId":{"type":"string"},"unit":{"type":"string"},"model":{"type":"string"},"modelVersion":{"type":"string"},"status":{"type":"string","enum":["planned","experimental","stable"]},"references":{"type":"array","items":{"type":"object","properties":{"citation":{"type":"string","example":"Allen et al. (1998), FAO-56"},"doi":{"example":"10.2136/sssaj2005.0117","type":"string"}},"required":["citation"],"additionalProperties":false}}},"required":["layerId","unit","model","modelVersion","status","references"],"additionalProperties":false,"description":"Model provenance echoed on every compute response."},"aggregation":{"type":"string","enum":["daily","monthly","annual","cumulative","cumulative_since_sowing","climatology"],"description":"Temporal aggregation of the layer over the requested window:\n- `daily` (default): one value/field per day.\n- `monthly` / `annual`: calendar-bucketed — Σ within the bucket for flux/rate layers (ET, precipitation, N fluxes, …), mean for state layers (temperatures, moisture, …). Supported by every layer.\n- `cumulative`: running Σ over the window. Only valid for flux/rate layers (400 otherwise: 'cumulative aggregation is only defined for flux/rate layers').\n- `cumulative_since_sowing`: running Σ from the crop's sowing date — the headline mode (e.g. cumulative ET or N mineralization since sowing). Requires `crop` + `sowingDate`; flux/rate layers only.\n- `climatology`: mean per day-of-year across the years of a multi-year `dateRange` (400 for a single-year window). Weather / soil-physics layers only.\n`stats` reduces the window to a single field, so calendar buckets (monthly/annual/climatology) fall back to the whole-window aggregate there; the cumulative modes give the accumulated field. Each layer's supported set is listed in its `temporalResolutions`."},"date":{"type":"string"},"dateRange":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"additionalProperties":false},"depth":{"type":"number"},"statistics":{"type":"object","properties":{"mean":{"type":"number"},"median":{"type":"number"},"stddev":{"type":"number"},"q20":{"type":"number"},"q80":{"type":"number"}},"required":["mean","median","stddev","q20","q80"],"additionalProperties":false}},"required":["provenance","aggregation","statistics"],"additionalProperties":false,"description":"Zonal statistics for one microclimate layer over the field, with model provenance."},"MicroclimateBundleRequest":{"type":"object","properties":{"geometry":{"description":"The field boundary as GeoJSON Polygon or MultiPolygon (EPSG:4326). Provide this OR `fieldId`.","anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"fieldId":{"example":"c79f2e7b-54d8-406b-97f0-d96131405965","description":"Field id (UUID, `id` of GET /api/{orgId}/fields) in the token's organization. If given, the geometry, crop and sowing date are read from the field's cultivation in `year` — no need to pass geometry, crop or sowingDate.","type":"string"},"year":{"example":2026,"description":"Harvest year of the cultivation `fieldId` is resolved with (default: the current calendar year). A crop sown in autumn belongs to the NEXT year: pass it, or the crop and sowing date of the harvested crop are used.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"date":{"example":"2026-07-15","description":"One day, YYYY-MM-DD, for `stats` or `raster`. Mutually exclusive with `dateRange`.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dateRange":{"example":{"from":"2026-05-01","to":"2026-07-31"},"description":"The window to compute. Required by `timeseries`; `stats` and `raster` take it or a single `date`.","type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","format":"date","description":"First day, YYYY-MM-DD"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","format":"date","description":"Last day, YYYY-MM-DD (at most ~2 years after `from`)"}},"required":["from","to"],"additionalProperties":false},"aggregation":{"default":"daily","type":"string","enum":["daily","monthly","annual","cumulative","cumulative_since_sowing","climatology"],"description":"Temporal aggregation of the layer over the requested window:\n- `daily` (default): one value/field per day.\n- `monthly` / `annual`: calendar-bucketed — Σ within the bucket for flux/rate layers (ET, precipitation, N fluxes, …), mean for state layers (temperatures, moisture, …). Supported by every layer.\n- `cumulative`: running Σ over the window. Only valid for flux/rate layers (400 otherwise: 'cumulative aggregation is only defined for flux/rate layers').\n- `cumulative_since_sowing`: running Σ from the crop's sowing date — the headline mode (e.g. cumulative ET or N mineralization since sowing). Requires `crop` + `sowingDate`; flux/rate layers only.\n- `climatology`: mean per day-of-year across the years of a multi-year `dateRange` (400 for a single-year window). Weather / soil-physics layers only.\n`stats` reduces the window to a single field, so calendar buckets (monthly/annual/climatology) fall back to the whole-window aggregate there; the cumulative modes give the accumulated field. Each layer's supported set is listed in its `temporalResolutions`."},"depth":{"example":10,"description":"Soil depth in cm. Required for depth-aware layers (soil-temperature, n-mineralization-rate).","type":"number"},"crop":{"example":"silageMaize","description":"Crop id (SupportedCrops, e.g. `silageMaize`, `winterWheat`). Enables the BBCH phenology coupling: crop-specific Kc, dynamic rooting depth and crop-specific actual ET. Omit for a generic crop coefficient.","type":"string"},"sowingDate":{"example":"2026-05-01","description":"ISO sowing date; used with `crop` to accumulate growing degree days from emergence for the BBCH stage.","type":"string"},"fertilizerEvents":{"example":[{"date":"2026-06-14","nKgHa":80}],"description":"Scenario fertilizer applications (what-if): each = an ISO date + plant-available nitrogen (kg N/ha). ADDED on top of the field's logged fertilizing operations (resolved from `fieldId`). Use for 'what if I apply X more N on date Y' — the extra N enters the mineral-N pool and drives the crop-nitrogen and N-transport layers.","type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"nKgHa":{"type":"number"}},"required":["date","nKgHa"],"additionalProperties":false}},"irrigationEvents":{"example":[{"date":"2026-07-05","mm":25}],"description":"Scenario irrigation applications (what-if): each = an ISO date + water depth (mm). ADDED on top of the field's logged IRRIGATION operations (from `fieldId`). Infiltrates into the topsoil, feeding the water balance (soil moisture, ET, deficit, drainage) and the crop water-stress coefficient.","type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"mm":{"type":"number"}},"required":["date","mm"],"additionalProperties":false}},"format":{"example":"geotiff","description":"Raster endpoint only — output format. `geotiff` (default): a georeferenced single-band Float32 GeoTIFF in EPSG:3857 whose bounds equal the `x-bounding-box-epsg-3857` response header (NoData = -9999); `png`: a coloured rendered preview (hillshade + colour map + legend, not georeferenced). Ignored by stats/bundle/timeseries.","type":"string","enum":["geotiff","png"]},"variables":{"example":["net-radiation","et0","soil-temperature"],"description":"Subset of layer ids to compute. Omit for the full applicable set.","type":"array","items":{"type":"string"}}},"additionalProperties":false,"description":"Compute the full microclimate bundle for a field in one call."},"MicroclimateBundleResponse":{"type":"object","properties":{"layers":{"type":"array","items":{"type":"object","properties":{"provenance":{"type":"object","properties":{"layerId":{"type":"string"},"unit":{"type":"string"},"model":{"type":"string"},"modelVersion":{"type":"string"},"status":{"type":"string","enum":["planned","experimental","stable"]},"references":{"type":"array","items":{"type":"object","properties":{"citation":{"type":"string","example":"Allen et al. (1998), FAO-56"},"doi":{"example":"10.2136/sssaj2005.0117","type":"string"}},"required":["citation"],"additionalProperties":false}}},"required":["layerId","unit","model","modelVersion","status","references"],"additionalProperties":false,"description":"Model provenance echoed on every compute response."},"statistics":{"type":"object","properties":{"mean":{"type":"number"},"median":{"type":"number"},"stddev":{"type":"number"},"q20":{"type":"number"},"q80":{"type":"number"}},"required":["mean","median","stddev","q20","q80"],"additionalProperties":false},"error":{"description":"Set when this layer could not be computed (e.g. 501).","type":"string"}},"required":["provenance"],"additionalProperties":false}}},"required":["layers"],"additionalProperties":false,"description":"Per-layer microclimate results for a field. Layers that failed carry an `error`."},"MicroclimateTimeseriesResponse":{"type":"object","properties":{"provenance":{"type":"object","properties":{"layerId":{"type":"string"},"unit":{"type":"string"},"model":{"type":"string"},"modelVersion":{"type":"string"},"status":{"type":"string","enum":["planned","experimental","stable"]},"references":{"type":"array","items":{"type":"object","properties":{"citation":{"type":"string","example":"Allen et al. (1998), FAO-56"},"doi":{"example":"10.2136/sssaj2005.0117","type":"string"}},"required":["citation"],"additionalProperties":false}}},"required":["layerId","unit","model","modelVersion","status","references"],"additionalProperties":false,"description":"Model provenance echoed on every compute response."},"aggregation":{"type":"string","enum":["daily","monthly","annual","cumulative","cumulative_since_sowing","climatology"],"description":"Temporal aggregation of the layer over the requested window:\n- `daily` (default): one value/field per day.\n- `monthly` / `annual`: calendar-bucketed — Σ within the bucket for flux/rate layers (ET, precipitation, N fluxes, …), mean for state layers (temperatures, moisture, …). Supported by every layer.\n- `cumulative`: running Σ over the window. Only valid for flux/rate layers (400 otherwise: 'cumulative aggregation is only defined for flux/rate layers').\n- `cumulative_since_sowing`: running Σ from the crop's sowing date — the headline mode (e.g. cumulative ET or N mineralization since sowing). Requires `crop` + `sowingDate`; flux/rate layers only.\n- `climatology`: mean per day-of-year across the years of a multi-year `dateRange` (400 for a single-year window). Weather / soil-physics layers only.\n`stats` reduces the window to a single field, so calendar buckets (monthly/annual/climatology) fall back to the whole-window aggregate there; the cumulative modes give the accumulated field. Each layer's supported set is listed in its `temporalResolutions`."},"depth":{"type":"number"},"series":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"value":{"type":"number"}},"required":["date","value"],"additionalProperties":false}}},"required":["provenance","aggregation","series"],"additionalProperties":false,"description":"Field-aggregate time series of one microclimate layer over the requested window."},"GetWaterBalancesResponse":{"type":"array","items":{"$ref":"#/components/schemas/FieldIrrigationDataSchemaOutput"},"description":"Per-field irrigation water balances for the requested year. One entry per field (fields without a cultivation are included with null cultivation data)."},"PostIrrigationEventRequest":{"type":"object","properties":{"cultivationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Cultivation to document the irrigation on"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of the irrigation event (ISO yyyy-mm-dd)"},"amountMm":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":100,"description":"Applied water (mm), max 100"},"actionFqn":{"type":"string","enum":["IRRIGATION_METHOD__SPRINKLER","IRRIGATION_METHOD__DRIP","IRRIGATION_METHOD__PIVOT"],"description":"Irrigation method article fqn"},"source":{"description":"Origin marker stored on the event, e.g. \"climavi\"","type":"string","maxLength":64},"externalRef":{"description":"Idempotency key. Re-POSTing the same ref returns 200 with the existing operation instead of duplicating it.","type":"string","minLength":1,"maxLength":128},"zone":{"description":"Optional irrigation-zone reference of the calling system. Persisted verbatim into the event's details for traceability.","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"Zone id in the calling system (e.g. climavi IrrigationZones id)"},"name":{"type":"string","minLength":1,"maxLength":120,"description":"Human-readable zone name at documentation time"}},"required":["id","name"],"additionalProperties":false},"status":{"description":"Transaction status. Documenting an already-executed irrigation should send \"DOCUMENTATION\"; omitted → \"PLANNING\" (backwards-compatible default).","type":"string","enum":["PLANNING","IN_EXECUTION","DOCUMENTATION"]}},"required":["cultivationId","date","amountMm","actionFqn"],"additionalProperties":false,"description":"Document one irrigation event on a cultivation","example":{"cultivationId":"2b1a6c3e-0d4f-4f6a-8d2e-7c5b9e0f1a23","date":"2026-06-12","amountMm":25,"actionFqn":"IRRIGATION_METHOD__DRIP","source":"climavi","externalRef":"climavi:5a4e8d02-9d1f-4a7b-8f7c-0e2d1c3b4a59","zone":{"id":"7d3f2a1b-6c5e-4d8f-9a0b-1c2d3e4f5a6b","name":"Zone Nord"}}},"PostIrrigationEventResponse":{"type":"object","properties":{"operationId":{"type":"string","description":"Groups the action + water product rows of the created event"},"transactionIds":{"type":"array","items":{"type":"string"},"description":"The two created transaction ids"},"created":{"type":"boolean","description":"false when an externalRef replay returned the existing operation"}},"required":["operationId","transactionIds","created"],"additionalProperties":false,"description":"The documented irrigation event. Delete it via DELETE /api/{orgId}/operations/{operationId}; re-POST with a NEW externalRef for corrections.","example":{"operationId":"2b1a6c3e-0d4f-4f6a-8d2e-7c5b9e0f1a23","transactionIds":["8f7f0d7e-1c2c-4d8e-9a51-2f9a4f6f1a01","1c9e2b7a-3f4d-4c5b-9e8f-7a6b5c4d3e21"],"created":true}},"ApiError":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["validation_failed","not_found","conflict","forbidden_org","missing_scope","rate_limited","internal"]}},"required":["message","code"],"additionalProperties":false,"example":{"message":"Missing required scope: user:org:write","code":"missing_scope"}},"ApiValidationError":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["validation_failed","not_found","conflict","forbidden_org","missing_scope","rate_limited","internal"]},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["message","code","issues"],"additionalProperties":false,"example":{"message":"Invalid request body: sowingDate: Expected a day (YYYY-MM-DD) or an ISO 8601 date-time","code":"validation_failed","issues":[{"path":["sowingDate"],"message":"Expected a day (YYYY-MM-DD) or an ISO 8601 date-time"}]}},"PostApplicationMapFromZonesRequest":{"type":"object","properties":{"cultivationId":{"description":"Cultivation to build the map for; alternatively give fieldId + year","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"year":{"type":"integer","minimum":2000,"maximum":2100},"mode":{"$ref":"#/components/schemas/ApplicationMapModeEnum"},"name":{"description":"Map name (unique per field and year); default `<product or variety> <year>`","type":"string","minLength":1,"maxLength":120},"standardRate":{"type":"number","minimum":0,"exclusiveMinimum":true,"description":"Field-mean rate the zones are spread around"},"unit":{"type":"string","enum":["kg_ha","l_ha","cbm_ha","grains_m2","plants_m2"],"description":"Rate unit. Fertilizer maps: kg_ha | l_ha | cbm_ha. Planting maps: grains_m2 | plants_m2 | kg_ha.","example":"kg_ha"},"articleFqn":{"description":"Fertilizer article fqn (required for fertilizerApplication)","example":"MINERAL__CALCIUM_AMMONIUM_NITRATE","type":"string","minLength":1},"variety":{"description":"Variety name written on planting maps","type":"string","maxLength":120},"germination":{"description":"Germination %, converts plants_m2 to grains_m2 on export (default 94)","type":"number","minimum":0,"exclusiveMinimum":true,"maximum":100,"exclusiveMaximum":true},"invert":{"description":"More where the yield potential is low","type":"boolean"},"zoneSource":{"$ref":"#/components/schemas/ApplicationMapZoneSourceOutput"},"saveBaseZonation":{"description":"Also store soil/yield/uniform zones as a base zonation of the cultivation (default false). A variant that already exists is replaced; its name and favourite flag are kept","type":"boolean"},"machine":{"description":"Terminal / machine label stored on the map (default: export terminal or \"api\")","type":"string","maxLength":120},"overrideExisting":{"description":"Replace a map with the same name instead of answering 409","type":"boolean"},"linkTransaction":{"description":"Find or create the product transaction of the cultivation, write the standard rate onto it and link the map. Refused with 422 when the transaction is kept in a unit the map's unit does not convert to","type":"boolean"},"export":{"description":"Also convert to an ISOXML/shapefile zip and store it in the org's files","type":"object","properties":{"terminal":{"type":"string","minLength":1,"description":"Terminal `value` from GET /application-maps/terminals; an unknown one is refused with 422","example":"JD_GEN4_COMMAND_CENTER"}},"required":["terminal"],"additionalProperties":false}},"required":["mode","standardRate","unit","zoneSource"],"additionalProperties":false,"description":"Build and persist an application map from stored zones. Zones come from the organisation's stored zonations — soil sampling zones, yield zonations, saved base zonations or a uniform zone. Satellite/TWI zonation is only available in the app.","example":{"cultivationId":"5a4e8d02-9d1f-4a7b-8f7c-0e2d1c3b4a59","mode":"fertilizerApplication","standardRate":120,"unit":"kg_ha","articleFqn":"MINERAL__CALCIUM_AMMONIUM_NITRATE","zoneSource":{"type":"favorite"},"export":{"terminal":"JD_GEN4_COMMAND_CENTER"}}},"ApplicationMapFromZonesResponse":{"type":"object","properties":{"applicationMap":{"$ref":"#/components/schemas/ApplicationMapDetailOutput"},"baseZonation":{"type":"object","properties":{"method":{"type":"string","enum":["yield_potential","ndvi_recent","ndvi_longterm","soil_zonation","twi","satellite_composite","yield_measured"],"description":"Base-zonation method the map derives from","example":"soil_zonation"},"numberOfZones":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"source":{"nullable":true,"type":"string"},"created":{"type":"boolean","description":"True when the build persisted a new base zonation"}},"required":["method","numberOfZones","source","created"],"additionalProperties":false},"transaction":{"nullable":true,"type":"object","properties":{"transactionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"created":{"type":"boolean"},"quantityUpdated":{"type":"boolean","description":"False: the transaction is linked, but its quantity was left as it was (units do not convert)"}},"required":["transactionId","created","quantityUpdated"],"additionalProperties":false},"export":{"nullable":true,"type":"object","properties":{"fileKey":{"type":"string","description":"Org-scoped key for GET /files/{fileKey}"},"terminal":{"type":"string"},"exportedAt":{"type":"string","description":"ISO timestamp"},"downloadUrl":{"description":"Presigned download URL (300 s); only with ?download=true","type":"string","format":"uri"}},"required":["fileKey","terminal","exportedAt"],"additionalProperties":false,"description":"Stored ISOXML/shapefile export of the map"}},"required":["applicationMap","baseZonation","transaction","export"],"additionalProperties":false,"description":"The persisted map plus what the build did on the way"},"ApplicationMapExportFailure":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["validation_failed","internal"],"description":"validation_failed (422): the converter refused the map (its 400 / 422) — change the request; internal (502): the export could not be produced (converter or file store unavailable) — retry later"},"applicationMapId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The map that WAS stored — GET /application-maps/{id}"},"transactionId":{"nullable":true,"description":"The transaction that was linked, if any","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["message","code","applicationMapId","transactionId"],"additionalProperties":false,"description":"POST /application-maps/from-zones stored the map (and the transaction) but the export failed afterwards. Do not build the map again under the same name (409): read it, or repeat the call with overrideExisting=true to replace it and export again.","example":{"message":"The export could not be produced — the map is stored, only its export is missing","code":"internal","applicationMapId":"0b2e6f1c-1a2b-4c3d-9e8f-7a6b5c4d3e2f","transactionId":null}},"GetApplicationMapsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationMapSummaryOutput"}},"nextCursor":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaginationCursor"}]},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"truncated":{"type":"boolean"}},"required":["items","nextCursor","truncated"],"additionalProperties":false,"description":"Application maps, newest first"},"ApprovedProductsResponse":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"activeIngredients":{"type":"array","items":{"type":"string"}},"crops":{"type":"array","items":{"type":"string"}},"targets":{"type":"array","items":{"type":"string"}},"authorizationNumber":{"nullable":true,"type":"string"},"authorizedUntil":{"nullable":true,"type":"string"},"maxApplicationsPerSeason":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"waitingPeriodDays":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"beeHazard":{"description":"B1–B4","nullable":true,"type":"string"},"waterBufferM":{"nullable":true,"type":"number"},"restrictions":{"description":"Official Auflagen, deduped + capped","type":"array","items":{"type":"object","additionalProperties":{}}},"bbchMin":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bbchMax":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["name","activeIngredients","crops","targets"],"additionalProperties":{},"description":"An approved plant-protection product from the BVL registry"}},"VarietyResistanceResponse":{"type":"object","properties":{"crop":{"nullable":true,"type":"string"},"variety":{"type":"string"},"ratings":{"type":"array","items":{"type":"object","properties":{"disease":{"type":"string"},"susceptibility":{"type":"integer","minimum":1,"maximum":9,"description":"Bundessortenamt 1 (low) – 9 (high)"}},"required":["disease","susceptibility"],"additionalProperties":false}}},"required":["crop","variety","ratings"],"additionalProperties":false,"description":"A variety's disease susceptibility ratings"},"VarietyTraitsResponse":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"type":{"nullable":true,"description":"Crop-specific classification (maturity class / quality group)","type":"string"},"traits":{"type":"object","additionalProperties":{"type":"object","properties":{"value":{"type":"number"},"source":{"type":"string"}},"required":["value","source"],"additionalProperties":false},"description":"Sowing-relevant traits (maturity, winter hardiness, lodging, yield, TKG) from BSL"}},"required":["id","name","type","traits"],"additionalProperties":false,"description":"A variety with its agronomic traits"}},"PostSoilZonationRunsRequest":{"type":"object","properties":{"fieldIds":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"config":{"type":"object","properties":{"source":{"type":"string","enum":["twi","ndvi","savi","ndmi","bk50-buek200","soil-rating"],"description":"twi: topographic wetness; ndvi/savi/ndmi: satellite index (best scene of the last 365 days); bk50-buek200: soil map units; soil-rating: Bodenschätzung parcels","example":"twi"},"numberOfZones":{"anyOf":[{"type":"integer","minimum":1,"maximum":10},{"type":"string","enum":["auto"]}],"description":"\"auto\" → field-size cap, otherwise the manual zone count","example":3},"coarseness":{"description":"Feature-preserving-smoothing strength 0..1 (default 0.35)","type":"number","minimum":0,"maximum":1},"method":{"type":"string","enum":["fcm","kmeans","segment","probe","probe-v2"]},"cleanup":{"type":"string","enum":["merge","fix-kws"]},"ratingGrouping":{"description":"soil-rating source only: how to group parcels into zones","type":"string","enum":["none","decade","coarse"]},"minZoneHa":{"description":"Smallest zone to keep (default 0.25 ha)","type":"number","minimum":0,"exclusiveMinimum":true}},"required":["source","numberOfZones"],"additionalProperties":false,"description":"Zonation configuration shared by every field of the run"},"batchId":{"description":"Groups the created zonations; default random","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["fieldIds","config"],"additionalProperties":false,"description":"Run the soil zonation for up to 50 fields (sequentially)","example":{"fieldIds":["1f3e9c2a-7b4d-4e0f-9a1b-2c3d4e5f6a7b"],"config":{"source":"twi","numberOfZones":3}}},"PostSoilZonationRunsResponse":{"type":"object","properties":{"batchId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"results":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["success"]},"zonationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"numberOfZones":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timings":{"description":"Wall-clock split in ms","type":"object","properties":{"prepare":{"type":"number"},"compute":{"type":"number"},"write":{"type":"number"}},"required":["prepare","compute","write"],"additionalProperties":false}},"required":["fieldId","status","zonationId","numberOfZones"],"additionalProperties":false},{"type":"object","properties":{"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["skipped"]},"reason":{"type":"string","description":"e.g. locked (org keeps existing zonations), no-geometry, deadline (not started: the request's time budget was nearly used up — send these fields again)"}},"required":["fieldId","status","reason"],"additionalProperties":false},{"type":"object","properties":{"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["failed"]},"code":{"type":"string","enum":["field-not-found","invalid-zone-count"]},"reason":{"type":"string","description":"The failure code, or unexpected-error when the run of this field threw"}},"required":["fieldId","status","reason"],"additionalProperties":false}],"description":"Per-field outcome of a zonation run","type":"object"}},"partial":{"type":"boolean","description":"True (HTTP 200 instead of 202) when the time budget ran out before every field was started: the fields with status skipped / reason deadline were not run. Finished fields are stored — retry only the skipped ones, with the same batchId to keep them in one batch."}},"required":["batchId","results","partial"],"additionalProperties":false,"description":"Outcome per requested field, in request order"},"PostSoilZonationUploadImportRequest":{"type":"object","properties":{"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"batchId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"zones":{"minItems":1,"type":"array","items":{"type":"object","properties":{"probeNr":{"nullable":true,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"zoneLabel":{"nullable":true,"type":"string","minLength":1},"areaHa":{"type":"number","minimum":0},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":["probeNr","zoneLabel","areaHa","geometry"],"additionalProperties":false}}},"required":["fieldId","zones"],"additionalProperties":false,"description":"Import the zones matched to one field (from the upload preview) as its soil zonation"},"ZonationUploadPreview":{"type":"object","properties":{"fileName":{"type":"string"},"zoneCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fields":{"type":"array","items":{"type":"object","properties":{"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldName":{"type":"string"},"fieldAreaHa":{"type":"number"},"fieldGeometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]},"hasActiveZonation":{"type":"boolean"},"coveragePct":{"type":"number","description":"Share of the field area covered by the uploaded zones, 0-100"},"zones":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Stable key of the feature within the uploaded file (its index)"},"probeNr":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"zoneLabel":{"nullable":true,"type":"string"},"areaHa":{"type":"number"},"fieldNameHint":{"nullable":true,"description":"SCHLAGNAME / fieldName column of the file","type":"string"},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":["key","probeNr","zoneLabel","areaHa","fieldNameHint","geometry"],"additionalProperties":false}}},"required":["fieldId","fieldName","fieldAreaHa","fieldGeometry","hasActiveZonation","coveragePct","zones"],"additionalProperties":false}},"unmatched":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Stable key of the feature within the uploaded file (its index)"},"probeNr":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"zoneLabel":{"nullable":true,"type":"string"},"areaHa":{"type":"number"},"fieldNameHint":{"nullable":true,"description":"SCHLAGNAME / fieldName column of the file","type":"string"},"geometry":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}},"required":["type","coordinates"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["MultiPolygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":["key","probeNr","zoneLabel","areaHa","fieldNameHint","geometry"],"additionalProperties":false},"description":"Zones that match none of the org's fields"}},"required":["fileName","zoneCount","fields","unmatched"],"additionalProperties":false,"description":"Uploaded zones matched to the org's fields — the input of …/upload/import"},"ZonationUploadResult":{"oneOf":[{"type":"object","properties":{"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["success"]},"numberOfZones":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["fieldId","status","numberOfZones"],"additionalProperties":false},{"type":"object","properties":{"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["skipped"]},"reason":{"type":"string","enum":["locked","no-geometry","no-zones-produced","already-imported"]}},"required":["fieldId","status","reason"],"additionalProperties":false},{"type":"object","properties":{"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["failed"]},"reason":{"type":"string","enum":["field-not-found","invalid-zones","write-failed"]},"detail":{"type":"string"}},"required":["fieldId","status","reason"],"additionalProperties":false}],"description":"Outcome of importing the uploaded zones for one field","type":"object"},"FarmEconomicsSettings":{"type":"object","properties":{"leasePerHa":{"type":"number","description":"Lease","x-unit":"currency/ha"},"landTaxPerHa":{"type":"number","description":"Land tax","x-unit":"currency/ha"},"accidentInsurancePerHa":{"type":"number","description":"Agricultural accident insurance contribution","x-unit":"currency/ha"},"buildingCostsPerHa":{"type":"number","description":"Building costs","x-unit":"currency/ha"},"rightsCostsPerHa":{"type":"number","description":"Rights costs","x-unit":"currency/ha"},"insurancePerHa":{"type":"number","description":"Insurance","x-unit":"currency/ha"},"accountingPerHa":{"type":"number","description":"Accounting","x-unit":"currency/ha"},"miscOverheadPerHa":{"type":"number","description":"Other overhead","x-unit":"currency/ha"},"salaryPerHour":{"type":"number","description":"Deprecated: labour is priced per operator; kept for old rows","x-unit":"currency/h"},"basePremiumPerHa":{"type":"number","description":"CAP base premium","x-unit":"currency/ha"},"redistribution1PerHa":{"type":"number","description":"CAP redistribution payment, first tranche","x-unit":"currency/ha"},"redistribution2PerHa":{"type":"number","description":"CAP redistribution payment, second tranche","x-unit":"currency/ha"},"ecoSchemesPerHa":{"type":"number","description":"Eco-schemes","x-unit":"currency/ha"},"agriEnvSchemesPerHa":{"type":"number","description":"Agri-environment schemes","x-unit":"currency/ha"},"youngFarmersPerHa":{"type":"number","description":"Young farmers premium","x-unit":"currency/ha"},"totalHaForRedistribution":{"nullable":true,"description":"Farm area the redistribution tranches are computed over; null = the org's total area","type":"number"},"useDefaultArticlePrices":{"type":"boolean","description":"Fall back to catalogue prices for articles without an org price"}},"required":["leasePerHa","landTaxPerHa","accidentInsurancePerHa","buildingCostsPerHa","rightsCostsPerHa","insurancePerHa","accountingPerHa","miscOverheadPerHa","salaryPerHour","basePremiumPerHa","redistribution1PerHa","redistribution2PerHa","ecoSchemesPerHa","agriEnvSchemesPerHa","youngFarmersPerHa","totalHaForRedistribution","useDefaultArticlePrices"],"additionalProperties":false,"description":"Per-year farm economics settings (overhead and CAP subsidies)"},"PutFarmEconomicsSettingsRequest":{"type":"object","properties":{"leasePerHa":{"type":"number","description":"Lease","x-unit":"currency/ha"},"landTaxPerHa":{"type":"number","description":"Land tax","x-unit":"currency/ha"},"accidentInsurancePerHa":{"type":"number","description":"Agricultural accident insurance contribution","x-unit":"currency/ha"},"buildingCostsPerHa":{"type":"number","description":"Building costs","x-unit":"currency/ha"},"rightsCostsPerHa":{"type":"number","description":"Rights costs","x-unit":"currency/ha"},"insurancePerHa":{"type":"number","description":"Insurance","x-unit":"currency/ha"},"accountingPerHa":{"type":"number","description":"Accounting","x-unit":"currency/ha"},"miscOverheadPerHa":{"type":"number","description":"Other overhead","x-unit":"currency/ha"},"salaryPerHour":{"type":"number","description":"Deprecated: labour is priced per operator; kept for old rows","x-unit":"currency/h"},"basePremiumPerHa":{"type":"number","description":"CAP base premium","x-unit":"currency/ha"},"redistribution1PerHa":{"type":"number","description":"CAP redistribution payment, first tranche","x-unit":"currency/ha"},"redistribution2PerHa":{"type":"number","description":"CAP redistribution payment, second tranche","x-unit":"currency/ha"},"ecoSchemesPerHa":{"type":"number","description":"Eco-schemes","x-unit":"currency/ha"},"agriEnvSchemesPerHa":{"type":"number","description":"Agri-environment schemes","x-unit":"currency/ha"},"youngFarmersPerHa":{"type":"number","description":"Young farmers premium","x-unit":"currency/ha"},"totalHaForRedistribution":{"nullable":true,"description":"Farm area the redistribution tranches are computed over; null = the org's total area","type":"number"},"useDefaultArticlePrices":{"type":"boolean","description":"Fall back to catalogue prices for articles without an org price"}},"additionalProperties":false,"description":"Any subset of the settings; omitted keys keep their stored (or default) value","example":{"leasePerHa":320,"basePremiumPerHa":156,"useDefaultArticlePrices":true}},"BaseFertilizationNeedResponse":{"type":"object","properties":{"p2o5":{"type":"object","properties":{"removalGrain":{"type":"number","description":"kg/ha removed with the main product"},"removalStraw":{"type":"number","description":"kg/ha removed with the by-product (0 when straw stays)"},"removalTotal":{"type":"number"},"level":{"type":"string","enum":["A","B","C","D","E"],"description":"VDLUFA supply level"},"factor":{"type":"number","description":"Correction factor applied to the removal for this supply level"},"recommendation":{"type":"number","description":"kg/ha recommendation = removal × factor"}},"required":["removalGrain","removalStraw","removalTotal","level","factor","recommendation"],"additionalProperties":false,"description":"Removal and recommendation of one nutrient (kg/ha)"},"k2o":{"type":"object","properties":{"removalGrain":{"type":"number","description":"kg/ha removed with the main product"},"removalStraw":{"type":"number","description":"kg/ha removed with the by-product (0 when straw stays)"},"removalTotal":{"type":"number"},"level":{"type":"string","enum":["A","B","C","D","E"],"description":"VDLUFA supply level"},"factor":{"type":"number","description":"Correction factor applied to the removal for this supply level"},"recommendation":{"type":"number","description":"kg/ha recommendation = removal × factor"}},"required":["removalGrain","removalStraw","removalTotal","level","factor","recommendation"],"additionalProperties":false,"description":"Removal and recommendation of one nutrient (kg/ha)"},"mgo":{"type":"object","properties":{"removalGrain":{"type":"number","description":"kg/ha removed with the main product"},"removalStraw":{"type":"number","description":"kg/ha removed with the by-product (0 when straw stays)"},"removalTotal":{"type":"number"},"level":{"type":"string","enum":["A","B","C","D","E"],"description":"VDLUFA supply level"},"factor":{"type":"number","description":"Correction factor applied to the removal for this supply level"},"recommendation":{"type":"number","description":"kg/ha recommendation = removal × factor"}},"required":["removalGrain","removalStraw","removalTotal","level","factor","recommendation"],"additionalProperties":false,"description":"Removal and recommendation of one nutrient (kg/ha)"}},"required":["p2o5","k2o","mgo"],"additionalProperties":false,"description":"Removal, supply level and recommendation per nutrient (kg/ha)"},"FieldP2o5Balance":{"type":"object","properties":{"fieldId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"years":{"type":"array","items":{"type":"object","properties":{"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"supply":{"type":"number"},"removal":{"nullable":true,"description":"null = no documented yield that year","type":"number"}},"required":["year","supply","removal"],"additionalProperties":false}},"supplyTotal":{"type":"number"},"removalTotal":{"type":"number"},"yearsWithYield":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["fieldId","years","supplyTotal","removalTotal","yearsWithYield"],"additionalProperties":false,"description":"6-year P₂O₅ balance of a field (year − 5 … year)"},"GetBaseFertilizationResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/FieldBaseFertilizationManagementOutput"}},"nextCursor":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaginationCursor"}]},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"truncated":{"type":"boolean"}},"required":["items","nextCursor","truncated"],"additionalProperties":false,"description":"One row per field (capped at 200 rows; `truncated` says when the org has more). No cursor paging."},"PostBaseFertilizationNeedRequest":{"type":"object","properties":{"crop":{"type":"string","description":"SupportedCrops key, e.g. winterWheat","example":"winterWheat"},"yieldTpHa":{"type":"number","minimum":0,"exclusiveMinimum":true,"example":8.5},"strawRetained":{"default":true,"type":"boolean"},"soilClass":{"default":"medium","type":"string","enum":["light","medium","heavy"],"description":"Texture class for the VDLUFA supply-level thresholds","example":"medium"},"soilTests":{"description":"Soil readings as the soil page stores them (oxide form, mg/100 g)","type":"object","properties":{"p2o5":{"description":"P₂O₅ reading, mg/100 g","type":"number","minimum":0},"p2o5Method":{"description":"Extraction of the P reading; default cal","type":"string"},"k2o":{"description":"K₂O reading, mg/100 g","type":"number","minimum":0},"k2oMethod":{"description":"Extraction of the K reading; default cal","type":"string"},"mgo":{"description":"MgO reading, mg/100 g","type":"number","minimum":0},"mgoMethod":{"description":"Extraction of the Mg reading; default cacl2","type":"string"},"bodengruppe":{"description":"VDLUFA Bodengruppe (1 sand … 5 clay) the K/Mg limits are keyed on; soilClass stands in when absent","anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]}},"additionalProperties":false},"siteType":{"default":"normal","type":"string","enum":["normal","dry"]}},"required":["crop","yieldTpHa"],"additionalProperties":false,"description":"Inputs of the VDLUFA / DüV Anlage 7 base-fertilization need; without soil tests level C (removal) is assumed.","example":{"crop":"winterWheat","yieldTpHa":8.5,"strawRetained":true,"soilClass":"medium","soilTests":{"p2o5":12}}}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API key"}}}}