object dashboard.update(object/array dashboards)
This method allows to update existing dashboards.
This method is available to users of any type. Permissions to call the method can be revoked in user role settings. See User roles for more information.
(object/array) Dashboard properties to be updated.
dashboardid property must be defined for each dashboard, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.
Additionally to the standard dashboard properties, the method accepts the following parameters.
|pages||array||Dashboard pages to replace the existing dashboard pages.
Dashboard pages are updated by the
|users||array||Dashboard user shares to replace the existing elements.|
|userGroups||array||Dashboard user group shares to replace the existing elements.|
(object) Returns an object containing the IDs of the updated dashboards under the
Rename a dashboard to "SQL server status".
Rename the first dashboard page, replace widgets on the second dashboard page and add a new page as the third one. Delete all other dashboard pages.
Available only for admins and super admins.
CDashboard::update() in ui/include/classes/api/services/CDashboard.php.