Upload A Floor Plan

POST {{baseUrl}}/networks/:networkId/floorPlans

Upload a floor plan #### Body Parameters 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.

Request Body

{"name"=>"<string>", "imageContents"=>"<byte>", "center"=>{"lat"=>"<float>", "lng"=>"<float>"}, "bottomLeftCorner"=>{"lat"=>"<float>", "lng"=>"<float>"}, "bottomRightCorner"=>{"lat"=>"<float>", "lng"=>"<float>"}, "topLeftCorner"=>{"lat"=>"<float>", "lng"=>"<float>"}, "topRightCorner"=>{"lat"=>"<float>", "lng"=>"<float>"}}

HEADERS

KeyDatatypeRequiredDescription
X-Cisco-Meraki-API-Keynull
Content-Typestring

RESPONSES

status: Created

{&quot;floorPlanId&quot;:&quot;g_1234567&quot;,&quot;imageUrl&quot;:&quot;https://meraki-na.s3.amazonaws.com/assets/...&quot;,&quot;imageUrlExpiresAt&quot;:&quot;2019-06-11 16:04:54 +00:00&quot;,&quot;imageExtension&quot;:&quot;png&quot;,&quot;imageMd5&quot;:&quot;2a9edd3f4ffd80130c647d13eacb59f3&quot;,&quot;name&quot;:&quot;HQ Floor Plan&quot;,&quot;devices&quot;:[{&quot;name&quot;:&quot;My AP&quot;,&quot;lat&quot;:37.4180951010362,&quot;lng&quot;:-122.098531723022,&quot;serial&quot;:&quot;Q234-ABCD-5678&quot;,&quot;mac&quot;:&quot;00:11:22:33:44:55&quot;,&quot;model&quot;:&quot;MR34&quot;,&quot;address&quot;:&quot;1600 Pennsylvania Ave&quot;,&quot;notes&quot;:&quot;My AP&#39;s note&quot;,&quot;lanIp&quot;:&quot;1.2.3.4&quot;,&quot;tags&quot;:[&quot;recently-added&quot;],&quot;networkId&quot;:&quot;N_24329156&quot;,&quot;beaconIdParams&quot;:{&quot;uuid&quot;:&quot;00000000-0000-0000-0000-000000000000&quot;,&quot;major&quot;:5,&quot;minor&quot;:3},&quot;firmware&quot;:&quot;wireless-25-14&quot;,&quot;floorPlanId&quot;:&quot;g_1234567&quot;}],&quot;width&quot;:100,&quot;height&quot;:150.1,&quot;center&quot;:{&quot;lat&quot;:37.770040510499996,&quot;lng&quot;:-122.38714009525},&quot;bottomLeftCorner&quot;:{&quot;lat&quot;:37.7696461495,&quot;lng&quot;:-122.3880815506},&quot;bottomRightCorner&quot;:{&quot;lat&quot;:37.771524649766654,&quot;lng&quot;:-122.38795275055205},&quot;topLeftCorner&quot;:{&quot;lat&quot;:37.769700101836364,&quot;lng&quot;:-122.3888684251381},&quot;topRightCorner&quot;:{&quot;lat&quot;:37.77157860210302,&quot;lng&quot;:-122.38873962509012}}