delete_crop_seasons
Delete one or more crop seasons for a field.
Input fields
ID!)
Sentera ID of the field that contains crop seasons to delete.
[ID!]!)
Sentera IDs of the crop seasons to delete. Limit to a maximum of 1000.
Return fields
UpsertActionType!)
Determines if it was a create or update.
Boolean!)
Indicator of whether or not this crop season is currently active.
CropType!)
The type of crop planted during this season
ISO8601DateTime)
The date and time when this season ended.
[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. |
String!)
Crop Season name.
ID!)
A system-generated key identifying a specific instance of a crop season
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 GraphiQLmutation 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"
}
]
}
}