Skip to content

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

249 B
Raw Blame
import type { CollectionId } from "metabase-types/api";

export const archiveCollection = (id: CollectionId) => {
  cy.log(`Archiving a collection with id: ${id}`);

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