Legacy Dev Forum Posts

 View Only

Sign Up

Rate Limit When Updating list of DNIS in an IVR

  • 1.  Rate Limit When Updating list of DNIS in an IVR

    Posted 06-05-2025 18:08

    Chris_Carr | 2022-06-24 09:03:30 UTC | #1

    Hi All,

    Good day!

    I have got a small issue that I am struggling to get around.

    I am trying to assign numbers to an IVR config using the the below, however, I am receiving a 429 rate limit response due to the amount of DNIS entries in the list. How do I go about doing this?

    try:

    ivr_id = '050c9525-1df5-4d77-9936-106c7c34962b' # str | Include IVR id

    body = apiinstance.getarchitectivr(ivrid)

    body.dnis = ['+44xxxxxxxx','+44xxxxxxxx','+44xxxxxxxx','+44xxxxxxxx','+44xxxxxxxx','+44xxxxxxxx','+44xxxxxxxx'] # example list, the real script has 3000 numbers

    try:

    apiresponse = apiinstance.putarchitectivr(ivr_id, body)

    pprint(api_response)

    except ApiException as e:

    print("Exception when calling PutArchitectIvrRequest->putarchitectivr: %s\n" % e)

    except ApiException as e:

    print("Exception when calling GetArchitectIvrRequest->getarchitectivr: %s\n" % e)

    Thank you.

    Kind Regards, Chris Carr


    tim.smith | 2022-06-24 13:12:50 UTC | #2

    Per PUT /api/v2/architect/ivrs/{ivrId}, there is a dids.per.callroute.max of 5000 (I'm assuming DID and DNIS are used interchangibly with this resource). Per your code, you're only setting 3000, which should fall well within the documented limit. Please open a case with Genesys Cloud Care to investigate why you're being limited at less than the documented limit.


    Chris_Carr | 2022-06-24 14:42:14 UTC | #3

    Hi Tim,

    Thank you. I have raised a case and will update this thread.

    Kind Regards, Chris Carr


    John_Carnell | 2022-06-29 13:56:56 UTC | #4


    This post was migrated from the old Developer Forum.

    ref: 15297