cURL
curl --request POST \ --url https://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/{sampleId}/segment \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "segments": [ { "startMs": 123, "endMs": 123 } ] }'
{ "success": true, "error": "<string>" }
Slice a sample into multiple segments. The original file will be marked as deleted, but you can crop any created segment to retrieve the original file.
Project ID
Sample ID
Show child attributes
OK
Whether the operation succeeded
Optional error description (set if 'success' was false)
Was this page helpful?