cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
517
Views
0
Helpful
3
Replies
vyedhuna
Cisco Employee

CMX Analytics API Error

Our Partner is facing the exact issue as reported in this link:   https://communities.cisco.com/thread/63641?start=0&tstart=0

Is there a fix or workaround for this problem ? 

Capture.JPG

The parameters of request body is json array. However, I tried to input some parameters in json array format in its body window, the response always tells me I miss key parameters, just like below:

Capture.JPG

Appreciate early response for this.

3 REPLIES 3
matfarre
Frequent Contributor

Hi,

It seems the /apidocs/analytics-api may be a bit buggy.  Try using Chrome Postman with Basic Auth learning/learning and Content-Type: application/json.

Matt

POST /sandbox/mse/api/analytics/v1/deviceDwell HTTP/1.1

Host: devnetapi.cisco.com

Authorization: Basic YWRtaW46Q2lzY28xMjM0NSE=

Content-Type: application/json

Cache-Control: no-cache

Postman-Token: e5896ee9-6e37-beee-c1a9-b4d783406e48

{

  "granularity": "null",

  "period": "forever",

  "timeRange": "now",

  "areas": ""

}

Hi Matthew,

Thanks for the inputs,  but it didn't help as per the partner (Output shown below).   Any other tricks to make it work ? IMG_26082016_101353.pngCapture.png

matfarre
Frequent Contributor

Hi,

404 - standard HTTP response when client is able to communicate with the host but the host could not find what was requested.  In this case, the protocol HTTPS is needed.  The ports 80 and 443 are normally open on your router, so make sure you are using the https:// prefix in the REST API call.

Matt

Content for Community-Ad

This widget could not be displayed.