Deletes a dashboard from the application.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
If receive an error "Authorization Denied", check policy Dashboard / Delete in Access Management.
const result = await Resources.dashboards.delete("dashboard-id-123");
console.log(result); // Successfully Removed
Optional
dashboardObj: { Optional
new_Optional
setup?: objectCreates a copy of an existing dashboard.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
If receive an error "Authorization Denied", check policy Dashboard / Duplicate in Access Management.
const result = await Resources.dashboards.duplicate("dashboard-id-123", { new_label: "Copy of My Dashboard" });
console.log(result);
Modifies an existing dashboard's properties.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
If receive an error "Authorization Denied", check policy Dashboard / Edit in Access Management.
const result = await Resources.dashboards.edit("dashboard-id-123", {
label: "Updated Dashboard",
active: false
});
console.log(result); // Successfully Updated
Generates a new public access token for the dashboard.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
If receive an error "Authorization Denied", check policy in Access Management.
const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
const publicKey = await resources.dashboards.getPublicKey("dashboard-id-123", "1day");
console.log(publicKey); // { token: 'token-id-123', expire_time: '2025-01-02T00:00:00.000Z' }
Retrieves detailed information about a specific dashboard.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
If receive an error "Authorization Denied", check policy Dashboard / Access in Access Management.
const dashboardInfo = await Resources.dashboards.info("dashboard-id-123");
console.log(dashboardInfo); // { id: 'dashboard-id-123', label: 'My Dashboard', ... }
Optional
queryObj: DashboardQueryLists all dashboards from your application with pagination support.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
If receive an error "Authorization Denied", check policy Dashboard / Access in Access Management.
const result = await Resources.dashboards.list({
page: 1,
fields: ["id", "name"],
amount: 10,
orderBy: ["label", "asc"]
});
console.log(result); // [ { id: 'dashboard-id-123', label: 'My Dashboard', ...}, ... ]
Lists all analyses associated with a dashboard.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
If receive an error "Authorization Denied", check policy Dashboard / Related analysis in Access Management.
const analyses = await Resources.dashboards.listAnalysisRelated("dashboard-id-123");
console.log(analyses); // [ { id: 'analysis-id-123', name: 'Analysis #1' }, ... ]
Lists all devices associated with the dashboard.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
If receive an error "Authorization Denied", check policy Dashboard / Related devices in Access Management.
const devices = await Resources.dashboards.listDevicesRelated("dashboard-id-123");
console.log(devices); // [ { id: 'device-id-123' }, { id: 'device-id-xyz' }, ... ]
Optional
scope: objectExecutes an analysis from a widget's header button.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
Description
Creates a new dashboard in your application.
See
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
Example
If receive an error "Authorization Denied", check policy Dashboard / Create in Access Management.