TagoIO SDK for JavaScript and TypeScript
    Preparing search index...

    Class Dashboards

    Index

    Constructors

    Properties

    widgets: Widgets = ...

    Methods

    • Deletes a dashboard from the application.

      Parameters

      • dashboardID: string

      Returns Promise<string>

      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
    • Creates a copy of an existing dashboard.

      Parameters

      • dashboardID: string
      • OptionaldashboardObj: { new_label?: string; setup?: object }

      Returns Promise<{ dashboard_id: string; message: string }>

      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);