Skip to content
Proud to collaborate with Microsoft for Startups

agriculture.sync ​

Upsert the Orkestia agriculture graph from a connected OEM (v1: Deere).

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-agriculture
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID
cloud_connection_uuiduuidYes—Organization-scoped John Deere CloudConnection UUID
workflow_run_idstringNo—Engine-stamped parent DAG run id
sourcestringNo—Vendor key; default deere. v1 only implements deere
forcebooleanNo—Re-read vendor pages even when a recent sync exists

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID
cloud_connection_uuiduuidYes—Organization-scoped John Deere CloudConnection UUID
workflow_run_idstringNo—Engine-stamped parent DAG run id
sourcestringNo—Vendor key echoed
forcebooleanNo—Force flag echoed
farms_upsertedintegerYes—Farm rows created or updated
fields_upsertedintegerYes—Field rows created or updated
machines_upsertedintegerYes—Machine rows created or updated
operations_upsertedintegerYes—Operation rows created or updated
synced_atstringYes—ISO-8601 sync timestamp
coveragejsonYes—Per-vendor coverage flags (deere/cnh/caterpillar/agco) for this payload
failure_reasonstringNo—Safe terminal failure reason
failure_typestringNo—Stable failure classification
failed_actionstringNo—Action that failed
failed_stepjsonNo—Failed DAG step envelope
failed_layerintegerNo—One-based failed DAG layer
failed_at_statestringNo—State where failure occurred
errorstringNo—Safe unexpected error
error_typestringNo—Unexpected exception class
failed_atstringNo—ISO-8601 failure timestamp
provider_request_refstringNo—Safe provider request reference
retryablebooleanNo—Whether the failure is retryable

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "agriculture.sync",
  "initial_data": {
    "organization_uuid": "value",
    "cloud_connection_uuid": "value"
  }
}