Use API to bulk import/export dashboards

Hi,

I’m trying to use the documented API’s to export all my dashboards from one grafana instance to another.
But I’m stuck on importing the actual dashboard schemea. There is an API to export dashboard versions which appear to hold this information but no API to create a new version. What am I missing? is there a way to do this?

P.s. I did look at Grafcli but it appears to be update with newer grafana versions and doesn’t work for me.

Thanks