Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  ContactList clear/add

    Posted 06-05-2025 18:24

    Taras | 2023-01-12 18:25:30 UTC | #1

    Hi,

    We have implemented process:

    1. Stop Campaign to status "OFF"
    2. Clear ContactList
    3. Post new contacts

    Today some ContactLists failed with error:

    /api/v2/outbound/contactlists/{contactListId}/contacts

    {"message":"Contact list is currently being cleared of contacts","code":"bad.request","status":400,"contextId":"03601fce-2470-44be-a89e-258483c94685","details":[],"errors":[]}

    I cant find any explanation for this error.

    Does it mean that we need to implement some delay after step #2 ?

    Best regards, Taras


    jacobshaw | 2023-01-12 18:38:36 UTC | #2

    Hi @Taras

    Indeed, based on the error, the clear contact list operation needs to complete before posting new contacts to the list. You could use a sleep/timeout, or you might try verifying the contact list is empty before posting with this API resource: https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-outbound-contactlists--contactListId-


    Taras | 2023-01-12 18:43:09 UTC | #3

    Hi @jacobshaw

    Thanks for the quick reply.

    Will do sleep/timeout and verification.

    Best regards, Taras


    system | 2023-02-12 18:43:21 UTC | #4

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