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":"[email protected]",
        "_createdAt":1637090593968,
        "message":"42",
        "date":1637090593968,
        "owner":"[email protected]",
        "extraData":{"actionCount":0}
    },
    {
        "_id":"~1429680",
        "_type":"Log",
        "_createdBy":"[email protected]",
        "_createdAt":1637090578809,
        "message":"test sample",
        "date":1637090578809,
        "owner":"[email protected]",
        "extraData":{"actionCount":0}
    }
]
{
  "type": "AuthenticationError",
  "message": "Authentication failure"
}

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