Set sample metadata

Set sample metadata

Adds or updates the metadata associated to a sample.

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

Project ID

sampleId*integer

Sample ID

Body
metadataobject
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}/metadata', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text"
}

Last updated