cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
253
Views
0
Helpful
0
Replies
Beginner

analytics api

I am trying the example in the documentation:

 

POST /api/analytics/v1/deviceCount HTTP/1.1
Host: cmxhost.local
Content-Type: application/json
Authorization: Basic --omitted
cache-control: no-cache
Postman-Token: bf5203b6-030b-4f5b-b528-8cef95d039f4
{
"period": "today",
"timeRange": "00:00-23:59",
"granularity": "Building",
"areas": ""
}

I try different variables, but no matter what I try I always get this error:

{
"title": "CMX Error",
"detail": "timeRange must be specified as HH:mm-HH:mm, or 'now' period must be in yyyy-MM-dd[;yyyy-MM-dd] format if not one of the predefined types. If passing two dates, they should be in order ",
"httpStatus": 500
}

Everyone's tags (1)
CreatePlease to create content
This widget could not be displayed.