Uploads a new device logs json to the user's account. The Digest header must represent the MD5 hash of the json data content.
Base64-encoded MD5 hash of the resource, per RFC 3230
array of JSON data
A string identifying the model of the device.
The deviceModel is a non-empty string that encodes the model of device. We endeavor to match each manufacturer's standard for how they represent model name in terms of casing, whether parts of the name are represented as one word or two, etc.
Globally unique to device and repeatable with each upload, e.g. device make and model with serial number
- Mock serverhttps://tidepool.redocly.app/_mock/reference/blob.v1/v1/users/{userId}/device_logs
- integrationhttps://external.integration.tidepool.org/v1/users/{userId}/device_logs
- productionhttps://api.tidepool.org/v1/users/{userId}/device_logs
- dev1https://dev1.dev.tidepool.org/v1/users/{userId}/device_logs
- qa1https://qa1.development.tidepool.org/v1/users/{userId}/device_logs
- qa2https://qa2.development.tidepool.org/v1/users/{userId}/device_logs
curl -i -X POST \
'https://tidepool.redocly.app/_mock/reference/blob.v1/v1/users/{userId}/device_logs' \
-H 'Content-Type: application/json' \
-H 'Digest: md5=HUXZLQLMuI/KZ5KDcJPcOA==' \
-H 'X-Logs-End-At-Time: 2017-02-06T02:37:46Z' \
-H 'X-Logs-Start-At-Time: 2017-02-06T02:37:46Z' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE' \
-d '[
{
"type": "send",
"managerIdentifier": "Devicey McDeviceface",
"deviceIdentifier": "MMT-1711:12345678",
"timestamp": "2017-02-06T02:37:46Z",
"message": "sent something ..."
}
]'Device logs metadata
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
{ "id": "97a9fae8a19b4da58bb48dc90c9562c9", "userId": "4d94a5fb-642e-48f1-89b9-c6a3e6145342", "digestMD5": "HUXZLQLMuI/KZ5KDcJPcOA==", "mediaType": "application/json", "size": 1024, "createdTime": "2017-02-06T02:35:46Z", "startAtTime": "2017-02-06T02:35:46Z", "endAtTime": "2017-02-06T02:36:46Z" }