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) {