Skip to content

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

283 B
Raw Blame
import type { Card } from "metabase-types/api";

export const archiveQuestion = (
  id: Card["id"],
): Cypress.Chainable<Cypress.Response<Card>> => {
  cy.log(`Archiving a question with id: ${id}`);

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