delete_surveys

Delete one or more surveys for a field.

Input fields

field_sentera_id (ID!)

Sentera ID of the field that contains surveys to delete.

sentera_ids ([ID!]!)

Sentera IDs of the surveys to delete. Limit to a maximum of 1000.

Return fields

action (UpsertActionType!)

Determines if it was a create or update.

color (String!)

The color that can be used when rendering things like photo dots for this survey. Format is #RRGGBB.

content_hash (String!)

The current content hash for this item.

created_at (ISO8601DateTime!)

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

created_by (User!)

The user who created this item.

end_time (String!)

Timestamp of when the survey was completed. This attribute can be used as the date_attribute_name in a date_range query.

feature_sets (FeatureSetsQueryResult!)

A list of feature sets associated with this survey.

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 (Field!)

the associated field of this survey.

files (FilesQueryResult!)

A list of files associated with this survey.

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.

image_upload_ended_at (ISO8601DateTime)

The time after which the last source image uploaded and processing was requested. If uploaded multiple times, the time the last upload ended. For surveys that lack source imagery this will be null.

image_upload_started_at (ISO8601DateTime)

The time at which the first source image was uploaded. If uploaded multiple times - the time the last upload started. For surveys that lack source imagery this will be null.

images (ImagesQueryResult!)

A list of images associated with this survey.

Argument Type Description
bounds Bounds

Filter the results using a bounding box.

calculated_index CalculatedIndex

An index such as NDVI or NDRE calculated for this image.

color_applied ColorApplied

The color application (if present) for this image.

date_range DateRange

Filter the results using a date range.

haversine_radius HaversineRadius

Filter the results using a haversine radius.

order_by ImageSortingAttributes

Order the results by a specific attribute.

order_by_direction SortDirection

Direction (ascending or descending) of the ordered results.

pagination Pagination

Paginate the results.

sensor_type SensorType

The type of sensor captured the image.

light_sensor_condition (LightSensorCondition!)

The lighting condition detected by the sensor

message (String)

A message returned for surveys that have failed during processing.

mosaics (MosaicsQueryResult!)

A list of mosaics associated with this survey.

Argument Type Description
mosaic_type MosaicType

Filter the results by mosaic type.

order_by MosaicSortingAttributes

Order the results by a specific attribute.

order_by_direction SortDirection

Direction (ascending or descending) of the ordered results.

pagination Pagination

Paginate the results.

quality MosaicQuality

Filter the results by mosaic quality.

name (String!)

Name of the survey.

notes (String)

Notes pertaining to this survey.

organization (Organization!)

The associated organization.

owner_type (FeatureSetOwnerType!)

Type of the feature set owner

sentera_id (ID!)

A system-generated key identifying a specific instance of a survey.

start_time (String!)

Timestamp when the survey was started. This attribute can be used as the date_attribute_name in a date_range query.

status (SurveyStatus!)

The status of the survey.

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.

Examples

Delete Surveys

Deletes a list of specified surveys for a given field.

Try this example in GraphiQL
mutation DeleteSurveys {
  delete_surveys(
  field_sentera_id: "9rw1zd4_AS_t85tAcme_CV_deve_ac8dc2952_211228_100407",
  sentera_ids: [
    "0r5u5um_CO_3zcuAcme_CV_deve_8b8d05903_220131_162106",
    "0r5u5um_CO_3zcuAcme_CV_deve_8b8d05903_220131_162107",
    "0r5u5um_CO_3zcuAcme_CV_deve_8b8d05903_220131_162108"
  ]
  ) {
  sentera_id
  name
  }
}

{
  "data": {
  "delete_surveys": [
    {
      "sentera_id": "0r5u5um_CO_3zcuAcme_CV_deve_8b8d05903_220131_162106",
      "name": "Survey 1"
    },
    {
      "sentera_id": "0r5u5um_CO_3zcuAcme_CV_deve_8b8d05903_220131_162107",
      "name": "Survey 2"
    },
    {
      "sentera_id": "0r5u5um_CO_3zcuAcme_CV_deve_8b8d05903_220131_162108",
      "name": "Survey 3"
    }
  ]
  }
}