Import Datastream Values
Last updated
Last updated
This feature enables you to import historical data for a device's datastream. It's useful for scenarios where data isn't streamed in real-time but is instead collected on the device and sent periodically as a dataset.
For instance, if your device is usually offline and only connects intermittently to upload a batch of data points.
A maximum of 10,000 data points per device per day is allowed, regardless of whether the data is sent in multiple sets or in one batch.
This limit may vary depending on your subscription plan and is consistent with the Upload a Set of Timestamped Data endpoint in the Device HTTPS API.
POST
https://{server_address}/api/v1/organization/device/import/batch
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Request examples:
Authorization*
Bearer {access_token}
Content-Type*
application/json
deviceId*
1
Device identifier.
dataStreamId*
1
Device datastream identifier.
values*
Datastream values to import.
values[x].value*
1
Datastream value.
values[x].ts*
String
Unix epoch time in milliseconds representing datastream value creation time.
Note: Timestamps could be only one month in the past. Older timestamps won't be accepted.