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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}