curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/{sampleId}/edit-label \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"label": "water-hammer"
}'
{
"success": true,
"error": "<string>"
}
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.
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/{sampleId}/edit-label \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"label": "water-hammer"
}'
{
"success": true,
"error": "<string>"
}
OK
The response is of type object
.