There is not API to convert a Catalyst Switch in Catalyst persona, to Meraki Persona. You'll probably need to follow the guide as described in https://documentation.meraki.com/MS/Cloud-Native_IOS_XE/Migration_from_CLI-managed_Catalyst_Switches_to_Meraki-managed_Mode You might be able to write a python script that will log into your CLI managed switch, and fire the conversion commands, while grabbing the Meraki Cloud ID (serial number). Just note, that once the switch has been converted, you will not be able to receive output on the console port. So if you miss the Cloud ID when converting, you may need to open a Support Case, for them to retrieve the Cloud ID (if they are able to).
... View more