(Created page with "= PullInteractionFromGroupWorkbin= Category:V:HTCC:8.5.2DRAFT") |
|||
Line 1: | Line 1: | ||
− | = | + | = PullInteraction from a Group Workbin= |
+ | This operation is part of the [[Workbins|Workbins API]] section of the [[Welcome|Web Services API]]. | ||
+ | ==Overview== | ||
+ | Removes the association between an interaction and a group workbin. This operation supports AgentGroup and PlaceGroup types. | ||
+ | {| | ||
+ | ! Request URL | ||
+ | | /api/v2/me/workbins/''{id}''?agentGroup=''{agentGroupName}'' | ||
+ | OR<br/> | ||
+ | /api/v2/me/workbins/''{id}''?placeGroup=''{placeGroupName}'' | ||
+ | |- | ||
+ | ! HTTP method | ||
+ | | POST | ||
+ | |- | ||
+ | ! Required features | ||
+ | | api-multimedia | ||
+ | |} | ||
+ | |||
+ | ==Parameters== | ||
+ | {| | ||
+ | ! Parameter | ||
+ | ! Value | ||
+ | |- | ||
+ | | operationName | ||
+ | | PullInteraction. Also valid values are: PullChat, PullEmail, PullWorkitem, PullTweet, PullFacebook, PullFacebooksession and PullOpenmedia. | ||
+ | |- | ||
+ | | id | ||
+ | | The ID of the interaction to remove from the workbin. | ||
+ | |} | ||
+ | |||
+ | ==Sample 1 - Pull an Interaction from an AgentGroup Workbin== | ||
+ | ===Request=== | ||
+ | <source lang="text"> | ||
+ | POST api/v2/me/workbins/6c715fa9-de16-4d23-b07c-cbcb1caf3e07?agentGroup=MyAgentGroup | ||
+ | { | ||
+ | "operationName": "PullChat", | ||
+ | "id": "0001BaBFVPR20035" | ||
+ | } | ||
+ | </source> | ||
+ | ===HTTP response=== | ||
+ | The response consists of an HTTP response and a CometD response. For details on the result, refer to the [[WorkbinResource|workbin resource]]. | ||
+ | <source lang="text"> | ||
+ | { | ||
+ | "statusCode": 0, | ||
+ | "referenceId": 77 | ||
+ | } | ||
+ | </source> | ||
+ | ===CometD notification=== | ||
+ | <source lang="text"> | ||
+ | { | ||
+ | "action": "ItemRemoved", | ||
+ | "agentGroup": "MyAgentGroup", | ||
+ | "chatStateResourceV2": {"capabilities": [], | ||
+ | "chatType": "Inbound", | ||
+ | "id": "0001BaBFVPR20035", | ||
+ | "participants": [], | ||
+ | "receivedDate": "2016-04-08 15:05:57.000+0300", | ||
+ | "userData": {"CBR-IT-path_DBIDs": "", | ||
+ | "CBR-Interaction_cost": "", | ||
+ | "CBR-actual_volume": "", | ||
+ | "CBR-contract_DBIDs": "", | ||
+ | "ChatAnsweredByAgentAt": "2016-04-08T12:06:05Z", | ||
+ | "ChatServerAppName": "esv_chat_srv", | ||
+ | "ChatServerDBID": "147", | ||
+ | "ChatServerHost": "dev-ip9-152.gws.genesys.com", | ||
+ | "ChatServerPort": "7160", | ||
+ | "CustomerSegment": "default", | ||
+ | "OccuredAt": "2016-04-08T12:06:01Z", | ||
+ | "PegAG?:2>1": 1, | ||
+ | "RRequestedSkillCombination": "", | ||
+ | "RRequestedSkills": None, | ||
+ | "RStrategyDBID": "472", | ||
+ | "RStrategyName": "CloudPoDSimpleChatInStrategy", | ||
+ | "RTargetAgentGroup": "?:2>1", | ||
+ | "RTargetAgentSelected": "a1", | ||
+ | "RTargetObjSelDBID": "", | ||
+ | "RTargetObjectSelected": "?:2>1", | ||
+ | "RTargetPlaceSelected": "a1", | ||
+ | "RTargetRequested": "?:2>1", | ||
+ | "RTargetRuleSelected": "", | ||
+ | "RTargetTypeSelected": "2", | ||
+ | "RTenant": "Environment", | ||
+ | "RVQDBID": "", | ||
+ | "RVQID": "", | ||
+ | "ServiceObjective": 0, | ||
+ | "ServiceType": "default", | ||
+ | "Subject": "TestChatCustomer"}}, | ||
+ | "id": "6c715fa9-de16-4d23-b07c-cbcb1caf3e07", | ||
+ | "messageType": "WorkbinStateChangeMessage" | ||
+ | } | ||
+ | </source> | ||
+ | |||
+ | ==Sample 2 - Pull an Interaction from a PlaceGroup Workbin== | ||
+ | ===Request=== | ||
+ | <source lang="text"> | ||
+ | POST api/v2/me/workbins/5d487e69-a393-4228-a06f-6a4015ab1b54?placeGroup=MyPlaceGroup | ||
+ | { | ||
+ | "operationName": "PullChat", | ||
+ | "id": "0001BaBFVPR20039" | ||
+ | } | ||
+ | </source> | ||
+ | ===HTTP response=== | ||
+ | The response consists of an HTTP response and a CometD response. For details on the result, refer to the [[WorkbinResource|workbin resource]]. | ||
+ | <source lang="text"> | ||
+ | { | ||
+ | "statusCode": 0, | ||
+ | "referenceId": 18 | ||
+ | } | ||
+ | </source> | ||
+ | ===CometD notification=== | ||
+ | <source lang="text"> | ||
+ | { | ||
+ | "action": "ItemRemoved", | ||
+ | "chatStateResourceV2": {"capabilities": [], | ||
+ | "chatType": "Inbound", | ||
+ | "id": "0001BaBFVPR20039", | ||
+ | "participants": [], | ||
+ | "receivedDate": "2016-04-08 15:31:30.000+0300", | ||
+ | "userData": {"CBR-IT-path_DBIDs": "", | ||
+ | "CBR-Interaction_cost": "", | ||
+ | "CBR-actual_volume": "", | ||
+ | "CBR-contract_DBIDs": "", | ||
+ | "ChatAnsweredByAgentAt": "2016-04-08T12:31:37Z", | ||
+ | "ChatServerAppName": "esv_chat_srv", | ||
+ | "ChatServerDBID": "147", | ||
+ | "ChatServerHost": "dev-ip9-152.gws.genesys.com", | ||
+ | "ChatServerPort": "7160", | ||
+ | "CustomerSegment": "default", | ||
+ | "OccuredAt": "2016-04-08T12:31:33Z", | ||
+ | "PegAG?:2>1": 1, | ||
+ | "RRequestedSkillCombination": "", | ||
+ | "RRequestedSkills": None, | ||
+ | "RStrategyDBID": "472", | ||
+ | "RStrategyName": "CloudPoDSimpleChatInStrategy", | ||
+ | "RTargetAgentGroup": "?:2>1", | ||
+ | "RTargetAgentSelected": "a1", | ||
+ | "RTargetObjSelDBID": "", | ||
+ | "RTargetObjectSelected": "?:2>1", | ||
+ | "RTargetPlaceSelected": "a1", | ||
+ | "RTargetRequested": "?:2>1", | ||
+ | "RTargetRuleSelected": "", | ||
+ | "RTargetTypeSelected": "2", | ||
+ | "RTenant": "Environment", | ||
+ | "RVQDBID": "", | ||
+ | "RVQID": "", | ||
+ | "ServiceObjective": 0, | ||
+ | "ServiceType": "default", | ||
+ | "Subject": "TestChatCustomer"}}, | ||
+ | "id": "5d487e69-a393-4228-a06f-6a4015ab1b54", | ||
+ | "messageType": "WorkbinStateChangeMessage", | ||
+ | "placeGroup": "MyPlaceGroup" | ||
+ | } | ||
+ | </source> | ||
[[Category:V:HTCC:8.5.2DRAFT]] | [[Category:V:HTCC:8.5.2DRAFT]] |
Revision as of 17:16, May 6, 2016
Contents
PullInteraction from a Group Workbin
This operation is part of the Workbins API section of the Web Services API.
Overview
Removes the association between an interaction and a group workbin. This operation supports AgentGroup and PlaceGroup types.
Request URL | /api/v2/me/workbins/{id}?agentGroup={agentGroupName}
OR |
---|---|
HTTP method | POST |
Required features | api-multimedia |
Parameters
Parameter | Value |
---|---|
operationName | PullInteraction. Also valid values are: PullChat, PullEmail, PullWorkitem, PullTweet, PullFacebook, PullFacebooksession and PullOpenmedia. |
id | The ID of the interaction to remove from the workbin. |
Sample 1 - Pull an Interaction from an AgentGroup Workbin
Request
POST api/v2/me/workbins/6c715fa9-de16-4d23-b07c-cbcb1caf3e07?agentGroup=MyAgentGroup
{
"operationName": "PullChat",
"id": "0001BaBFVPR20035"
}
HTTP response
The response consists of an HTTP response and a CometD response. For details on the result, refer to the workbin resource.
{
"statusCode": 0,
"referenceId": 77
}
CometD notification
{
"action": "ItemRemoved",
"agentGroup": "MyAgentGroup",
"chatStateResourceV2": {"capabilities": [],
"chatType": "Inbound",
"id": "0001BaBFVPR20035",
"participants": [],
"receivedDate": "2016-04-08 15:05:57.000+0300",
"userData": {"CBR-IT-path_DBIDs": "",
"CBR-Interaction_cost": "",
"CBR-actual_volume": "",
"CBR-contract_DBIDs": "",
"ChatAnsweredByAgentAt": "2016-04-08T12:06:05Z",
"ChatServerAppName": "esv_chat_srv",
"ChatServerDBID": "147",
"ChatServerHost": "dev-ip9-152.gws.genesys.com",
"ChatServerPort": "7160",
"CustomerSegment": "default",
"OccuredAt": "2016-04-08T12:06:01Z",
"PegAG?:2>1": 1,
"RRequestedSkillCombination": "",
"RRequestedSkills": None,
"RStrategyDBID": "472",
"RStrategyName": "CloudPoDSimpleChatInStrategy",
"RTargetAgentGroup": "?:2>1",
"RTargetAgentSelected": "a1",
"RTargetObjSelDBID": "",
"RTargetObjectSelected": "?:2>1",
"RTargetPlaceSelected": "a1",
"RTargetRequested": "?:2>1",
"RTargetRuleSelected": "",
"RTargetTypeSelected": "2",
"RTenant": "Environment",
"RVQDBID": "",
"RVQID": "",
"ServiceObjective": 0,
"ServiceType": "default",
"Subject": "TestChatCustomer"}},
"id": "6c715fa9-de16-4d23-b07c-cbcb1caf3e07",
"messageType": "WorkbinStateChangeMessage"
}
Sample 2 - Pull an Interaction from a PlaceGroup Workbin
Request
POST api/v2/me/workbins/5d487e69-a393-4228-a06f-6a4015ab1b54?placeGroup=MyPlaceGroup
{
"operationName": "PullChat",
"id": "0001BaBFVPR20039"
}
HTTP response
The response consists of an HTTP response and a CometD response. For details on the result, refer to the workbin resource.
{
"statusCode": 0,
"referenceId": 18
}
CometD notification
{
"action": "ItemRemoved",
"chatStateResourceV2": {"capabilities": [],
"chatType": "Inbound",
"id": "0001BaBFVPR20039",
"participants": [],
"receivedDate": "2016-04-08 15:31:30.000+0300",
"userData": {"CBR-IT-path_DBIDs": "",
"CBR-Interaction_cost": "",
"CBR-actual_volume": "",
"CBR-contract_DBIDs": "",
"ChatAnsweredByAgentAt": "2016-04-08T12:31:37Z",
"ChatServerAppName": "esv_chat_srv",
"ChatServerDBID": "147",
"ChatServerHost": "dev-ip9-152.gws.genesys.com",
"ChatServerPort": "7160",
"CustomerSegment": "default",
"OccuredAt": "2016-04-08T12:31:33Z",
"PegAG?:2>1": 1,
"RRequestedSkillCombination": "",
"RRequestedSkills": None,
"RStrategyDBID": "472",
"RStrategyName": "CloudPoDSimpleChatInStrategy",
"RTargetAgentGroup": "?:2>1",
"RTargetAgentSelected": "a1",
"RTargetObjSelDBID": "",
"RTargetObjectSelected": "?:2>1",
"RTargetPlaceSelected": "a1",
"RTargetRequested": "?:2>1",
"RTargetRuleSelected": "",
"RTargetTypeSelected": "2",
"RTenant": "Environment",
"RVQDBID": "",
"RVQID": "",
"ServiceObjective": 0,
"ServiceType": "default",
"Subject": "TestChatCustomer"}},
"id": "5d487e69-a393-4228-a06f-6a4015ab1b54",
"messageType": "WorkbinStateChangeMessage",
"placeGroup": "MyPlaceGroup"
}
Comments or questions about this documentation? Contact us for support!