Legacy Dev Forum Posts

 View Only

Sign Up

Include Expiration Date/Time column for DNC when adding numbers

  • 1.  Include Expiration Date/Time column for DNC when adding numbers

    Posted 06-05-2025 18:20

    Henry.Zambrano | 2021-08-13 14:21:12 UTC | #1

    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.


    Kavita_Mantripragada | 2021-08-16 18:20:54 UTC | #2

    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.


    Henry.Zambrano | 2021-08-16 21:28:26 UTC | #3

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


    Kavita_Mantripragada | 2021-08-18 16:39:45 UTC | #4

    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.


    system | 2021-09-17 13:11:37 UTC | #5

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