07-12-2024 07:07 AM
a Postman Visualization for the Meraki API Collection
We just made some nice updates to the Postman collection, enabling a simpler way to view, transform and export the data.
What does it do?
Allows Postman users to select "Visualize" and have their complex JSON turn into a beautiful spreadsheet.
Who's it for?
Anybody who has a Meraki API key, a free copy of Postman, and would like to easily generate their own reports using hundreds of API operations.
How do I get it?
Just use the Meraki Postman Collection.
Here's a quick look at what you can do with JSONata expressions.
Source Data
[
{
"occurredAt": "2024-07-12T08:14:47Z",
"alertTypeId": "motion_alert",
"device": {
"name": "Home - Front Door",
"serial": "Q2FV-PF2X-XXXX",
"model": "MV12WE"
},
"alertData": {
"imageUrl": "https://example.s3.eu-central-1.amazonaws.com/sp/vf/..."
}
}
]Extract Device Names:
$.device.name
Output:
["Home - Front Door"]
Extract Unique Device Models:
$.device.model ~> $distinct
Output:
["MV12WE"]
Filter Alerts by a Specific Type:
$[alertTypeId="motion_alert"]
Output:
[
{
"occurredAt": "2024-07-12T08:14:47Z",
"alertTypeId": "motion_alert",
...
}
]Count the Number of Alerts:
$count($)
Output:
1
{
"email": $count($.destinations.email),
"push": $count($.destinations.push),
"sms": $count($.destinations.sms),
"webhook": $count($.destinations.webhook)
}Output:{
"email": 1,
"push": 1,
"sms": 1,
"webhook": 1
}Get the Meraki Postman Collection to easily interact with the API and quickly generate reports.
07-12-2024 05:48 PM
Nice! I use a completely separate tool just to do this now (copy and paste the JSON and then visualise it).
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide