Skip to main content

Dashboards

Reporting dashboards (v2 manager API) and their user access. Available as mgr.dashboards / mgr.Dashboards / mgr.dashboards.

CRUD (auto-paginated list)

for await (const d of mgr.dashboards.list()) console.log(d.id, d.name);
const all = await mgr.dashboards.listAll();
const created = await mgr.dashboards.create({ /* DashboardCreateBody */ });
await mgr.dashboards.update(created.item.id, { /* DashboardUpdateBody */ });
await mgr.dashboards.delete(created.item.id);

Dashboard users

Grant or revoke a user's access to a dashboard (add by email, remove by user id).

const users = await mgr.dashboards.listUsers(dashboardId);
await mgr.dashboards.addUser(dashboardId, "user@example.com");
await mgr.dashboards.removeUser(dashboardId, userId);

Reference