Forum Discussion

ldoodle's avatar
ldoodle
Icon for Advisor rankAdvisor
8 months ago

Bulk change dashboards

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.

  • 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.