sajidali | 2016-11-14 09:07:16 UTC | #1
Hi, The granularity in aggregationQuery is defined as datatime(nuget package), however it is supposed to be string. So i downloaded the purcloud sdk(as mentioned some other posts), changed the granularity type to string,builed and used that as reference in my project. It works fine if i supplied "PT30M". However it fails for "PT15M" with below error:
"{\"status\":400,\"code\":\"bad.request\",\"message\":\"Supplied granularity PT900S cannot be less than PT1800S\",\"contextId\":\"32f43072-19f0-493b-b2d2-b1d13e1adb46\",\"details\":[],\"errors\":[]}"
My interval value: 2016-11-04T11:30:00.000Z/2016-11-04T13:00:00.000Z, I also tried this interval: 2016-11-04T11:00:00.000Z/2016-11-04T13:00:00.000Z Both are evenly divided,
Any ideas why?
anon5606108 | 2016-11-14 14:20:42 UTC | #2
Hi sajidali,
The response you provide suggests that the granularity cannot be less than 1800 seconds, or 30 minutes. Your query fails because the API does not support a granularity of anything less than 30 minutes.
Please let us know if you have any further questions.
sajidali | 2016-11-14 14:32:38 UTC | #3
Thank Ian. So i can not use granularity less than 30 minutes? Or is this anyway if i could use 15 minutes instead?
anon5606108 | 2016-11-14 14:39:36 UTC | #4
Hi sajidali,
Unfortunately, you cannot use granularity of 15 minutes at this time. The granularity for your query must be 30 minutes or more.
sajidali | 2016-11-14 14:40:29 UTC | #5
Thanks Ian, for confirmation.
anon47305574 | 2016-11-15 17:41:26 UTC | #6
which API endpoint are you targeting? Depending on which resource, you can do finer than 30min buckets
sajidali | 2016-11-16 09:47:32 UTC | #7
I am using PostConversationsAggregatesQuery.
anon47305574 | 2016-11-16 17:55:24 UTC | #8
in that case, yes, you can do granularities much finer than 30 minutes.
If you have a specific query that fails, please post the query body (json) here
sajidali | 2016-11-17 08:15:35 UTC | #9
Hi Mike, I am able to fetch data on 15 minutes granularity. But earlier this week i had this error when i tried to do the same
"{\"status\":400,\"code\":\"bad.request\",\"message\":\"Supplied granularity PT900S cannot be less than PT1800S\",\"contextId\":\"32f43072-19f0-493b-b2d2-b1d13e1adb46\",\"details\":[],\"errors\":[]}"
system | 2017-08-28 19:28:45 UTC | #10
This post was migrated from the old Developer Forum.
ref: 625