(HTCC-28166) |
|||
Line 6: | Line 6: | ||
{| | {| | ||
! Request URL | ! Request URL | ||
− | | /api/v2/workbins | + | | /api/v2/workbins |
|- | |- | ||
! HTTP Method | ! HTTP Method | ||
Line 232: | Line 232: | ||
</pre> | </pre> | ||
==Request Agent Workbins Stats by User== | ==Request Agent Workbins Stats by User== | ||
+ | Users can request statistics for a specific workbin for an agent. | ||
+ | {| | ||
+ | |- | ||
+ | | Request URL | ||
+ | | /api/v2/users/{userId}/workbins | ||
+ | |- | ||
+ | | HTTP Method | ||
+ | | POST | ||
+ | |- | ||
+ | | Required Features | ||
+ | | api-multimedia | ||
+ | |} | ||
===Parameters=== | ===Parameters=== | ||
{| | {| |
Revision as of 12:35, October 30, 2017
RequestAgentStats
This operation is part of the Workbins API section of the Web Services API.
Overview
Users can request statistics for a specific workbin for an agent.
Request URL | /api/v2/workbins |
---|---|
HTTP Method | POST |
Required Features | api-multimedia |
Request Agent Workbins Stats
Parameters
Parameter | Value |
---|---|
operationName | RequestAgentStats |
Sample
The request involves sending a JSON body as well as adhering to the url path listed above.
Request
POST api/v2/workbins { "operationName": "RequestAgentStats" }
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.
HTTP response
{ "statusCode": 0, "referenceId": 1 }
CometD Responses
{ "workbinStats":{ "bf839abe-81de-4e30-9fa7-f7b8ec0d6415":{ "Count":1, "Owner":"28383e5523c7479cae4afa8df88d66df", "Type":"Agent" } }, "messageType": "WorkbinStatsMessage", "referenceId": 1 }
Request Place Workbins Stats
Parameters
Parameter | Value |
---|---|
operationName | RequestAgentStats |
workbinType | Place |
workbinOwner | place name |
Sample
The request involves sending a JSON body as well as adhering to the url path listed above.
Request
POST api/v2/workbins { "operationName": "RequestAgentStats", "workbinType": "Place", "workbinOwner": "Place1", }
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.
HTTP response
{ "statusCode": 0, "referenceId": 2 }
CometD Responses
{ "workbinStats":{ "861640a2-154e-4025-8e4f-49b74f805b6d":{ "Count":1, "Owner":"Place1", "Type":"Place" } }, "messageType": "WorkbinStatsMessage", "referenceId": 2 }
Request Agent Group Workbins Stats
Parameters
Parameter | Value |
---|---|
operationName | RequestAgentStats |
workbinType | AgentGroup |
workbinOwner | agent group name |
Sample
The request involves sending a JSON body as well as adhering to the url path listed above.
Request
POST api/v2/workbins { "operationName": "RequestAgentStats", "workbinType": "AgentGroup", "workbinOwner": "ServiceAgentGroup", }
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.
HTTP response
{ "statusCode": 0, "referenceId": 3 }
CometD Responses
{ "workbinStats":{ "39ac7955-8f82-4610-8090-7a6905a18073":{ "Count":1, "Owner":"ServiceAgentGroup", "Type":"AgentGroup" } }, "messageType": "WorkbinStatsMessage", "referenceId": 3 }
Request Place Group Workbins Stats
Parameters
Parameter | Value |
---|---|
operationName | RequestAgentStats |
workbinType | PlaceGroup |
workbinOwner | place group name |
Sample
The request involves sending a JSON body as well as adhering to the url path listed above.
Request
POST api/v2/workbins { "operationName": "RequestAgentStats", "workbinType": "PlaceGroup", "workbinOwner": "ServicePlaceGroup", }
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.
HTTP response
{ "statusCode": 0, "referenceId": 4 }
CometD Responses
{ "workbinStats":{ "b28f9314-0a0d-451d-9a9a-45588dcc38c1":{ "Count":1, "Owner":"ServicePlaceGroup", "Type":"PlaceGroup" } }, "messageType": "WorkbinStatsMessage", "referenceId": 4 }
Request Agent Workbins Stats by User
Users can request statistics for a specific workbin for an agent.
Request URL | /api/v2/users/{userId}/workbins |
HTTP Method | POST |
Required Features | api-multimedia |
Parameters
Parameter | Value |
---|---|
operationName | RequestAgentStats |
Sample
The request involves sending a JSON body as well as adhering to the url path listed above.
Request
POST api/v2/users/28383e5523c7479cae4afa8df88d66df/workbins { "operationName": "RequestAgentStats" }
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.
HTTP response
{ "statusCode": 0, "referenceId": 5 }
CometD Responses
{ "workbinStats":{ "bf839abe-81de-4e30-9fa7-f7b8ec0d6415":{ "Count":1, "Owner":"28383e5523c7479cae4afa8df88d66df", "Type":"Agent" } }, "messageType": "WorkbinStatsMessage", "referenceId": 5 }