Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Unable to do transfer the WhatsApp message using API Replace

    Posted 05-25-2021 05:09
    No replies, thread closed.
    Hi,
    We would like to transfer the message to Queue using the API when agent leaves the PC wihtout mark done the message. so that it can be handled by some other agent.

    We are using the REPLACE method. But getting the following error. Not sure what is missed here.

    {
    "message": "The requested operation failed with status 404",
    "code": "not.found",
    "status": 404,
    "contextId": "dc30318c-9748-4d52-8aec-effe53464613",
    "details": [],
    "errors": []
    }

    Calling Method

    /api/v2/conversations/messages/507f69c9-c6e6-46c8-96f0-522a10cbcf7b/participants/368b7098-2032-4d40-bd95-9e596ed20d58/replace

    507f69c9-c6e6-46c8-96f0-522a10cbcf7b - Conversation ID
    368b7098-2032-4d40-bd95-9e596ed20d58 ==> WhatsApp Queue

    cURL

    curl -X POST -H "Content-Type: application/json" -H "Authorization: bearer 4Bw-FC6mKTrpJaqIxwMTM5J1n_kaaavRVnfhbqcVZefiNOnQVxfdLI4dcG2dVQ4Wluj823uMO-QEpzlCs5asuA" -d '{
       "userId": "",
       "address": "",
       "userName": "",
       "queueId": "",
       "voicemail": false
    }' "https://api.euw2.pure.cloud/api/v2/conversations/messages/507f69c9-c6e6-46c8-96f0-522a10cbcf7b/participants/368b7098-2032-4d40-bd95-9e596ed20d58/replace"
                                            

    #Integrations

    ------------------------------
    Joseph Arulsamy
    British Telecommunications PLC
    ------------------------------


  • 2.  RE: Unable to do transfer the WhatsApp message using API Replace

    Posted 05-25-2021 05:24
    No replies, thread closed.
    Message Conversation

    {
    "id": "507f69c9-c6e6-46c8-96f0-522a10cbcf7b",
    "participants": [
    {
    "id": "1d275a5a-a013-4636-8b1d-f09d72e73609",
    "name": "Joe Babu",
    "startTime": "2021-05-25T06:26:05.031Z",
    "connectedTime": "2021-05-25T06:26:05.050Z",
    "purpose": "customer",
    "state": "connected",
    "held": false,
    "wrapupRequired": false,
    "queue": {
    "id": "368b7098-2032-4d40-bd95-9e596ed20d58",
    "selfUri": "/api/v2/routing/queues/368b7098-2032-4d40-bd95-9e596ed20d58"
    },
    "attributes": {
    "CustLName": "Babu",
    "ConversationId": "507f69c9-c6e6-46c8-96f0-522a10cbcf7b",
    "scriptId": "4a5e0394-7a95-4c60-90e8-644b8a01adf2",
    "CustType": "TC",
    "CustomBorderColor": "#b1e4f2",
    "CustPhoneNumber": "919500949434",
    "SkywardsId": "9876654",
    "CustEmail": "joseph.arulsamy@outlook.com",
    "ThemeColor": "#352ff5",
    "CustFName": "Joe",
    "CustNotes": "notes"
    },
    "provider": "PureCloud Messaging",
    "externalContact": {
    "id": "cb4f1079-d36c-4801-b93a-96a36369dae3",
    "selfUri": "/api/v2/externalcontacts/contacts/cb4f1079-d36c-4801-b93a-96a36369dae3"
    },
    "peer": "55668ea6-2f81-47cf-96a3-5cc19ec71a65",
    "toAddress": {
    "name": "WhatsApp +971600544646",
    "addressNormalized": "74fad86e-f8fd-4e89-b4dd-78679b9eb470",
    "addressRaw": "971600544646"
    },
    "fromAddress": {
    "name": "Joe Babu",
    "addressNormalized": "919500949434",
    "addressRaw": "919500949434"
    },
    "messages": [
    {
    "messageId": "b16440a435ba2df4ac29ab9353b770a0",
    "messageURI": "/api/v2/conversations/messages/507f69c9-c6e6-46c8-96f0-522a10cbcf7b/messages/b16440a435ba2df4ac29ab9353b770a0",
    "messageStatus": "received",
    "messageSegmentCount": 1,
    "messageTime": "2021-05-25T06:26:05.031Z",
    "media": [],
    "stickers": []
    }
    ],
    "type": "whatsapp"
    },
    {
    "id": "37826b0f-0ee7-451a-8fa3-9a5401757516",
    "name": "WhatsApp +971600544646",
    "startTime": "2021-05-25T06:26:05.043Z",
    "connectedTime": "2021-05-25T06:26:05.071Z",
    "endTime": "2021-05-25T06:26:06.181Z",
    "purpose": "workflow",
    "state": "disconnected",
    "disconnectType": "transfer",
    "held": false,
    "wrapupRequired": false,
    "attributes": {},
    "provider": "PureCloud Messaging",
    "peer": "a5411f88-eecf-4acc-98b8-c7a2e536adf9",
    "toAddress": {
    "name": "Joe Babu",
    "addressNormalized": "919500949434",
    "addressRaw": "919500949434"
    },
    "fromAddress": {
    "name": "WhatsApp +971600544646",
    "addressNormalized": "74fad86e-f8fd-4e89-b4dd-78679b9eb470",
    "addressRaw": "971600544646"
    },
    "messages": [],
    "type": "whatsapp",
    "recipientCountry": "IN"
    },
    {
    "id": "a406f800-6496-4752-a9a9-9110691331f9",
    "name": "WhatsApp +971600544646",
    "startTime": "2021-05-25T06:26:06.205Z",
    "connectedTime": "2021-05-25T06:26:06.211Z",
    "endTime": "2021-05-25T06:26:10.292Z",
    "purpose": "acd",
    "state": "disconnected",
    "disconnectType": "transfer",
    "held": false,
    "wrapupRequired": false,
    "queue": {
    "id": "368b7098-2032-4d40-bd95-9e596ed20d58",
    "selfUri": "/api/v2/routing/queues/368b7098-2032-4d40-bd95-9e596ed20d58"
    },
    "attributes": {},
    "provider": "PureCloud Messaging",
    "peer": "a5411f88-eecf-4acc-98b8-c7a2e536adf9",
    "conversationRoutingData": {
    "queue": {
    "id": "368b7098-2032-4d40-bd95-9e596ed20d58",
    "selfUri": "/api/v2/routing/queues/368b7098-2032-4d40-bd95-9e596ed20d58"
    },
    "language": {
    "id": "34459b7f-a540-4559-a7f3-b84dc09c1766",
    "selfUri": "/api/v2/routing/languages/34459b7f-a540-4559-a7f3-b84dc09c1766"
    },
    "priority": 0,
    "skills": [
    {
    "id": "acbc7d7d-e755-4a47-83d8-c51f58c0779f",
    "selfUri": "/api/v2/routing/skills/acbc7d7d-e755-4a47-83d8-c51f58c0779f"
    }
    ],
    "scoredAgents": []
    },
    "toAddress": {
    "name": "Joe Babu",
    "addressNormalized": "919500949434",
    "addressRaw": "919500949434"
    },
    "fromAddress": {
    "name": "WhatsApp +971600544646",
    "addressNormalized": "74fad86e-f8fd-4e89-b4dd-78679b9eb470",
    "addressRaw": "971600544646"
    },
    "messages": [],
    "type": "whatsapp",
    "recipientCountry": "IN"
    },
    {
    "id": "a58c51ac-5283-4ae2-bcc5-a238ed987830",
    "name": "WhatsApp +971600544646",
    "startTime": "2021-05-25T06:26:06.330Z",
    "connectedTime": "2021-05-25T06:26:10.293Z",
    "purpose": "agent",
    "state": "connected",
    "held": false,
    "wrapupRequired": true,
    "wrapupPrompt": "optional",
    "user": {
    "id": "c13e1d34-ef19-457a-85a6-1f3bb6aa88d1",
    "selfUri": "/api/v2/users/c13e1d34-ef19-457a-85a6-1f3bb6aa88d1"
    },
    "queue": {
    "id": "368b7098-2032-4d40-bd95-9e596ed20d58",
    "selfUri": "/api/v2/routing/queues/368b7098-2032-4d40-bd95-9e596ed20d58"
    },
    "attributes": {},
    "alertingTimeoutMs": 30000,
    "provider": "PureCloud Messaging",
    "peer": "a5411f88-eecf-4acc-98b8-c7a2e536adf9",
    "conversationRoutingData": {
    "priority": 0,
    "skills": [],
    "scoredAgents": []
    },
    "toAddress": {
    "name": "Joe Babu",
    "addressNormalized": "919500949434",
    "addressRaw": "919500949434"
    },
    "fromAddress": {
    "name": "WhatsApp +971600544646",
    "addressNormalized": "74fad86e-f8fd-4e89-b4dd-78679b9eb470",
    "addressRaw": "971600544646"
    },
    "messages": [
    {
    "messageId": "5f4440841436fc10ac8c2cbfb072d5f4",
    "messageURI": "/api/v2/conversations/messages/507f69c9-c6e6-46c8-96f0-522a10cbcf7b/messages/5f4440841436fc10ac8c2cbfb072d5f4",
    "messageStatus": "delivery-success",
    "messageSegmentCount": 1,
    "messageTime": "2021-05-25T07:33:04.543Z",
    "media": [],
    "stickers": []
    }
    ],
    "type": "whatsapp",
    "recipientCountry": "IN"
    }
    ],
    "otherMediaUris": [],
    "selfUri": "/api/v2/conversations/messages/507f69c9-c6e6-46c8-96f0-522a10cbcf7b"
    }

    ------------------------------
    Joseph Arulsamy
    British Telecommunications PLC
    ------------------------------



  • 3.  RE: Unable to do transfer the WhatsApp message using API Replace

    Posted 05-25-2021 07:40
    No replies, thread closed.
    It is working as expected.. there was an issue with participant id in the request.


    ------------------------------
    Joseph
    ------------------------------