Trying to pull custom interval data for voice metrics using the JS SDK. The analyticsConversationsAggregatesQuery endpoint returns a 400 Bad Request when I set granularity to INTERVAL with a timeInterval of PT1H. The payload looks valid based on the OpenAPI spec.
const query = {
entities: [{ id: 'my-org-id', type: 'organization' }],
interval: '2023-10-01/2023-10-02',
granularity: 'INTERVAL',
timeInterval: 'PT1H',
view: 'conversationMetrics'
};
Error message says timeInterval is invalid for this view. Am I missing a required parameter or is this a known SDK bug?