Dashboards

cancel
Showing results for 
Search instead for 
Did you mean: 

Import Dashboard via API and Overwrite Existing Dashboard

Highlighted

Import Dashboard via API and Overwrite Existing Dashboard

I had an idea to have some of the scripts my Ops team uses to update some of our dashboards. I'm testing this idea by exporting a test dashboard via the REST API, making some changes, and reuploading it. I'm doing this all in Powershell.

 

One thing I noticed is that when it is uploaded again with the same name, it doesn't overwrite the dashboard but instead creates a new one with "_1" appended.

 

Is there anyway around this so a new dashboard isn't created, but instead the exisiting one is just updated with the new config?

Import Dashboard via API and Overwrite Existing Dashboard