Change dataset

Change dataset

Change the dataset for selected data items.

POSThttps://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/data/change-dataset
Path parameters
organizationId*integer

Organization ID

Query parameters
Body
dataset*string
Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

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

id*integer

Job identifier. Status updates will include this identifier.

Example: 12873488112
Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/data/change-dataset?dataIds=text', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "dataset": "text"
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text",
  "id": 12873488112
}

Last updated