POST
/
api
/
{projectId}
/
raw-data
/
store-segment-length
Store the last segment length
curl --request POST \
  --url https://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/store-segment-length \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "segmentLength": 1000
}'
{
  "success": true,
  "error": "<string>"
}

Authorizations

x-api-key
string
header
required

Path Parameters

projectId
integer
required

Project ID

Body

application/json
segmentLength
number
required

Last segment length in milliseconds.

Example:

1000

Response

200 - application/json

OK

success
boolean
required

Whether the operation succeeded

error
string

Optional error description (set if 'success' was false)