Migrating legacy dashboards from source workspace to target workspace

unity_Catalog
New Contributor III

I am trying to migrate legacy dashboards from source workspace to target workspace using python code. Is there any API's to GET legacy dashboards and POST API for migrating. When I am trying to migrate legacy dashboards and the underlying queries, I am not able to migrate the queries

Is cloning the legacy dashboards and then migrating them to target workspace using code is a good practice. Are there any API's cloning dashboards.