(→AgentStateAfterCallWork) |
|||
Line 1: | Line 1: | ||
=After Call Work= | =After Call Work= | ||
+ | __NOTOC__ | ||
+ | Overview | ||
+ | |||
+ | This request sets the current user to the NotReady state with a workmode of AfterCallWork. AfterCallWorkis a system defined agent state operation and is always available for use. | ||
+ | {| | ||
+ | ! Request URL | ||
+ | | /api/v2/me/calls/{id} | ||
+ | |- | ||
+ | ! HTTP Method | ||
+ | | POST | ||
+ | |- | ||
+ | ! Required Features | ||
+ | | api-voice | ||
+ | |} | ||
+ | |||
+ | |||
+ | ==Parameters== | ||
+ | {| | ||
+ | ! Parameter | ||
+ | ! Value | ||
+ | |- | ||
+ | | operationName | ||
+ | | AfterCallWork | ||
+ | |} | ||
+ | |||
+ | ==Sample== | ||
+ | |||
+ | ===Request=== | ||
+ | <pre> | ||
+ | POST api/v2/me/channels/voice | ||
+ | { | ||
+ | "operationName": "AfterCallWork" | ||
+ | } | ||
+ | </pre> | ||
+ | ===Response=== | ||
+ | <pre> | ||
+ | { | ||
+ | "statusCode": 0 | ||
+ | } | ||
+ | </pre> | ||
+ | ===Notification=== | ||
+ | <pre> | ||
+ | { | ||
+ | "data": { | ||
+ | "messageType": "DeviceStateChangeMessage", | ||
+ | "devices": [ | ||
+ | { | ||
+ | "id": "74152ed8-858f-4a33-9e96-36213a678d30", | ||
+ | "deviceState": "Active", | ||
+ | "userState": { | ||
+ | "id": "D3663509-3D82-4DD3-A82E-2EA8EFA02AEF", | ||
+ | "displayName": "AfterCallWork", | ||
+ | "state": "NotReady", | ||
+ | "workMode": "AfterCallWork" | ||
+ | }, | ||
+ | "phoneNumber": "5000", | ||
+ | "e164Number": "5000", | ||
+ | "telephonyNetwork": "Private", | ||
+ | "doNotDisturb": "Off", | ||
+ | "voiceEnvironmentUri": "http://127.0.0.1:8080/api/v2/voice-environments/370ef5e6-9e3c-4d91-9588-7f4dfe67e011", | ||
+ | "capabilities": [ | ||
+ | "ForwardCallsOn", | ||
+ | "DoNotDisturbOn" | ||
+ | ] | ||
+ | } | ||
+ | ] | ||
+ | }, | ||
+ | "channel": "/v2/me/devices" | ||
+ | } | ||
+ | </pre> | ||
[[Category:V:HTCC:8.5.2]] | [[Category:V:HTCC:8.5.2]] |
Revision as of 20:27, April 7, 2014
After Call Work
Overview
This request sets the current user to the NotReady state with a workmode of AfterCallWork. AfterCallWorkis a system defined agent state operation and is always available for use.
Request URL | /api/v2/me/calls/{id} |
---|---|
HTTP Method | POST |
Required Features | api-voice |
Parameters
Parameter | Value |
---|---|
operationName | AfterCallWork |
Sample
Request
POST api/v2/me/channels/voice { "operationName": "AfterCallWork" }
Response
{ "statusCode": 0 }
Notification
{ "data": { "messageType": "DeviceStateChangeMessage", "devices": [ { "id": "74152ed8-858f-4a33-9e96-36213a678d30", "deviceState": "Active", "userState": { "id": "D3663509-3D82-4DD3-A82E-2EA8EFA02AEF", "displayName": "AfterCallWork", "state": "NotReady", "workMode": "AfterCallWork" }, "phoneNumber": "5000", "e164Number": "5000", "telephonyNetwork": "Private", "doNotDisturb": "Off", "voiceEnvironmentUri": "http://127.0.0.1:8080/api/v2/voice-environments/370ef5e6-9e3c-4d91-9588-7f4dfe67e011", "capabilities": [ "ForwardCallsOn", "DoNotDisturbOn" ] } ] }, "channel": "/v2/me/devices" }
Comments or questions about this documentation? Contact us for support!