update_order

Update an order for one of Sentera's FieldInsight products.

Input fields

sentera_id (ID!)

The ID of the order to be updated.

settings (ProductSettingsInput)

The input settings for the analytics that will fulfill this order. Ignored if null or not provided.

survey_sentera_id (ID)

A survey containing the images necessary to process this order.

Return fields

analytics ([Analytic!]!)

The set of analytics that comprise the product that was ordered.

completed_at (ISO8601DateTime)

Date and time when the order was completed, in ISO 8601 format.

content_hash (String!)

The current content hash for this item.

created_at (ISO8601DateTime!)

The timestamp of when the item was created in the system.

created_by (User!)

The user who created this item.

deal (Deal)

The deal for the order, if any.

external_id (ExternalID)

The unique identifier of this order in a customer's system.

field (Field)

The field associated with this order.

missing_settings (Boolean!)
Deprecation notice

Replaced with needs_settings

Is this order missing the settings necessary to begin processing an order?

needs_settings (Boolean!)

Does this order need settings that are required to begin processing?

organization (Organization!)

The organization in which this order was placed.

organization_sentera_id (ID)
Deprecation notice

Use organization instead

The ID of the organization in which this order was placed.

product (Product!)

The product that this order will fulfill.

product_variant_key (ProductVariantKey)

The specific variant of the product that was ordered.

sentera_id (ID!)

A system-generated key identifying a specific instance of an order.

settings (ProductSettings)

The product settings for this order.

status (OrderStatus!)

The status of the order.

survey (Survey)

The survey containing the images to fulfill this order.

task (FlightTask)

A task to capture the images for this order.

updated_at (ISO8601DateTime!)

The timestamp of when the item was last updated in the system.

updated_by (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 GraphiQL
mutation 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"
    }
  }
  }
}