Legacy Dev Forum Posts

 View Only

Sign Up

Error on /api/v2/outbound/contactlists with Java SDK

  • 1.  Error on /api/v2/outbound/contactlists with Java SDK

    Posted 06-05-2025 18:29

    MFRYS | 2024-02-09 13:53:22 UTC | #1

    Hi everyone,

    When we try to get the full list of Contact Lists, It seems that the Java SDK require a parameter on ContactListId, null is not accepted. But with API no problem to get the full list.

    ContactList ContactList = outboundApi.getOutboundContactlist(null, true, true);

    Error : ERROR - [http-nio-8080-exec-6] com.oney.cntrcta.web.handler.RestExceptionHandler - Something unexpected happened - {} java.lang.IllegalStateException: Missing the required parameter 'contactListId' when building request for GetOutboundContactlistRequest. at com.mypurecloud.sdk.v2.api.request.GetOutboundContactlistRequest$Builder.build(GetOutboundContactlistRequest.java:227)

    Do you have the same limit ?


    Jerome.Saint-Marc | 2024-02-09 14:20:59 UTC | #2

    Hello,

    You're not using the correct function. For GET /api/v2/outbound/contactlists -> getOutboundContactlists

    The function you are calling - getOutboundContactlist - corresponds to GET /api/v2/outbound/contactlists/{contactListId} where contactListId is indeed mandatory.

    Regards,


    system | 2024-03-11 14:21:10 UTC | #3

    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: 24573