cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4869
Views
3
Helpful
5
Replies

Meraki Sensor API - fetching latest sensor reading by serial

Rebry
Level 1
Level 1

Hi

For some reason ive figured i'd make an Apple homekit plugin for homebridge featuring the Meraki MT sensors.

I guess ive got to much time on my hand.

But!

Im unable to fetch the latest information based on serials.

the API keeps returning (in postman) :

{
    "errors": [
        "'serials' must be an array"
    ]
}
Could someone point me in the direction of the correct formatting for the so-called array i need to send?
1 Accepted Solution

Accepted Solutions

Raphael_L
Meraki Community All-Star
Meraki Community All-Star

Hi , could you provide us which endpoint are you using ?

I'm guessing the syntax should be something like that : serials[]="xxxx-xxxx-xxxx"

View solution in original post

5 Replies 5

Raphael_L
Meraki Community All-Star
Meraki Community All-Star

Hi , could you provide us which endpoint are you using ?

I'm guessing the syntax should be something like that : serials[]="xxxx-xxxx-xxxx"

Rebry
Level 1
Level 1

Yep! thats it @Raphletourn


Ive tried the serials=[] as postman had that as an example in the postman themplate.

And no matter how i formatted the array on the right side, it complained.

first try with https://api.meraki.com/api/v1/organizations/ORGID/sensor/readings/latest?serials[]=SERIAL and it worked 😄

Thanks!

Raphael_L
Meraki Community All-Star
Meraki Community All-Star

Excellent ! Glad you got it working !

dajirku
Cisco Employee
Cisco Employee

Hi! Any idea how to format this query in postman itself?

Ryan_Miles
Meraki Employee All-Star
Meraki Employee All-Star

image.png