Skip to content

Upload Data to Data Set

Request

Uploads data to a user's data set identified by the dataSetId.

Security
sessionToken
Path
dataSetIdstring, [ 17 .. 37 ] characters(Data Set ID)^(upid_[0-9a-f]{12}|upid_[0-9a-f]{32}|[0-9a-f...required

Data Set ID

Example:ce8cc5f7595575945f91fc6710db6fef
Bodyapplication/json
Array [
One of:

Alert presented to user

]
curl -i -X POST \
  https://tidepool.redocly.app/_mock/reference/data.v1/v1/datasets/ce8cc5f7595575945f91fc6710db6fef/data \
  -H 'Content-Type: application/json' \
  -H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE' \
  -d '[
    {
      "annotations": [
        {
          "code": "wrong-device-time"
        }
      ],
      "archivedDatasetId": "ce8cc5f7595575945f91fc6710db6fef",
      "associations": [
        {
          "type": "blob",
          "reason": "string",
          "id": "string",
          "url": "http://example.com"
        }
      ],
      "clockDriftOffset": 0,
      "conversionOffset": 0,
      "createdTime": "2017-02-06T02:37:46Z",
      "deduplicator": {
        "hash": "string",
        "version": "2.36.1",
        "name": "org.tidepool.uploader"
      },
      "deletedTime": "2017-02-06T02:37:46Z",
      "deviceId": "MMT-1711:12345678",
      "deviceTime": "2017-02-06T02:37:46",
      "guid": "string",
      "history": [
        {
          "time": "2017-02-06T02:37:46Z",
          "changes": {
            "op": "add",
            "path": "string",
            "value": null
          }
        }
      ],
      "id": "ce8cc5f7595575945f91fc6710db6fef",
      "location": {
        "name": "string",
        "gps": {
          "origin": {
            "id": "string",
            "name": "string",
            "payload": {},
            "time": "2017-02-06T02:37:46Z",
            "type": "device",
            "version": "string"
          },
          "longitude": {
            "units": "degrees",
            "value": -122.1625595
          },
          "latitude": {
            "units": "degrees",
            "value": 37.4454404
          },
          "horizontalAccuracy": {
            "value": 42,
            "units": "meters"
          },
          "verticalAccuracy": {
            "value": 42,
            "units": "meters"
          },
          "floor": -1000,
          "elevation": {
            "units": "meters",
            "value": 42
          }
        }
      },
      "modifiedTime": "2017-02-06T02:37:46Z",
      "notes": [
        "string"
      ],
      "origin": {
        "id": "string",
        "name": "string",
        "payload": {},
        "time": "2017-02-06T02:37:46Z",
        "type": "device",
        "version": "string"
      },
      "payload": {},
      "source": "carelink",
      "tags": [
        "string"
      ],
      "time": "2017-02-06T02:37:46Z",
      "timezone": "Europe/London",
      "timezoneOffset": -420,
      "type": "alert",
      "uploadId": "0d92d5c1c22117a18f3620b9e24d3c06",
      "name": "string",
      "priority": "critical",
      "trigger": "delayed",
      "triggerDelay": 0,
      "sound": "name",
      "soundName": "string",
      "issuedTime": "2017-02-06T02:37:46Z",
      "acknowledgedTime": "2017-02-06T02:37:46Z",
      "retractedTime": "2017-02-06T02:37:46Z"
    }
  ]'

Responses

Data List

Bodyapplication/json
Array [
One of:

Alert presented to user

]
Response
[ { "annotations": [ … ], "archivedTime": "2017-02-06T02:37:46Z", "archivedDatasetId": "ce8cc5f7595575945f91fc6710db6fef", "associations": [ … ], "clockDriftOffset": 0, "conversionOffset": 0, "createdTime": "2017-02-06T02:37:46Z", "createdUserId": "string", "deduplicator": { … }, "deletedTime": "2017-02-06T02:37:46Z", "deletedUserId": "string", "deviceId": "MMT-1711:12345678", "deviceTime": "2017-02-06T02:37:46", "guid": "string", "history": [ … ], "id": "ce8cc5f7595575945f91fc6710db6fef", "location": { … }, "modifiedTime": "2017-02-06T02:37:46Z", "modifiedUserId": "string", "notes": [ … ], "origin": { … }, "payload": {}, "source": "carelink", "tags": [ … ], "time": "2017-02-06T02:37:46Z", "timezone": "Europe/London", "timezoneOffset": -420, "type": "alert", "uploadId": "0d92d5c1c22117a18f3620b9e24d3c06", "name": "string", "priority": "critical", "trigger": "delayed", "triggerDelay": 0, "sound": "name", "soundName": "string", "issuedTime": "2017-02-06T02:37:46Z", "acknowledgedTime": "2017-02-06T02:37:46Z", "retractedTime": "2017-02-06T02:37:46Z" } ]