feat(api.js): add patchRecorder() helper for PATCH /recorders/:id

This commit is contained in:
Zac Gaetano 2026-05-18 23:32:33 -04:00
parent 7260b188c5
commit 79d44826fe

View file

@ -401,6 +401,10 @@ async function createRecorder(data) {
return api('/recorders', { method: 'POST', body: JSON.stringify(data) }); return api('/recorders', { method: 'POST', body: JSON.stringify(data) });
} }
async function patchRecorder(id, data) {
return api(`/recorders/${id}`, { method: 'PATCH', body: JSON.stringify(data) });
}
async function startRecorder(id) { async function startRecorder(id) {
return api(`/recorders/${id}/start`, { method: 'POST' }); return api(`/recorders/${id}/start`, { method: 'POST' });
} }