Get the first Job's Task matching the query and return the data optionally modified by the filter.
Route
POST /workflow_engine/getTask
Roles
adminapiread
Parameters
DetailsExampleSchema
Name
Type
Required
Description
query
object
yes
An object of property names and values to use in the query against the tasks collection. The property name must exist in the tasks collection. There must be at least 1 field you query upon.
filter
object
yes
Filter specifying which fields are returned. The structure of each property must conform to 'fieldName': 1. Eg. name:1 will return the name field
Copied to Clipboard
{
"query": {
"someFieldName": "Some Value to query the against the someFieldName property"
},
"filter": {
"name": 1
}
}