Are there examples of exporting dashboards via the UI and re-creating dashboards using the export JSON?

I am looking for examples that show how to successfully do the following:

  1. Design and refine dashboards in a Dev environment
  2. Export the dashboard and check the JSON into source control.
  3. Create a pipeline that pulls the JSON from a repo and then calls the HTTP API (Dashboards) and creates a new dashboard based on what I’ve checked in.

So far I’ve done 1 and 2. But I can’t get it 3 to work. Surely someone has done this before. I hope?