Skip to content
Proud to collaborate with Microsoft for Startups

data.agriculture.farm.upsert ​

Create or update an Orkestia farm. Orkestia farm (grower site). Mixed-fleet machines assign here even without an OEM farm.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-agriculture
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID
cloud_connection_uuiduuidNo—Optional Deere connection UUID to filter source_ref rows
workflow_run_idstringNo—Engine-stamped parent DAG run id
farm_uuiduuidNo—Existing Orkestia farm UUID to update
namestringYes—Display name
sourcestringNo—Vendor key (deere/cnh/caterpillar/agco) or orkestia
source_refstringNo—OEM id stored as source_ref, never as the public UUID

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID
cloud_connection_uuiduuidNo—Optional Deere connection UUID to filter source_ref rows
workflow_run_idstringNo—Engine-stamped parent DAG run id
farm_uuiduuidYes—Persisted Orkestia farm UUID
namestringYes—Display name
sourcestringNo—Vendor key (deere/cnh/caterpillar/agco) or orkestia
source_refstringNo—OEM id stored as source_ref, never as the public UUID
persistedbooleanYes—Created or updated in this run
persisted_atstringYes—ISO-8601 persist 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": "data.agriculture.farm.upsert",
  "initial_data": {
    "organization_uuid": "value",
    "name": "value"
  }
}