From 1535c05fa5bb1b6eabce6d6f67d3c3da109dfb76 Mon Sep 17 00:00:00 2001 From: Rohit Date: Thu, 1 May 2025 18:07:36 +0530 Subject: [PATCH] feat: edit update recording --- src/api/storage.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/api/storage.ts b/src/api/storage.ts index e3359563..295f340c 100644 --- a/src/api/storage.ts +++ b/src/api/storage.ts @@ -28,7 +28,12 @@ export const getStoredRecordings = async (): Promise => { } }; -export const updateRecording = async (id: string, data: { name?: string; limit?: number, credentials?: Credentials, targetUrl?: string }): Promise => { +export const updateRecording = async (id: string, data: { + name?: string; + limits?: Array<{pairIndex: number, actionIndex: number, argIndex: number, limit: number}>; + credentials?: Credentials; + targetUrl?: string +}): Promise => { try { const response = await axios.put(`${apiUrl}/storage/recordings/${id}`, data); if (response.status === 200) {