delete_fields

Delete one or more fields.

Input fields

organization_sentera_id (ID!)

Sentera ID of the organization that owns the field you want to delete.

sentera_ids ([ID!]!)

Sentera IDs of the fields to delete. Limited to a maximum of 100 IDs.

Return fields

acres (Float!)
Deprecation notice

Support added for retrieving area in metric units. Please use area instead.

The acres of the boundary of the field.

action (UpsertActionType!)

Determines if it was a create or update.

active (Boolean!)

Indicator of whether or not this field is currently active.

address (String)

Field address.

alerts (AlertsQueryResult!)

A list of alerts associated with this field.

Argument Type Description
apply_user_preferences_filter Boolean

Filter the alerts according to a user's notification delivery preferences.

pagination Pagination

Paginate the results.

status AlertStatusType

Filter the alerts by status.

area (Area!)

The area of the boundary of the field in the specified unit system.

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.

bbox ([Float!]!)

A simple (w, s, e, n) box that represents the extreme coordinates of the field's boundary.

boundary (GeoJSON!)

A GeoJson FeatureCollection that includes a MultiPolygon representing the field boundary.

city (String)

Field city.

content_hash (String!)

The current content hash for this item.

country_code (String)

Field country code (ISO 3166-1).

county (String)

Field county.

created_at (ISO8601DateTime!)

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

created_by (User!)

The user who created this item.

crop_season_years ([Int!]!)

The years that crop seasons were planted on this field.

crop_seasons ([CropSeason!]!)

A list of crop seasons associated with this field.

Argument Type Description
active Boolean

Limit crop seasons based on if they are active or not.

crop_type CropType

Limit crop seasons by crop type.

distance_from_origin (Float)

The distance in miles from an origin geo-position of this field. Only available when using the haversine radius query input; null otherwise.

external_connection (ExternalCredential)
Deprecation notice

Please use the external_id and external_partner fields.

The external connection that this field is linked to.

external_id (String)

The id of the field in the external partner's system.

external_partner (ExternalPartner)

The external partner the field was imported from.

farm (String)

Field farm name

feature_sets (FeatureSetsQueryResult!)

A list of feature sets for this field.

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.

field_boundary ([GeoPosition]!)
Deprecation notice

Please use the boundary GeoJSON field.

A closed collection of geo-positions representing the field boundary.

files (FilesQueryResult!)

A list of files associated with this field.

Argument Type Description
date_range DateRange

Filter the results by a date range.

order_by FileSortingAttributes

Order the results by a specific attribute.

order_by_direction SortDirection

Direction (ascending or descending) of the ordered results.

pagination Pagination

Paginate the results.

grower (String)

Field grower name.

latitude (Float!)

The latitude value for the center of the field.

longitude (Float!)

The longitude value for the center of the field.

name (String!)

Field name.

organization (Organization!)

The organization associated with this field.

owner_type (FeatureSetOwnerType!)

Type of the feature set owner

sentera_id (ID!)

ID of the feature set owner

shapes (ShapesQueryResult!)

A list of shapes associated with this field.

Argument Type Description
date_range DateRange

Filter the results by date range

order_by ShapeSortingAttributes

Order the results by a specific attribute.

order_by_direction SortDirection

Direction (ascending or descending) of the ordered results.

pagination Pagination

Paginate the results.

shared (Boolean!)

Indicates if this field has been shared from another account.

state (String)

Field state/province/region code (ISO 3166-2).

surveys (SurveysQueryResult!)

A list of surveys associated with this field..

Argument Type Description
date_range DateRange

Filter the results by date range.

order_by SurveySortingAttributes

Order the results by a specific attribute.

order_by_direction SortDirection

Direction (ascending or descending) of the ordered results.

organization_sentera_id ID

List surveys for this organization.

pagination Pagination

Paginate the results.

tasks (TasksQueryResult!)

A list of tasks associated with this field.

Argument Type Description
assigned_to ID

Filter tasks by the "assigned to" user. Specify null to retrieve unassigned tasks.

created_by ID

Filter tasks by the user that created them. Can be used to list tasks you created.

pagination Pagination!

Paginate the results.

status TaskStatus

Filter tasks by status.

statuses [TaskStatus!]

Filter tasks by one or more statuses.

task_type TaskType

Filter tasks by their type.

time_zone (String!)

The time zone of the field. Zone names are from the "TZ database name" column from https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List.

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.

years_planted ([Int!]!)

The years that this field was planted.

zip_code (String)

Field zip code.

Examples

Delete Fields

Deletes one or more fields for a given Organization

Try this example in GraphiQL
mutation DeleteFields {
  delete_fields(
  organization_sentera_id: "fkqbg8f_OR_8y24JakeOrgC_CV_deve_1de18e2_200806_133132",
  sentera_ids: ["rfo1rl3_AS_gnkwJakeOrg_CV_deve_be7772e1_181121_140430"]
  ) {
  sentera_id
  name
  }
}

{
  "data": {
  "delete_fields": [
    {
      "sentera_id": "rfo1rl3_AS_gnkwJakeOrg_CV_deve_be7772e1_181121_140430",
      "name": "Updated Name"
    }
  ]
  }
}