Legacy Dev Forum Posts

 View Only

Sign Up

Contactlist API Request Help

  • 1.  Contactlist API Request Help

    Posted 06-05-2025 18:12

    N25 | 2017-11-03 06:59:33 UTC | #1

    Hi All,

    I've been toying around with the API-Explorer and was trying to make the outbound "Add contacts to a contact list." API call however even though I followed its request format guide (https://developer.mypurecloud.com/api/rest/v2/outbound/#postOutboundContactlistsContactlistIdContacts) I was still getting the 400 error.

    Here is the body of my request that I was testing:

    { "contactListId": "04feea90-3bfb-4296-bb89-5d8690bb29f8", "data": { "Name": "Test", "Number": "+61300000000" }, "callable": true }

    Just wanted to confirm if there's anything wrong or missing for my request on this particular API call, thanks!


    tim.smith | 2017-11-07 17:22:15 UTC | #2

    Can you provide the correlation ID from the response? Thanks.


    N25 | 2017-11-13 01:35:34 UTC | #3

    Hi Tim, it's 89561965-b640-4abc-96df-553f04494d9e


    tim.smith | 2017-11-13 15:32:14 UTC | #4

    The error is "Can not deserialize instance of java.util.ArrayList out of START_OBJECT token". The root element for that request body is supposed to be an array. The documentation on the dev center is correct if you read the Data Type column, but the JSON Example is missing the array. I've opened API-2985 to correct those docs.


    N25 | 2017-11-14 03:54:29 UTC | #5

    Thanks a lot Tim, glad my post may potentially lead to an improvement in the documentation :slight_smile:


    system | 2017-12-15 03:54:51 UTC | #6

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 2056