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.

ldoodle
Posted 2 years ago·Last reply 2 years ago
1 comment
Joe Williams
·2 years agoYou 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.