task
Retrieve a task.
Arguments
ID!)
The ID of the task being retrieved.
Return fields
User)
The user that is assigned to this task.
ISO8601DateTime)
Date and time of when the task was canceled, in ISO 8601 format.
ISO8601DateTime)
Date and time of when the task was completed, in ISO 8601 format.
User)
The user that completed this task.
[Contact!]!)
The contacts for a given flight task.
ISO8601DateTime!)
The date and time that this task was created.
User!)
The user that that requested this task.
ISO8601DateTime)
Please use targeted_at instead.
Date and time of when the task needs to be performed, in ISO 8601 format.
Field)
The field associated with this task.
[FieldActivity!]!)
All the activities on this field that were the result of this task.
| Argument | Type | Description |
|---|---|---|
activity_type |
ActivityType
|
Filter the results by activity type. |
String!)
The name of this task.
String)
Optional notes offering details about the task.
Organization)
The organization in which this task was created.
ID)
A system-generated key identifying the organization to which this task belongs.
FeatureSet)
A feature set with the geometry that should be used to perform this task.
TaskProvider!)
The provider of flight services for this task. A value of SELF means that the customer is providing the flight services themselves.
ISO8601DateTime)
Date and time of when the task was scheduled to be performed, in ISO 8601 format.
ID!)
A system-generated key identifying a specific instance of a task.
ISO8601DateTime)
Date and time of when the task was started, in ISO 8601 format.
TaskStatus!)
The status of this task.
Survey)
A survey that is the result of performing this task.
ISO8601DateTime)
Date and time of when the task was targeted to be performed, in ISO 8601 format.
TaskType!)
The concrete object Task has been converted into an interface.
The type of task to be performed.
User)
The user that last modified this task.
Examples
Flight Task by Sentera ID
Retrieve a flight task
Try this example in GraphiQLquery TaskBySenteraID {
task(sentera_id: "dfe2m77_TA_SHORT1_CV_test_db0cedc1_190124_154249") {
... on FlightTask {
sentera_id
field {
sentera_id
}
status
name
targeted_at
scheduled_at
assigned_to {
sentera_id
first_name
last_name
email
organization {
sentera_id
name
}
}
created_by {
sentera_id
first_name
last_name
email
organization {
sentera_id
name
}
}
created_at
}
}
}
{
"data": {
"task": {
"sentera_id": "dfe2m77_TA_SHORT1_CV_test_db0cedc1_190124_154249",
"field": {
"sentera_id": "q1xgn9n_AS_SHORT1_CV_test_54364c66_190124_151245"
},
"status": "OPEN",
"name": "example task",
"targeted_at": "2022-02-19T17:37:09Z",
"scheduled_at": "2022-02-20T17:37:09Z",
"assigned_to": {
"sentera_id": "u2q30iq_US_SHORT1_CV_test_54364c66_190124_151242",
"first_name": "Bill",
"last_name": "Smith",
"email": "bill.smith@example.com",
"organization": {
"sentera_id": "2rulk8i_OR_SHORT1_CV_test_54364c66_190124_151242",
"name": "Acme Drones"
}
},
"created_by": {
"sentera_id": "u2q30iq_US_SHORT1_CV_test_54364c66_190124_151242",
"first_name": "Joe",
"last_name": "Carlson",
"email": "joe.carlson@example.com",
"organization": {
"sentera_id": "2rulk8i_OR_SHORT1_CV_test_54364c66_190124_151242",
"name": "Acme Drones"
}
},
"created_at": "2022-02-12T17:37:09Z"
}
}
}