Skip to content

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

312 B
Raw Blame
import type {
  NativeQuerySnippet,
  NativeQuerySnippetId,
} from "metabase-types/api";

export const updateSnippet = (
  id: NativeQuerySnippetId,
  data: Partial<NativeQuerySnippet>,
) => {
  cy.log(`Updating a snippet with id: ${id}`);
  return cy.request("PUT", `/api/native-query-snippet/${id}`, data);
};