Get Ticket Log

All API requests should contain authorization headers.

Request

POST /tickets/{ticketId}/log

Query Parameters.

NameTypeRequiredComments

ticketId

integer

yes

Id of ticket you want to receive

take

integer

no

Max ammount of tickets shown in results. Max value is 50. default: 25

skip

integer

no

Amount of tickets should be skipped from the result

Request Body

{
    "action_types": [
        "ticket_status_changed",
        "ticket_read"
    ]
}

Body of request should contain the following model serialized to JSON.

FieldTypeComments

action_types

array of Ticket action type enumeration values

Action types needed to be added to results. If empty, all action types are returned

Response

{
    "data": [
        {
            "actionString": "leste saken",
            "actionType": "ticket_read",
            "includedItems": {
                "categories": [],
                "tags": [],
                "users": []
            },
            "user": {
                "id": "7ada8318-adf9-46d1-97ff-81aee80a8415",
                "image": null,
                "name": "Anton Checkhov",
                "email": "Anton@Checkhov.com",
                "status": "team",
                "isBot": false
            },
            "time": "2022-10-28T12:41:36.6267804+00:00"
        },
        {
            "actionString": "endret sakens status fra \"På vent\" til \"Åpen\"",
            "actionType": "ticket_status_changed",
            "includedItems": {
                "categories": [],
                "tags": [],
                "users": []
            },
            "user": {
                "id": "7ada8318-adf9-46d1-97ff-81aee80a8415",
                "image": null,
                "name": "Anton Checkhov",
                "email": "Anton@Checkhov.com",
                "status": "team",
                "isBot": false
            },
            "time": "2022-09-27T23:05:58.7768791+00:00"
        }
    ],
    "errorCode": -1,
    "errorText": null
}

Data field will contain array of an Ticket Log models.

Last updated