Edit label

Edit label

Sets the label (also known as class) of the sample. Use the same label for similar types of data, as they are used during training.

POSThttps://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/{sampleId}/edit-label
Path parameters
projectId*integer

Project ID

sampleId*integer

Sample ID

Body
label*string

New label for this sample

Example: "water-hammer"
Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

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

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/{sampleId}/edit-label', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "label": "water-hammer"
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text"
}

Last updated