Question

Bulk change dashboards

  • 8 February 2024
  • 1 reply
  • 17 views

Userlevel 4
Badge +5

Hi,

The default LM dashboards use the built-in /Devices by Type resource group. If we rename this group, it doesn’t update the dashboard config. So can we programmatically change it on ALL the default LM dashboards and widgets?

I would like to rename Devices by Type (or maybe even move it to another folder) so it doesn’t appear mingled with all my other resource groups, e.g. to ‘_Devices by Type’ so it’s at the top.

 


1 reply

Userlevel 6
Badge +13

You can, but its sorta a pain. First you loop through, get all of the dashboards. This will return a json structure that defines the dashboard. You then alter the widgetTokens portion of that json to suite your needs. Then do a PUT back to the same id using the newly altered json structure as the data body.

Reply