Start sampling

POST {{baseUrl}}/api/:projectId/device/:deviceId/start-sampling

Start sampling on a device. This function returns immediately. Updates are streamed through the websocket API.

Request Body

{"label"=>"<string>", "lengthMs"=>"<integer>", "category"=>"<string>", "intervalMs"=>"<number>", "sensor"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;id&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}