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

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 ?

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,

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