Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Contact list Phone number Callable using API

    Posted 02-12-2025 22:19
    Edited by Hariharasudan Ramachandran 02-12-2025 22:19

    Hi Team, 

    We are trying to change our Phone status from Callable False to True, so this can be called when certain wrap up happens. Our contact list has multiple phone number such as Phone1, 2, 3, 4

    Below is the API we are using

    PUT /api/v2/outbound/contactlists/:contactListId/contacts/:contactId

    With the help of below payload we can able to change the status between true to false vice versa-

    But the issue is when we implement this into the data action, the Input contracts does not supporting nested object because we have callable value under phoneNumberStatus >> Phone 1. 

    Also tried multiple ways on the Request body template in the data action configuration, nothing was helpful

    have any one tried this? any help would be appreciated. 

    The ask is to change the Phone callable status to True on certain wrap up conditions. Not all phones will be either True or False it may have to get changed based on a wrap up occurs. 

    {
        "callable": true,
      "phoneNumberStatus": {
        "Phone1": {
          "callable": true
        },
    "Phone2": {
          "callable": true
        },
    "Phone3": {
          "callable": true
        },
    "Phone4": {
          "callable": false
        }
      }
    }

    Here is the response - 

    {
        "id": "d17d732c25c8dfa833cf191b18790531",
        "contactListId": "b4a2dcd0-4c05-4107-ab8a-79615b84984b",
        "data": {
            "Name": "abc",
            "Phone1": "5142313243",
            "Phone2": "5142313242",
            "Phone3": "5142313244",
            "Phone4": "5142313245"
        },
        "callRecords": {
            "Phone1": {
                "lastAttempt": "2025-02-12T16:50:56.919Z",
                "lastResult": "2d7b4b23-e43e-4b6e-87d7-c520a56b29b2"
            },
            "Phone3": {
                "lastAttempt": "2025-02-12T16:51:01.674Z",
                "lastResult": "ININ-OUTBOUND-NUMBER_COULD_NOT_BE_DIALED"
            },
            "Phone2": {
                "lastAttempt": "2025-02-12T16:50:58.925Z",
                "lastResult": "ININ-OUTBOUND-NUMBER_COULD_NOT_BE_DIALED"
            },
            "Phone4": {
                "lastAttempt": "2025-02-12T16:51:00.091Z",
                "lastResult": "ININ-OUTBOUND-NUMBER_COULD_NOT_BE_DIALED"
            }
        },
        "callable": true,
        "phoneNumberStatus": {
            "Phone1": {
                "callable": true
            },
            "Phone3": {
                "callable": true
            },
            "Phone2": {
                "callable": true
            },
            "Phone4": {
                "callable": false
            }
        },
        "contactableStatus": {
            "Email": {
                "contactable": true
            }
        },
        "dateCreated": "2025-02-12T16:43:49.419Z",
        "selfUri": "/api/v2/outbound/contactlists/b4a2dcd0-4c05-4107-ab8a-79615b84984e/contacts/d17d732c25c8dfa833cf191b18790531"
    }


    #API/Integrations



  • 2.  RE: Contact list Phone number Callable using API

    Posted 02-13-2025 07:02

    Hi Hariharasudan,

    I think this would be a good question to ask in the Genesys Cloud Developer Forum, but maybe someone in the community has come across and resolved a similar issue and can help.



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources