If I understand the documentation correctly, you won't be able to move a switch without losing the config:
https://documentation.meraki.com/zGeneral_Administration/Inventory_and_Devices/Moving_Devices_Betwee...
However, here's what you can do. Plan for an outage:
Use Postman to pull down as many settings as possible. Pay special attention to your switchports.
Save the resulting JSON in a folder.
Move the switch.
Upload those settings to your switch.
You could also get clever and write a script to pull your settings, move the switch, then update the moved switch with the settings.