create_kernel_count_activity
Create a kernel count activity for a crop season.
Input fields
ISO8601DateTime!)
The Date and Time at which this activity occurred.
ID!)
The ID of the Crop Season in which this activity occurred.
ExternalReference)
A reference to the external system from which the kernel count activity is sourced.
[KernelCount!]!)
The kernel count data.
Return fields
Float!)
Please use the application_area field.
The number of acres to which this activity was applied.
UpsertActionType!)
Determines if it was a create or update.
ActivityType!)
The concrete object FieldActivity has been converted into an interface.
The type of activity this record represents.
Area!)
The area to which this activity was applied.
| Argument | Type | Description |
|---|---|---|
unit |
AreaUnitType
|
The unit in which a client would like the area. |
unit_system |
UnitSystem
|
The unit system in which a client would like the area. Defaults to IMPERIAL if not provided. |
ISO8601DateTime)
The date and time when this field activity took place.
Float!)
The average rate, in units, at which this activity was applied.
ISO8601DateTime!)
The timestamp of when the item was created in the system.
User!)
The user who created this item.
JSON)
Please use the specific fields on the concrete types such as PlantActivity.
Extra information about this field activity.
String)
The id of the record in the external partner's system.
ExternalPartner)
The external partner from which this record was sourced.
FeatureSetsQueryResult!)
A list of feature sets associated with this activity.
| Argument | Type | Description |
|---|---|---|
order_by |
FeatureSetSortingAttributes
|
Order the results by a specific attribute. |
order_by_direction |
SortDirection
|
Direction (ascending or descending) of the ordered results. |
pagination |
Pagination
|
Paginate the results. |
type |
FeatureSetType
|
Filter the results by feature set type. |
[KernelCountDetails!]!)
Kernel Count Data
FeatureSetOwnerType!)
Type of the feature set owner
String)
The name of the product that was applied to the field during this activity.
ID!)
A system-generated key identifying a specific instance of a field activity.
AverageRateType!)
The type of unit represented by the rate field.
ISO8601DateTime!)
The timestamp of when the item was last updated in the system.
User)
The user who last updated this item.
Examples
Create Kernel Count Activity
Creates a 'kernel_count' field activity for a field within the current user's organization.
Try this example in GraphiQLmutation CreateKernelCountActivity {
create_kernel_count_activity(
crop_season_sentera_id: "ckt4dsq_CS_SHORT1_CV_test_18ae300d0_200210_142842"
applied_at: "2020-05-05T10:00:00Z"
kernel_counts: [
{
position: {
latitude: 45.002,
longitude: 18.231
},
ears: [
{
rows: 50,
kernels_per_row: 25
}
]
}
]
) {
sentera_id
applied_at
... on KernelCountActivity {
kernel_counts {
latitude
longitude
ears {
kernels_per_row
rows
}
}
}
}
}
{
"data": {
"create_kernel_count_activity": {
"sentera_id": "osu5t9n_FA_SHORT1_CV_test_18ae300d0_200210_143838",
"applied_at": "2020-05-05T10:00:00Z",
"kernel_counts": [
{
"latitude": 45.002,
"longitude": 18.231,
"ears": [
{
"rows": 50,
"kernels_per_row": 25
}
]
}
]
}
}
}