Raw data

Enable multiple samples

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.

post/api/{projectId}/raw-data/batch/enable-samples

Request

Path parameters

projectIdinteger required

Project ID

Query parameters

category'training' | 'testing' | 'validation' | 'post-processing' | 'all' required

Which of the three acquisition categories to retrieve data from

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

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

filenamestring

Only include samples whose filename includes the given filename

maxLengthinteger

Only include samples shorter than the given length, in milliseconds

minLengthinteger

Only include samples longer than the given length, in milliseconds

minFrequencynumber

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

maxFrequencynumber

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

signatureValidity'both' | 'valid' | 'invalid'

Include samples with either valid or invalid signatures

includeDisabled'both' | 'enabled' | 'disabled'

Include only enabled or disabled samples (or both)

idsstring
Example:[1, 2, 3]

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

excludeIdsstring
Example:[4, 5, 6]

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

minLabelnumber

Only include samples with a label >= this value

maxLabelnumber

Only include samples with a label < this value

searchstring
Example:<id> <name>

Search query

dataType'audio' | 'image'

Include only samples with a particular data type

minIdinteger

Include only samples with an ID >= this value

maxIdinteger

Include only samples with an ID < this value

metadatastring
Example:Example 1: returns samples where metadata key "foo" is 'bar' or 'baz' AND metadata key "k" is "v". [ { "no_metadata": true }, { "filters_combinator": "and" }, { "key": "foo", "op": "eq", "values": ["bar", "baz"] }, { "key": "k", "op": "eq", "values": ["v"] } ] Example 2: returns samples where metadata key "foo" is not 'bar'. Samples without any metadata are filtered out. [ { "no_metadata": false }, { "filters_combinator": "or" }, { "key": "foo", "op": "neq", "values": ["bar"] } ]

Filter samples by metadata key-value pairs, provided as a JSON string. Each item in the filter list is an object with the following properties: - "key": Metadata key to filter on. - "op": Operator ("eq" for positive match, "neq" for negative match). - "values": (optional) Array of values to match/exclude. If omitted or empty, matches/excludes all values for the key. In addition to filter objects, the following option objects can be specified: - { "no_metadata": boolean } - If true, include samples without any metadata - { "filters_combinator": ("and" | "or") } - Specifies the combinator and matching mode: - "and": All filter items must match (logical AND). - "or": Any filter item may match (logical OR); samples with metadata keys not present in the filters are included.

minDatestring date-time
Example:2023-01-01T00:00:00.000Z

Only include samples that where added after the date given

maxDatestring date-time
Example:2024-12-31T00:00:00.000Z

Only include samples that were added before the date given

Response

OK

OR

Example response

{
  "id": 12873488112
}

Changes

No recorded changes to this operation across all 1 revision of this API.