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
| Name | In | Required | Schema | Description |
|---|---|---|---|---|
limit | query | no | integer | include first N items of a resource collection |
offset | query | no | number | exclude first N items of a resource collection |
sort | query | no | string | sort items in a resource collection |
q | query | no | string | This parameter is used for quick search across text fields. |
startAt | query | no | string | filter by start at |
endAt | query | no | string | filter by end at |
name | query | no | string | filter by name |
priority | query | no | string | filter by priority |
userId | query | no | string | filter by user ids |
state | query | no | string | filter by state |
locationId | query | no | string | filter by location ids |
pointId | query | no | string | filter by point ids |
withDateIntersection | query | no | boolean | add date intersections |
includeOpenTasks | query | no | boolean | include open tasks |
tags | query | no | string | filter by tags |
status | query | no | string | filter by status |
published | query | no | boolean | filter 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"
}