Skip to content

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

311 B
Raw Blame
import type { Document, DocumentId } from "metabase-types/api";

export const archiveDocument = (
  id: DocumentId,
): Cypress.Chainable<Cypress.Response<Document>> => {
  cy.log(`Archiving a document with id: ${id}`);

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