Exporting and Importing Dashboards by Name

I have dashboards that I would like to export by name. The exported json would then be used to create an identical dashboard in another environment. I tried using Grafonnet to build the dashboards(“Dashboards as code”) but I found it more complicated and inflexible.

The dashboard are pretty much templated so I can run a series of find/replace commands to update the json to make it appropritate for each environment.

One more thing, If I export the dashboard using the UI, can I import this json with the API?