Skip to content

List waiting tasks#

List all waiting Tasks.

Query#

POST /api/v0/query

Request Body Example#

List 15 waiting tasks, sorted by flag and startDate.

{
  "query": [
    {
      "_name": "waitingTasks"
    },
    {
      "_name": "sort",
      "_fields": [
          {
            "flag": "desc"
          },
          {
            "startDate": "desc"
          }
        ]
    },
    {
      "_name": "page",
      "from": 0,
      "to": 15
    }
  ]
}

Response#

Status codes#

  • 200: if query is run successfully
  • 401: Authentication error

ResponseBody Example#

[
  {
    "id": "~4264",
    "_id": "~4264",
    "createdBy": "[email protected]",
    "createdAt": 1630684502715,
    "_type": "case_task",
    "title": "Malware analysis",
    "group": "identification",
    "description": "Analysis of the file to identify the malware",
    "owner": "[email protected]",
    "status": "Waiting",
    "flag": false,
    "startDate": 1630683608000,
    "endDate": 1630684608000,
    "order": 3,
    "dueDate": 1630694608000
  },
  {
    "id": "~8360",
    "_id": "~8360",
    "createdBy": "[email protected]",
    "updatedBy": "[email protected]",
    "createdAt": 1630687291729,
    "updatedAt": 1630687323936,
    "_type": "case_task",
    "title": "Block malware URLs in proxy",
    "group": "containment",
    "description": "Add identified malicious URLs in proxy black list",
    "status": "Waiting",
    "flag": false,
    "order": 0
  }
{
  "type": "AuthenticationError",
  "message": "Authentication failure"
}

Last update: November 16, 2021 19:54:34