Line 3: | Line 3: | ||
==Introduction== | ==Introduction== | ||
− | ReportTimeInFocus request now accepts MediaType in payload. The property name is "mediaType". The valid value is any string which should be transferred as-is to Interaction Server. This property is optional. | + | The '''ReportTimeInFocus''' request now accepts MediaType in payload. The property name is "mediaType". The valid value is any string which should be transferred as-is to Interaction Server. This property is optional. |
<source lang="text"> | <source lang="text"> | ||
POST /api/v2/me/interactions/{interactionId} | POST /api/v2/me/interactions/{interactionId} |
Revision as of 16:28, June 16, 2020
GWS Report Time In Focus
Introduction
The ReportTimeInFocus request now accepts MediaType in payload. The property name is "mediaType". The valid value is any string which should be transferred as-is to Interaction Server. This property is optional.
POST /api/v2/me/interactions/{interactionId}
{
"operationName": "ReportTimeInFocus",
"timeInFocus": 7,
"mediaType": "chat"
}
Overview
With this request, the agent will report the time spent working directly or indirectly on the interaction.
|
/api/v2/me/interactions/{interactionId} |
|
POST |
|
api-multimedia |
Parameters
|
|
operationName |
ReportTimeInFocus |
timeInFocus |
Integer. The time that the agent spent working directly or indirectly on the interaction. |
mediaType |
String. Optional. Media type of the interaction being reported. May be provided to hint Interaction Server Proxy to deliver the event to one of the Interaction Server(s) that has the corresponding media configured. |
The request involves sending a JSON body as well as adhering to the URL path listed above:
POST api/v2/me/00013aCVMEKU0013
Listed below is the possible valid JSON for request:
{
"operationName": "ReportTimeInFocus",
"timeInFocus": 7,
"mediaType": "chat"
}
Response
The response consists of an HTTP response.
HTTP response
{
"statusCode": 0,
}