Skip to content
CARP Docs
Ask AISystemLightDark

Query data stream by time

Copy MarkdownOpen inView as MarkdownOpen in Scira AIOpen in ChatGPTOpen in ClaudeOpen in Cursor
POST
/api/data-stream-service/query-by-time

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.

bearer
headerAuthorizationBearer <token>

Provide the username and password of the user

from*string

Inclusive start of the updated_at window, as an ISO-8601 instant (e.g. 2026-08-01T00:00:00Z).

Formatdate-time
to*string

Inclusive end of the updated_at window, as an ISO-8601 instant (e.g. 2026-08-05T00:00:00Z).

Formatdate-time
application/json
  1. body
studyDeploymentId*
deviceRoleName*string
dataType*

Response body

OK

*/*
  1. response
isEmpty*boolean
sequences*
Example request
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": {}}

Quick links

Page · DocumentationCARP DocumentationPage · DocumentationIntroductionPage · DocumentationQuickstartPage · DocumentationTerminologyPage · DocumentationArchitecture