Include Expiration Date/Time column for DNC when adding numbers

Hi, I see that the only endpoint to add phone numbers to a DNC list (not needing to use a file) is:
POST /api/v2/outbound/dnclists/{dncListId}/phonenumbers

However, I don't see it's possible to include the expiration date/time for each number. How can I do it? Or the only way to do it is by uploading a CSV file that includes that column?

Thanks.

Hi,

This doc https://developer.genesys.cloud/api/rest/v2/outbound/uploaddnclists describes how to upload a file to dnc list. With POST request to /uploads/v2/contactlist, now you can provide expirationDateTimeColumn field in addition to file, fileType, id, phoneColumns. This will be equal to your column name in CSV that represents expiration date time.

Thank you Kavita, yes, I just was wondering if there was another way different from uploading a file. But that's fine. Thanks.

Yes.. uploading a file is the only way if you need expirationDateTime for each number. Otherwise, you just have to use POST /api/v2/outbound/dnclists/{dncListId}/phonenumbers API to add one number at a time. Uploading CSV would be much efficient and faster. Maybe in future, if there is much demand for this, we might consider new API similar to /phonenumbers.

1 Like

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