cURL
curl --request POST \ --url https://studio.edgeimpulse.com/v1/api/{projectId}/device/{deviceId}/start-sampling \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "label": "<string>", "lengthMs": 123, "category": "training", "intervalMs": 123, "sensor": "<string>", "labelColor": "<string>", "collectedSampleCount": 123, "targetSampleCount": 123 }'
{ "success": true, "error": "<string>", "id": 123 }
Start sampling on a device. This function returns immediately. Updates are streamed through the websocket API.
Project ID
Device ID
OK
The response is of type object.
object