data.agriculture.field.upsert ​
Create or update an Orkestia field. Orkestia field under a farm. Boundary geometry is optional.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-agriculture |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Authenticated organization UUID |
cloud_connection_uuid | uuid | No | — | Optional Deere connection UUID to filter source_ref rows |
workflow_run_id | string | No | — | Engine-stamped parent DAG run id |
field_uuid | uuid | No | — | Existing Orkestia field UUID to update |
name | string | Yes | — | Display name |
source | string | No | — | Vendor key (deere/cnh/caterpillar/agco) or orkestia |
source_ref | string | No | — | OEM id stored as source_ref, never as the public UUID |
farm_uuid | uuid | Yes | — | Parent Orkestia farm UUID |
boundary | json | No | — | Optional GeoJSON boundary |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Authenticated organization UUID |
cloud_connection_uuid | uuid | No | — | Optional Deere connection UUID to filter source_ref rows |
workflow_run_id | string | No | — | Engine-stamped parent DAG run id |
field_uuid | uuid | Yes | — | Persisted Orkestia field UUID |
name | string | Yes | — | Display name |
source | string | No | — | Vendor key (deere/cnh/caterpillar/agco) or orkestia |
source_ref | string | No | — | OEM id stored as source_ref, never as the public UUID |
farm_uuid | uuid | Yes | — | Parent Orkestia farm UUID |
boundary | json | No | — | Optional GeoJSON boundary |
persisted | boolean | Yes | — | Created or updated in this run |
persisted_at | string | Yes | — | ISO-8601 persist timestamp |
coverage | json | Yes | — | Per-vendor coverage flags (deere/cnh/caterpillar/agco) for this payload |
failure_reason | string | No | — | Safe terminal failure reason |
failure_type | string | No | — | Stable failure classification |
failed_action | string | No | — | Action that failed |
failed_step | json | No | — | Failed DAG step envelope |
failed_layer | integer | No | — | One-based failed DAG layer |
failed_at_state | string | No | — | State where failure occurred |
error | string | No | — | Safe unexpected error |
error_type | string | No | — | Unexpected exception class |
failed_at | string | No | — | ISO-8601 failure timestamp |
provider_request_ref | string | No | — | Safe provider request reference |
retryable | boolean | No | — | Whether the failure is retryable |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "data.agriculture.field.upsert",
"initial_data": {
"organization_uuid": "value",
"name": "value",
"farm_uuid": "value"
}
}