delete_crop_seasons

Delete one or more crop seasons for a field.

Input fields

field_sentera_id (ID!)

Sentera ID of the field that contains crop seasons to delete.

sentera_ids ([ID!]!)

Sentera IDs of the crop seasons to delete. Limit to a maximum of 1000.

Return fields

action (UpsertActionType!)

Determines if it was a create or update.

active (Boolean!)

Indicator of whether or not this crop season is currently active.

crop_type (CropType!)

The type of crop planted during this season

ended_at (ISO8601DateTime)

The date and time when this season ended.

field_activities ([FieldActivity!]!)

All the things that happened during this growing season to the parent field.

Argument Type Description
activity_type ActivityType

Filter the results by activity type.

name (String!)

Crop Season name.

sentera_id (ID!)

A system-generated key identifying a specific instance of a crop season

started_at (ISO8601DateTime!)

The date and time when this season started.

Examples

Delete Crop Seasons

Deletes a list of specified crop seasons for a given field.

Try this example in GraphiQL
mutation DeleteCropSeasons {
  delete_crop_seasons(
    field_sentera_id: "9rw1zd4_AS_t85tAcme_CV_deve_ac8dc2952_211228_100407",
    sentera_ids: [
      "1wgqe5k_CS_f5kyAcme_CV_deve_8c5269414_220317_132613",
      "1wgqe5k_CS_f5kyAcme_CV_deve_8c5269414_220317_132614",
      "1wgqe5k_CS_f5kyAcme_CV_deve_8c5269414_220317_132615"
    ]
  ) {
    sentera_id
    name
  }
}

{
  "data": {
    "delete_crop_seasons": [
      {
        "sentera_id": "1wgqe5k_CS_f5kyAcme_CV_deve_8c5269414_220317_132613",
        "name": "Crop Season 1"
      },
      {
        "sentera_id": "1wgqe5k_CS_f5kyAcme_CV_deve_8c5269414_220317_132614",
        "name": "Crop Season 2"
      },
      {
        "sentera_id": "1wgqe5k_CS_f5kyAcme_CV_deve_8c5269414_220317_132615",
        "name": "Crop Season 3"
      }
    ]
  }
}