How can we override the start_time and end_time in https://www.twilio.com/docs/taskrouter/api/worker/statistics?code-sample=code-retrieve-a-specific-workers-statistics&code-language=Node.js&code-sdk-version=3.x.
I tried to pass the startDate and endDate as below, but in the response the start_time and end_time seems to be unaffected.
var response = await fetch(`https://xxxxxxxxxxxxxxxxx`, {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
method: 'POST',
body: (
`workerSid=${manager.workerClient.sid}`
+ `&startDate=${isoYesterdayDate}`
// + `&endDate=${isoCurrentDate}`
)
})
Can any one please help me fix this.