update_order
Update an order for one of Sentera's FieldInsight products.
Input fields
ID!)
The ID of the order to be updated.
ProductSettingsInput)
The input settings for the analytics that will fulfill this order. Ignored if null or not provided.
ID)
A survey containing the images necessary to process this order.
Return fields
[Analytic!]!)
The set of analytics that comprise the product that was ordered.
ISO8601DateTime)
Date and time when the order was completed, in ISO 8601 format.
String!)
The current content hash for this item.
ISO8601DateTime!)
The timestamp of when the item was created in the system.
User!)
The user who created this item.
Deal)
The deal for the order, if any.
ExternalID)
The unique identifier of this order in a customer's system.
Field)
The field associated with this order.
Boolean!)
Replaced with needs_settings
Is this order missing the settings necessary to begin processing an order?
Boolean!)
Does this order need settings that are required to begin processing?
Organization!)
The organization in which this order was placed.
ID)
Use organization instead
The ID of the organization in which this order was placed.
Product!)
The product that this order will fulfill.
ProductVariantKey)
The specific variant of the product that was ordered.
ID!)
A system-generated key identifying a specific instance of an order.
ProductSettings)
The product settings for this order.
OrderStatus!)
The status of the order.
Survey)
The survey containing the images to fulfill this order.
FlightTask)
A task to capture the images for this order.
ISO8601DateTime!)
The timestamp of when the item was last updated in the system.
User)
The user who last updated this item.
Examples
Update Order
You can update the settings and the input task for an existing order. You cannot change the sensor types or the product.
Try this example in GraphiQLmutation UpdateOrder {
update_order(sentera_id: "7qhgc8l_OD_phgrAcme_CV_deve_5ab6a8995_221219_142757",
settings: {
row_fill: true,
row_spacing: { unit: INCHES, value: 12 },
seeding_rate: { unit: SEEDS_PER_ACRE, value: 2500 },
crop_type: CORN
}
) {
settings {
row_spacing {
unit
value
}
row_fill
seeding_rate {
unit
value
}
crop_type
}
task {
status
}
}
}
{
"data": {
"update_order": {
"settings": {
"row_fill": true,
"row_spacing": {
"unit": "INCHES",
"value": 12
},
"seeding_rate": {
"unit": "SEEDS_PER_ACRE",
"value": 2500
},
"crop_type": "CORN"
},
"task": {
"status": "OPEN"
}
}
}
}