create_crop_season

Create a crop season for a field.

Input fields

crop_type (CropType!)

The type of crop being planted during this season.

ended_at (ISO8601DateTime)

The end date for this Crop Season.

field_sentera_id (ID!)

The ID of the Field to which this Crop Season belongs.

name (String!)

The name of this Crop Season.

started_at (ISO8601DateTime!)

The start date for this Crop Season.

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

Create Crop Season

Creates a crop season for a field within the current user's organization

Try this example in GraphiQL
mutation CreateCropSeason {
  create_crop_season(
  field_sentera_id: "rfo1rl3_AS_gnkwJakeOrg_CV_deve_be7772e1_181121_140430"
  name: "Corn Summer 2020"
  crop_type: CORN
  started_at: "2020-04-01T00:00:00Z"
  ended_at: "2020-10-01T00:00:00Z"
  ) {
  sentera_id
  name
  crop_type
  started_at
  ended_at
  }
}

{
  "data": {
  "create_crop_season": {
    "sentera_id": "o2miljd_CS_s2cmBilling23_CV_stag_bae9392_200206_223021",
    "name": "Corn Summer 2020",
    "crop_type": "CORN",
    "started_at": "2020-04-01T00:00:00Z",
    "ended_at": "2020-10-01T00:00:00Z"
  }
  }
}