Jump to: navigation, search
(HTCC-28166)
 
Line 4: Line 4:
 
==Overview==
 
==Overview==
 
Agents can request statistics for a workbin.
 
Agents can request statistics for a workbin.
 
==Parameters==
 
 
{|
 
{|
 
! Request URL
 
! Request URL
Line 15: Line 13:
 
! Required Features
 
! Required Features
 
| api-multimedia
 
| api-multimedia
 +
|}
 +
 +
==Parameters==
 +
{|
 
|-
 
|-
 
!operationName
 
!operationName
Line 34: Line 36:
  
 
===Response===
 
===Response===
The response consists of an HTTP response, and several cometd responses. For details on the JSON body result, please refer to the Workbin Resource reference.
+
The response consists of an HTTP response and a CometD response. For details on the JSON body result, please refer to the Workbin Resource reference.
  
 
'''HTTP response'''
 
'''HTTP response'''

Revision as of 05:13, November 1, 2017

RequestStats

This operation is part of the Workbins API section of the Web Services API.

Overview

Agents can request statistics for a workbin.

Request URL /api/v2/workbins/{id}
HTTP Method POST
Required Features api-multimedia

Parameters

operationName RequestStats

Sample

The request involves sending a JSON body as well as adhering to the url path listed above.

Request

POST api/v2/workbins/6c715fa9-de16-4d23-b07c-cbcb1caf3e07
{
    "operationName": "RequestStats"
}


Response

The response consists of an HTTP response and a CometD response. For details on the JSON body result, please refer to the Workbin Resource reference.

HTTP response

 {
    "statusCode": 0,
    "referenceId": 7
 }

CometD Responses


 {  
    "workbinStats":{  
       "abc2ad1b26ea4e9b8dd907eabe1672e4":{  
          "MaxMovedToQueueAt":"2017-09-12T18:05:40Z",
          "MinMovedToQueueAt":"2017-09-12T18:05:40Z",
          "NumberOfInteractions":1
       }
    },
    "id":"6c715fa9-de16-4d23-b07c-cbcb1caf3e07",
    "workbinType":"Agent",
    "messageType": "WorkbinStatsMessage",
    "referenceId": 7
 }
Comments or questions about this documentation? Contact us for support!