Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

319 B
Raw Blame
import type { Dashboard, DashboardId } from "metabase-types/api";

export const archiveDashboard = (
  id: DashboardId,
): Cypress.Chainable<Cypress.Response<Dashboard>> => {
  cy.log(`Archiving a dashboard with id: ${id}`);

  return cy.request<Dashboard>("PUT", `/api/dashboard/${id}`, {
    archived: true,
  });
};