Skip to content

List task logs#

List Task logs of a Case.

Query#

POST /api/v1/query?name=case-task-logs

Request Body Example#

{
    "query":[{
        "_name":"getTask",
        "idOrName":"id"
    },
    {
        "_name":"logs"
    },
    {
        "_name":"sort",
        "_fields":[{
            "date":"desc"
            }]
    },
    {
        "_name":"page",
        "from":0,
        "to":10,
        "extraData":["actionCount"]
    }]
}

Response#

Status codes#

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

ResponseBody Example#

[
    {
        "_id":"~1421384",
        "_type":"Log",
        "_createdBy":"analyst@soc",
        "_createdAt":1637090593968,
        "message":"42",
        "date":1637090593968,
        "owner":"analyst@soc",
        "extraData":{"actionCount":0}
    },
    {
        "_id":"~1429680",
        "_type":"Log",
        "_createdBy":"analyst@soc",
        "_createdAt":1637090578809,
        "message":"test sample",
        "date":1637090578809,
        "owner":"analyst@soc",
        "extraData":{"actionCount":0}
    }
]
{
  "type": "AuthenticationError",
  "message": "Authentication failure"
}

Last update: October 13, 2023 07:01:35