Batch enable data

Batch enable data

Batch enable project data samples by dataId

POSThttps://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/projects/data/enable
Path parameters
organizationId*integer

Organization ID

Body
sampleIdsarray of integer
Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

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

count*integer
Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/projects/data/enable', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text"
}

Last updated