Creates a new binary blob in the user's account. The Content-Type and the Digest headers must represent the media type and MD5 hash of the binary blob content, respectively.
Security
sessionToken
Content type of the resource
Example:application/octet-stream
Examples:
binary
application/octet-streamtext
text/plaintext UTF-8
text/plain; charset=utf-8HTML
text/htmlJSON
application/jsonXML
application/xmlXML text
text/xmlJPEG image
image/jpegPNG image
image/pngMPEG4 video
video/mp4PDF
application/pdfZIP
application/zipBase64-encoded MD5 hash of the resource, per RFC 3230
Example:md5=HUXZLQLMuI/KZ5KDcJPcOA==
- Mock serverhttps://tidepool.redocly.app/_mock/reference/blob.v1/v1/users/{userId}/blobs
- integrationhttps://external.integration.tidepool.org/v1/users/{userId}/blobs
- productionhttps://api.tidepool.org/v1/users/{userId}/blobs
- dev1https://dev1.dev.tidepool.org/v1/users/{userId}/blobs
- qa1https://qa1.development.tidepool.org/v1/users/{userId}/blobs
- qa2https://qa2.development.tidepool.org/v1/users/{userId}/blobs
curl -i -X POST \
'https://tidepool.redocly.app/_mock/reference/blob.v1/v1/users/{userId}/blobs' \
-H 'Content-Type: */*' \
-H 'Digest: md5=HUXZLQLMuI/KZ5KDcJPcOA==' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE' \
-d stringBinary blob 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
digestMD5string, = 24 characters(MD5 Digest)^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[...required
Example:"HUXZLQLMuI/KZ5KDcJPcOA=="
Media type as defined in RFC 2045.
Example:"application/octet-stream"
Example:"2017-02-06T02:37:46Z"
Example:"2017-02-06T02:37:46Z"
Example:"2017-02-06T02:37:46Z"
Response
{ "id": "97a9fae8a19b4da58bb48dc90c9562c9", "userId": "string", "digestMD5": "HUXZLQLMuI/KZ5KDcJPcOA==", "mediaType": "application/octet-stream", "size": 1024, "status": "created", "createdTime": "2017-02-06T02:37:46Z", "modifiedTime": "2017-02-06T02:37:46Z", "deletedTime": "2017-02-06T02:37:46Z", "revision": 42 }