You might want to ask this in the API & Developers community forum - same website.
You probably already found this website: developers.meraki.com
You might not have found the Postman short url: postman.meraki.com/#2353e907-f391-45dd-941f-5f4f1a7f454b
Or this short URL to the live documentation:
https://dashboard.meraki.com/api_docs/v0#upload-a-floor-planThe URL you want is
https://api.meraki.com/api/v0/networks/:networkId/floorPlansbaseUrl = this is just "api.meraki.com", but you can also use "dashboard.meraki.com" or your dashboard URL such as "n124.meraki.com"
networks = this stays just "networks"
network ID = you can find your network ID's by calling the list of networks via API
https://dashboard.meraki.com/api_docs/v0#list-the-networks-in-an-organizationBasically paste this into a browser:
https://api.meraki.com/api/v0/organizations/[[organizationID]]/networksYou will need to know the organization ID number and you can find that here:
https://dashboard.meraki.com/api_docs/v0#list-the-organizations-that-the-user-has-privileges-onnetwork ID = one my campus IDs (we have 3)
Basically paste this in a browser:
https://api.meraki.com/api/v0/organizations/floorPlans = this stays "floorPlans"
floorPlanId= Yes! you will create this ID, but you do not choose it, the way to create your floor plans is with this API call:
https://dashboard.meraki.com/api_docs/v0#upload-a-floor-plan1. I would start by uploading via the dashboard and using the API just to GET and read the format.
2. Permissions are done with the API key. You'll need to read about that here:
https://documentation.meraki.com/zGeneral_Administration/Other_Topics/The_Cisco_Meraki_Dashboard_APIHere are all the parameters you will need to upload / create a floorplan:
Parameter Type Description
name string The name of your floor plan.
center object The longitude and latitude of the center of your floor plan. The 'center' or two adjacent corners (e.g. 'topLeftCorner' and 'bottomLeftCorner') must be specified. If 'center' is specified, the floor plan is placed over that point with no rotation. If two adjacent corners are specified, the floor plan is rotated to line up with the two specified points. The aspect ratio of the floor plan's image is preserved regardless of which corners/center are specified. (This means if that more than two corners are specified, only two corners may be used to preserve the floor plan's aspect ratio.). No two points can have the same latitude, longitude pair.
bottomLeftCorner object The longitude and latitude of the bottom left corner of your floor plan.
bottomRightCorner object The longitude and latitude of the bottom right corner of your floor plan.
topLeftCorner object The longitude and latitude of the top left corner of your floor plan.
topRightCorner object The longitude and latitude of the top right corner of your floor plan.
imageContents string The file contents (a base 64 encoded string) of your image. Supported formats are PNG, GIF, and JPG. Note that all images are saved as PNG files, regardless of the format they are uploaded in.
Colin Lowenberg
wireless engineer and startup founder, formerly known as "the API guy", now I run a
Furapi, the therapy dog service, and
Lowenberg Labs, an IT consulting company.