Loading...
Crop a sample to within a new range.
Project ID
Sample ID
New start index of the sample
0
New end index of the sample
128
OK
Whether the operation succeeded
Optional error description (set if 'success' was false)
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/{sampleId}/crop', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "cropStart": 0, "cropEnd": 128 }), }); const data = await response.json();
{ "success": false, "error": "text", "requiresProcessing": false }