Enable multiple samples

Enable multiple samples

post

Enables samples, ensuring that they are not excluded from the dataset. Depending on the number of affected samples this will either execute immediately or return the ID of a job that will perform this action in batches.

Authorizations
Path parameters
projectIdintegerrequired

Project ID

Query parameters
categorystring · enumrequired

Which of the three acquisition categories to retrieve data from

Options: training, testing, anomaly
labelsstringoptional

Only include samples with a label within the given list of labels, given as a JSON string

Example: ["idle", "snake"]
filenamestringoptional

Only include samples whose filename includes the given filename

maxLengthintegeroptional

Only include samples shorter than the given length, in milliseconds

minLengthintegeroptional

Only include samples longer than the given length, in milliseconds

minFrequencynumberoptional

Only include samples with higher frequency than given frequency, in hertz

maxFrequencynumberoptional

Only include samples with lower frequency than given frequency, in hertz

signatureValiditystring · enumoptional

Include samples with either valid or invalid signatures

Options: both, valid, invalid
includeDisabledstring · enumoptional

Include only enabled or disabled samples (or both)

Options: both, enabled, disabled
idsstringoptional

Only include samples with an ID within the given list of IDs, given as a JSON string

Example: [1, 2, 3]
excludeIdsstringoptional

Exclude samples with an ID within the given list of IDs, given as a JSON string

Example: [4, 5, 6]
minLabelnumberoptional

Only include samples with a label >= this value

maxLabelnumberoptional

Only include samples with a label < this value

searchstringoptional

Search query

Example: <id> <name>
Responses
curl -L \
  --request POST \
  --url 'https://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/batch/enable-samples?category=training' \
  --header 'x-api-key: YOUR_API_KEY'
{
  "success": true,
  "error": "text"
}

Last updated

Was this helpful?