Get on hold tickets count
GET {{baseUrl}}/api/v1/dashboards/onholdTickets?groupBy=<string> max chars : 100&duration=<String>
This API fetches the number of tickets that are in the on hold status.
OAuth Scope
Desk.tickets.READ
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
groupBy | string | Key that groups the ticket count according to a particular attribute.This value can be date channel agent | |
departmentId | string | ID(s) of the department(s) from which the stats must be fetched | |
agentId | string | ID(s) of the agent(s) whose stats must be fetched | |
teamId | string | ID(s) of the team(s) from which the stats must be fetched | |
duration | string | Predefined time range from which the stats must be fetched | |
startDate | string | Starting date for defining custom time range | |
endDate | string | Ending date for defining custom time range | |
channel | string | Channel through which the tickets were received |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"totalTicketCount":"1","avg":"0.1","ticketCount":[{"count":"0","value":"2018-04-01","referenceValue":null},{"count":"0","value":"2018-04-02","referenceValue":null},{"count":"0","value":"2018-04-03","referenceValue":null},{"count":"0","value":"2018-04-04","referenceValue":null},{"count":"0","value":"2018-04-05","referenceValue":null},{"count":"1","value":"2018-04-06","referenceValue":null},{"count":"0","value":"2018-04-07","referenceValue":null}],"groupedBy":"date"}