POST
/
api
/
{projectId}
/
device
/
{deviceId}
/
start-sampling
Start sampling
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
}

Authorizations

x-api-key
string
header
required

Path Parameters

projectId
integer
required

Project ID

deviceId
string
required

Device ID

Body

application/json

Response

200 - application/json

OK

The response is of type object.