Account aggregation paging not updating

I am currently working on a WebService Saas connector that requires such a body for aggregating accounts :

{
    "params": {
        "workcode": "",
        "loginid":"",
        "pagesize":20,
        "curpage": 1
    }
}

And I’m trying to increment the attribute curpage with paging steps, and nothing has worked so far. I’ve tried the following paging steps :

  • $request.params.curpage$ = $page$ but i get “a.set is not a function” error
  • $request.curpage$ = $page$ but it only adds a curpage attribute to my request body and does not update the one in params
  • $params$ = $request.params$ and $params.curpage$ = $page$ but it does not update curpage

Any other ideas on how to access and update curpage ?