did you managed to make it working? The Python SDK does not work either as the ranges parameters is filtered out from code.
boundaryIds and ranges should be set in query string like: ...&boundaryIds[]=123454&ranges[]=....
but now the endpoint tells ranges items should be object, I tried like: ranges[]={"interval": 86400} but it doesn't work.
Quite odd API!!