Query data stream by time
POST
Retrieve a data stream by local update time. Behaves like the core getDataStream, but selects
data points whose local updated_at timestamp falls within the inclusive [from, to] window
instead of a sequence-id range.
The request body is a serialized core DataStreamId (the same type used by getDataStream).
from and to are ISO-8601 instants passed as query parameters. The response body is a
serialized DataStreamBatch.
bearerheader
AuthorizationBearer <token>Provide the username and password of the user
from*stringInclusive start of the updated_at window, as an ISO-8601 instant (e.g. 2026-08-01T00:00:00Z).
Format
date-timeto*stringInclusive end of the updated_at window, as an ISO-8601 instant (e.g. 2026-08-05T00:00:00Z).
Format
date-timeapplication/json- body
studyDeploymentId*deviceRoleName*stringdataType*OK
*/*- response
isEmpty*booleansequences*curl -X POST 'https://dev.carp.dk/api/data-stream-service/query-by-time?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z' \ -H 'Content-Type: application/json' \ -d '{ "studyDeploymentId": {}, "deviceRoleName": "string", "dataType": {}}'Example response
{ "isEmpty": true, "sequences": {}}