Deepak | 2019-03-28 09:08:27 UTC | #1
How do i clear a contact list for a campaign ?
Henry.Zambrano | 2019-03-28 16:28:06 UTC | #2
Hi Deepak, precisely I was trying to do that: The endpoint would be: POST /api/v2/outbound/contactlists/{contactListId}/clear
However, using the JavaScript SDK: https://developer.mypurecloud.com/api/rest/client-libraries/javascript/OutboundApi.html#postOutboundContactlistClear
I got an error: Uncaught TypeError: apiInstance.postOutboundContactlistClear is not a function
Which is strange since I'm using exactly the same example showed in the documentation.
If @tim.smith can help us I would appreciate it.
Thanks, Henry
tim.smith | 2019-03-28 19:51:44 UTC | #3
Maybe you're using an outdated SDK version? I just verified it works using the latest version (46.0.0).
Henry.Zambrano | 2019-03-28 19:54:42 UTC | #4
Yes!!!
Thank you Tim that was the problem.
Deepak | 2019-03-31 14:21:08 UTC | #5
Thanks Henry :)
system | 2019-05-01 14:21:10 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: 4882