replaceSiteMapImage

POST https://{{host}}/api/v1/sites/:site_id/maps/:map_id/replace

This works like an PUT where the image will be replaced. If transform is provided, all the locations of the objects on the map (AP, Zone, Vbeacon, Beacon) will be transformed as well (relative to the new Map)

#### Body Parameters Parameter|Type|Description :-------------: |:-------------: |:-------------: transform|object|The name of the map, optional x|float|where the (0, 0) of the new image is relative to the original map, default is 0 y|float|where the (0, 0) of the new image is relative to the original map, default is 0 scale|float|whether to scale the replacing image, default is 1 rotation|int|whether to rotate the replacing image, default is 0, in degrees

Request Body

[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"json", "value"=>"{\n    \"transform\": {\n        \"x\": 200,\n        \"y\": 150,\n        \"scale\": 1,\n        \"rotate\": 0\n    }\n}", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
X-CSRFTokenstring
Content-Typestring