Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

add api point

Maksim Mrug16381be21191
diff --git a/app/api/index.ts b/app/api/index.ts
index 66b2da189..3616bdb82 100644
--- a/app/api/index.ts
+++ b/app/api/index.ts
@@ -1050,3 +1050,12 @@ export const getFilters = (pid: string, type: string) =>
debug('%s', error)
throw error
})
+
+export const resetFilters = (pid: string, type: string, filters: string[]) =>
+ api
+ .delete(`log/reset-filters/${pid}?type=${type}&filters=${JSON.stringify(filters)}`)
+ .then((response) => response.data)
+ .catch((error) => {
+ debug('%s', error)
+ throw error
+ })