Update structured labels
Set structured labels for a sample. If a sample has structured labels the label
column is ignored, and the sample is allowed to have multiple labels. An array of { startIndex, endIndex, label } needs to be passed in with labels for the complete sample (see valuesCount
to get the upper bound). endIndex is inclusive. If you pass in an incorrect array (e.g. missing values) you'll get an error back.
Authorizations
Path parameters
projectIdintegerRequired
Project ID
sampleIdintegerRequired
Sample ID
Body
Responses
200
OK
application/json
post
POST /v1/api/{projectId}/raw-data/{sampleId}/structured-labels HTTP/1.1
Host: studio.edgeimpulse.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"structuredLabels": [
{
"startIndex": 1,
"endIndex": 1,
"label": "text"
}
]
}
200
OK
{
"success": true,
"error": "text"
}
Last updated
Was this helpful?