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.
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>"
}
OK
The response is of type object
.