Discussions
Stats request for today failing
Changing "is_today" to true is resulting in the following error:
{
"error": {
"code": 400,
"errors": [
{
"domain": "global",
"message": "Error parsing ProtoRPC request (Unable to parse request content: Expected type <type 'bool'> for field is_today, found true (type <type 'unicode'>))",
"reason": "badRequest"
}
],
"message": "Error parsing ProtoRPC request (Unable to parse request content: Expected type <type 'bool'> for field is_today, found true (type <type 'unicode'>))"
}
}
Here is the request
curl --request POST
--url https://dialpad.com/api/v2/stats
--header 'accept: application/json'
--header 'authorization: '
--header 'content-type: application/json'
--data '
{
"days_ago_end": 30,
"days_ago_start": 1,
"export_type": "stats",
"stat_type": "calls",
"timezone": "UTC",
"is_today": "true"
}
Any idea what is wrong?