Skip to main content

GET - List of task execution info

List of task execution

Request

  • Method: GET
  • Endpoint: /task-executions/info
  • Base URL: https://api.targpatrol.com/api/v1
  • Operation ID: list-of-task-execution-info

Authorization

This endpoint requires an external API key.

x-api-key: {your_external_api_key}

Parameters

NameInRequiredSchemaDescription
limitquerynointegerinclude first N items of a resource collection
offsetquerynonumberexclude first N items of a resource collection
sortquerynostringsort items in a resource collection
qquerynostringThis parameter is used for quick search across text fields.
startAtquerynostringfilter by start at
endAtquerynostringfilter by end at
namequerynostringfilter by name
priorityquerynostringfilter by priority
userIdquerynostringfilter by user ids
statequerynostringfilter by state
locationIdquerynostringfilter by location ids
pointIdquerynostringfilter by point ids
withDateIntersectionquerynobooleanadd date intersections
includeOpenTasksquerynobooleaninclude open tasks
tagsquerynostringfilter by tags
statusquerynostringfilter by status
publishedquerynobooleanfilter by published

Responses

200 OK

Content-Type: application/json Schema: object

Schema
{
"allOf": [
{
"$ref": "#/components/schemas/PageResponse"
},
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TaskExecutionInfoResponse"
}
}
}
}
]
}

Example: example-1

{
"data": [
{
"id": "e30fc67c-f946-414a-b4f9-423eabb90534",
"scheduledTaskId": "d6f4c4ff-f402-45b2-b7d7-b009fd16e44d",
"locationId": "44e089c2-e9ae-469b-9f6b-8be71a47cac6",
"performerId": "8fa4464d-5c26-49a2-934c-84226ec83caa",
"performerHistoryId": 20,
"assigneeIds": [
"3467d855-5478-41a9-b192-5e41b9cbd87d",
"f3e03f65-d557-405d-ac89-a4d3054b8578"
],
"name": "Task 1",
"state": "IN_PROGRESS",
"status": "SUCCESS",
"startAt": "2023-03-07T05:00:00.000Z",
"endAt": "2023-03-07T10:00:00.000Z",
"startedAt": "2023-03-07T05:00:00.000Z",
"endedAt": "2023-03-07T10:00:00.000Z",
"errorCount": 0,
"warningCount": 0,
"priority": "NORMAL",
"seriesId": null,
"deadlined": false,
"published": true,
"edited": false,
"deleted": false,
"stepCount": 10,
"executedStepCount": 3,
"tags": [
"tag-1",
"tag-2"
]
}
],
"meta": {
"offset": 0,
"limit": 1,
"count": 1000,
"sort": [
{
"property": "id",
"direction": "asc"
}
]
},
"filter": [
{
"property": "name",
"value": "Task1"
}
]
}

401 Unauthorized

500 Internal Server Error

Content-Type: application/json Schema: ErrorResponse

Schema
{
"$ref": "#/components/schemas/ErrorResponse"
}

Example: example-1

{
"message": "internal server error",
"code": "internal.server.error",
"timestamp": "2023-03-07T05:57:59.315Z"
}