Export import of charts and dashboard

I want to export charts and dashboard from one instance and export to another instance whereas target instance database name might be different where as table will be same. considering this let me know how can i do it using Rest API process