Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Outbound API - GET /api/v2/outbound/rulesets - BUG

    Posted 18 hours ago

    Hi, it seems to be the pagination control for this resource has a bug:

    GET  /api/v2/outbound/rulesets

    In the response, after listing the last page of results and then increasing the pageNumber value, it's always responding with that last result page after.
    I would expect (as usual) and empty "entities" array so the pagination control can be done by increasing the pageNumber then checking if the array with the results is empty:
    if (data.entities.length > 0) => do something
    otherwise => results for all pages have been fetched.
    Because of this bug, we are falling into an infinite loop because regardless of the pageNumber (and as long as there's at least 1 result), the response will never be empty.
    In the meantime, we will change the method for checking if the last page of results has been reached but I think this is a bug.


    #API/Integrations
    #Outbound

    ------------------------------
    Henry Zambrano
    Software Engineer
    ------------------------------


  • 2.  RE: Outbound API - GET /api/v2/outbound/rulesets - BUG

    Posted 17 hours ago

    Hello Henry,

    I have moved your question to the Genesys Cloud - Developer Community. Hopefully one of the experts there will be able to assist you with this.



    ------------------------------
    Jason Kleitz
    Online Community Manager/Moderator
    ------------------------------