Roll-Up Reporting API - addRollUp

Hello,

I’m trying to add a roll-up using the reporting API.
I’m using RollUpReporting.addRollUp (name, sourceIdSites, timezone, currency) but I have an issue in my request.

Here is my request :
?module=API&method=RollUpReporting.addRollUp&name=RollUpName&timezone=Europe/Paris&currency=EUR&sourceIdSites=1011&format=JSON&token_auth=xxx

The error is the following : {“result”:“error”,“message”:“Source measurables: At least one children site needs to be assigned to the Roll-Up site”}

I tried pretty much all formats for the “sourceIdSites” value :

  • sourceIdSites={1011}
  • sourceIdSites=[1011]
  • sourceIdSites=1011
  • sourceIdSites=[“1011”]

Does anybody have an idea ?
Thanks for your help !

Best Regards,
Jérôme

Hi Jérôme,

The correct syntax is:

&sourceIdSites[0]=1011&sourceIdSites[1]=1012&sourceIdSites[2]=1013

If for example, you were adding 3 sites.

Thanks

1 Like

It’s working, thanks a lot Jason !

1 Like