joshf | 2016-06-23 18:42:59 UTC | #1
Hello,
Using endpoint
https://api.mypurecloud.com/api/v2/analytics/conversations/aggregates/query
and payload
{ "interval": "2016-06-23T16:31:00.000Z/2016-06-23T17:01:00.000Z", "metrics": [ "tAnswered" ], "groupBy" : [ "queueId" ], "filter": { "type": "or", "predicates": [ { "dimension": "queueId", "value": "..." } ] } }
yields the error:
Granularity ( PT30M ) must evenly divide the specified interval span, accounting for the timezone ( 2016-06-23T16:31:00.000Z/2016-06-23T17:01:00.000Z ).
However when I modify the interval to go from 1630 - 1700, it works. It seems like a 30 minute inteval only works when it starts or ends on an hour. It seems as though any other interval works correctly.
Is this the intended behavior?
Thanks,
Josh
tim.smith | 2016-06-27 21:48:18 UTC | #2
Yes, the key word in the error is evenly. If you take out the groupBy parameter, it won't complain anymore, but you'll notice that the results are still in even intervals. If you really need that 1 minute interval, you can specify "granularity":"PT1M".
anon47305574 | 2016-08-11 18:54:48 UTC | #3
joshf, post:1, topic:96
"2016-06-23T16:31:00.000Z/2016-06-23T17:01:00.000Z",
There was a bug that has been fixed. Your query should work now
system | 2017-08-28 19:25:01 UTC | #4
This post was migrated from the old Developer Forum.
ref: 96