Tidepool API/Data API//
- Create New Data Source for User
Delete All Data Sources for User
Update Data Source
Delete Data Source
Upload Data (LEGACY)
Create New Data Source fo...
Creates a new data source for the user specified by the userId. Before creating a new data source, you must first create the data provider session. See the Authentication APIs for the details on how to create data provider sessions.
Security
serverToken
Create New Data Source
- Mock serverhttps://tidepool.redocly.app/_mock/reference/data.v1/v1/users/{userId}/data_sources
- integrationhttps://external.integration.tidepool.org/v1/users/{userId}/data_sources
- productionhttps://api.tidepool.org/v1/users/{userId}/data_sources
- dev1https://dev1.dev.tidepool.org/v1/users/{userId}/data_sources
- qa1https://qa1.development.tidepool.org/v1/users/{userId}/data_sources
- qa2https://qa2.development.tidepool.org/v1/users/{userId}/data_sources
curl -i -X POST \
'https://tidepool.redocly.app/_mock/reference/data.v1/v1/users/{userId}/data_sources' \
-H 'Content-Type: application/json' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE' \
-d '{
"providerName": "dexcom",
"providerSessionId": "string",
"providerType": "oauth",
"state": "connected"
}'Data Source
Example:"2017-02-06T02:37:46Z"
An array of data set IDs. The IDs in the array must be unique.
Example:"2017-02-06T02:37:46Z"
Example:"c0ce05326529c6b35b0f4a568a344026"
Example:"2017-02-06T02:37:46Z"
Example:"2017-02-06T02:37:46Z"
Example:"2017-02-06T02:37:46Z"
State of the data source.
Enum:"connected""disconnected""error"
Example:"connected"
String representation of a Tidepool User ID. Old style IDs are 10-digit strings consisting of only hexadeximcal digits. New style IDs are 36-digit UUID v4
Response
{ "createdTime": "2017-02-06T02:37:46Z", "dataSetIds": [ "ce8cc5f7595575945f91fc6710db6fef" ], "earliestDataTime": "2017-02-06T02:37:46Z", "id": "c0ce05326529c6b35b0f4a568a344026", "lastImportTime": "2017-02-06T02:37:46Z", "latestDataTime": "2017-02-06T02:37:46Z", "modifiedTime": "2017-02-06T02:37:46Z", "providerName": "dexcom", "providerSessionId": "string", "providerType": "oauth", "revision": 0, "state": "connected", "userId": "string" }