{"items":[{"type":"link","label":"Blob API","link":"/reference/blob.v1","routeSlug":"/reference/blob.v1","content":{"contentType":"overview","meta":{"name":"Blob API"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"blob.v1.json","url":"/_bundle/reference/blob.v1.json?download"},{"kind":"download","label":"blob.v1.yaml","url":"/_bundle/reference/blob.v1.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"externallink","title":"URL","titleTranslationKey":"info.contact.url","label":"https://www.tidepool.org/","url":"https://www.tidepool.org/"},{"kind":"email","title":"Tidepool","email":"support@tidepool.org","label":"support@tidepool.org","withCopyButton":true,"copyContent":"support@tidepool.org"},{"kind":"externallink","title":"License","titleTranslationKey":"info.license","label":"BSD-2-Clause","url":"https://github.com/tidepool-org/platform/blob/master/LICENSE"},{"kind":"externallink","label":"Terms of Service","labelTranslationKey":"info.termsOfService","url":"https://developer.tidepool.org/terms-of-use"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Blob API (1.0)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The Tidepool API is an HTTP REST API used by Tidepool clients use to communicate with the Tidepool Platform."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"For more information, see the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/docs/quick-start"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Getting Started"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" section."},"children":[]}]}]}]}],"sectionId":"/reference/blob.v1"}],"sectionId":"/reference/blob.v1"}]}]}},{"type":"group","label":"Internal","link":"/reference/blob.v1/internal","routeSlug":"/reference/blob.v1/internal","items":[],"content":{"contentType":"group","meta":{"name":"Internal"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Internal","showPageActions":true},{"nodeType":"markdoc","content":"APIs intended for internal use by Tidepool."}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/internal"}],"panels":[]}]}},{"type":"group","label":"Blobs","link":"/reference/blob.v1/blobs","routeSlug":"/reference/blob.v1/blobs","items":[{"label":"List Binary Blobs","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/reference/blob.v1/blobs/listblobs","routeSlug":"/reference/blob.v1/blobs/listblobs","metadata":{"seo":{"title":"List Binary Blobs","description":"List previously uploaded binary blobs in the user's account. The list can be filtered with mediaType and status query parameters."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"ListBlobs","name":"List Binary Blobs","isWebhook":false,"pointer":"/paths/~1v1~1users~1{userId}~1blobs/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List Binary Blobs","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"List previously uploaded binary blobs in the user's account. The list can be filtered with "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"mediaType"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"status"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"sessionToken","scopes":[],"type":"apiKey","in":"header","paramName":"X-Tidepool-Session-Token","description":"Tidepool Session Token"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"userId","in":"path","schemaId":"schema_102","description":"Tidepool User ID","required":true}],"pointer":"/paths/~1v1~1users~1{userId}~1blobs/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"mediaType","in":"query","schemaId":"schema_103","description":"Blob Media Type"},{"name":"status","in":"query","schemaId":"schema_104","description":"Blob Status"}],"pointer":"/paths/~1v1~1users~1{userId}~1blobs/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/users/{userId}/blobs","servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"parameters":{"path":[{"name":"userId","in":"path","required":true,"schemaId":"components/schemas/tidepooluserid"}],"query":[{"name":"mediaType","in":"query","required":false,"example":"application/octet-stream","schemaId":"components/schemas/mediatype.v1"},{"name":"status","in":"query","required":false,"example":"created","schemaId":"components/schemas/status.v1"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"sessionToken","type":"apiKey","name":"X-Tidepool-Session-Token","in":"header"}],"scopes":[]}],"responseCodes":["200"],"pointer":"/v1/users/{userId}/blobs","href":"blobs/listblobs","openApiOperationId":"ListBlobs","summary":"List Binary Blobs"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"List of binary blob metadata","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/metadatalist.v1"}},"schemaId":"components/schemas/metadatalist.v1"}],"pointer":"/paths/~1v1~1users~1{userId}~1blobs/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/metadatalist.v1","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/metadatalist.v1"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/blobs/listblobs"}],"panels":[]}]},"httpPath":"/v1/users/{userId}/blobs"},{"label":"Create New Binary Blob","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/reference/blob.v1/blobs/createblob","routeSlug":"/reference/blob.v1/blobs/createblob","metadata":{"seo":{"title":"Create New Binary Blob","description":"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."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"CreateBlob","name":"Create New Binary Blob","isWebhook":false,"pointer":"/paths/~1v1~1users~1{userId}~1blobs/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create New Binary Blob","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Creates a new binary blob in the user's account. The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Content-Type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Digest"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" headers must represent the media type and MD5 hash of the binary blob content, respectively."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"sessionToken","scopes":[],"type":"apiKey","in":"header","paramName":"X-Tidepool-Session-Token","description":"Tidepool Session Token"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"userId","in":"path","schemaId":"schema_102","description":"Tidepool User ID","required":true}],"pointer":"/paths/~1v1~1users~1{userId}~1blobs/post/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Content-Type","in":"header","schemaId":"schema_103","description":"Content type of the resource","required":true,"examples":{"binary":{"value":"application/octet-stream"},"text":{"value":"text/plain"},"text UTF-8":{"value":"text/plain; charset=utf-8"},"HTML":{"value":"text/html"},"JSON":{"value":"application/json"},"XML":{"value":"application/xml"},"XML text":{"value":"text/xml"},"JPEG image":{"value":"image/jpeg"},"PNG image":{"value":"image/png"},"MPEG4 video":{"value":"video/mp4"},"PDF":{"value":"application/pdf"},"ZIP":{"value":"application/zip"}}},{"name":"Digest","in":"header","schemaId":"schema_105","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Base64-encoded MD5 hash of the resource, per "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://www.ietf.org/rfc/rfc3230.txt"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"RFC 3230"},"children":[]}]}]}]}],"required":true,"example":"md5=HUXZLQLMuI/KZ5KDcJPcOA=="}],"pointer":"/paths/~1v1~1users~1{userId}~1blobs/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["*/*"],"mediaTypeSchemas":{"*/*":{"schemaId":"components/schemas/content.v1"}},"schemaId":"components/schemas/content.v1","pointer":"/paths/~1v1~1users~1{userId}~1blobs/post/requestBody","description":"Binary blob"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/users/{userId}/blobs","servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"parameters":{"path":[{"name":"userId","in":"path","required":true,"schemaId":"components/schemas/tidepooluserid"}],"query":[],"querystring":[],"header":[{"name":"Content-Type","in":"header","required":true,"example":"application/octet-stream","schemaId":"components/schemas/mediatype.v1"},{"name":"Digest","in":"header","required":true,"example":"md5=HUXZLQLMuI/KZ5KDcJPcOA==","schemaId":"schema_105"}],"cookie":[]},"security":[{"schemes":[{"id":"sessionToken","type":"apiKey","name":"X-Tidepool-Session-Token","in":"header"}],"scopes":[]}],"requestBody":{"*/*":{"schemaId":"components/schemas/content.v1"}},"responseCodes":["201"],"pointer":"/v1/users/{userId}/blobs","href":"blobs/createblob","openApiOperationId":"CreateBlob","summary":"Create New Binary Blob"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"schemaId":"components/schemas/content.v1","mediaTypes":["*/*"],"mediaTypeSchemas":{"*/*":{"schemaId":"components/schemas/content.v1"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"201","description":"Binary blob metadata","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/metadata.v1"}},"schemaId":"components/schemas/metadata.v1"}],"pointer":"/paths/~1v1~1users~1{userId}~1blobs/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"201","schemaId":"components/schemas/metadata.v1","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/metadata.v1"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/blobs/createblob"}],"panels":[]}]},"httpPath":"/v1/users/{userId}/blobs"},{"label":"Delete All Binary Blobs","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/reference/blob.v1/blobs/deleteallblobs","routeSlug":"/reference/blob.v1/blobs/deleteallblobs","metadata":{"seo":{"title":"Delete All Binary Blobs","description":"Deletes all previously uploaded binary blobs in the user's account."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"DeleteAllBlobs","name":"Delete All Binary Blobs","isWebhook":false,"pointer":"/paths/~1v1~1users~1{userId}~1blobs/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Delete All Binary Blobs","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Deletes all previously uploaded binary blobs in the user's account."},{"nodeType":"security","requirements":[{"schemes":[{"name":"sessionToken","scopes":[],"type":"apiKey","in":"header","paramName":"X-Tidepool-Session-Token","description":"Tidepool Session Token"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"userId","in":"path","schemaId":"schema_102","description":"Tidepool User ID","required":true}],"pointer":"/paths/~1v1~1users~1{userId}~1blobs/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/v1/users/{userId}/blobs","servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"parameters":{"path":[{"name":"userId","in":"path","required":true,"schemaId":"components/schemas/tidepooluserid"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"sessionToken","type":"apiKey","name":"X-Tidepool-Session-Token","in":"header"}],"scopes":[]}],"responseCodes":["204"],"pointer":"/v1/users/{userId}/blobs","href":"blobs/deleteallblobs","openApiOperationId":"DeleteAllBlobs","summary":"Delete All Binary Blobs"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"204","description":"204 No Content"}],"pointer":"/paths/~1v1~1users~1{userId}~1blobs/delete/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/blobs/deleteallblobs"}],"panels":[]}]},"httpPath":"/v1/users/{userId}/blobs"},{"label":"Get Binary Blob Metadata","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/reference/blob.v1/blobs/getblobmetadata","routeSlug":"/reference/blob.v1/blobs/getblobmetadata","metadata":{"seo":{"title":"Get Binary Blob Metadata","description":"Get a previously uploaded binary blob in the user's account."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GetBlobMetadata","name":"Get Binary Blob Metadata","isWebhook":false,"pointer":"/paths/~1v1~1blobs~1{blobId}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get Binary Blob Metadata","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Get a previously uploaded binary blob in the user's account."},{"nodeType":"security","requirements":[{"schemes":[{"name":"sessionToken","scopes":[],"type":"apiKey","in":"header","paramName":"X-Tidepool-Session-Token","description":"Tidepool Session Token"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"blobId","in":"path","schemaId":"schema_106","description":"Blob ID","required":true}],"pointer":"/paths/~1v1~1blobs~1{blobId}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/blobs/{blobId}","servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"parameters":{"path":[{"name":"blobId","in":"path","required":true,"example":"97a9fae8a19b4da58bb48dc90c9562c9","schemaId":"components/schemas/blob-id.v1"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"sessionToken","type":"apiKey","name":"X-Tidepool-Session-Token","in":"header"}],"scopes":[]}],"responseCodes":["200"],"pointer":"/v1/blobs/{blobId}","href":"blobs/getblobmetadata","openApiOperationId":"GetBlobMetadata","summary":"Get Binary Blob Metadata"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Binary blob metadata","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/metadata.v1"}},"schemaId":"components/schemas/metadata.v1"}],"pointer":"/paths/~1v1~1blobs~1{blobId}/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/metadata.v1","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/metadata.v1"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/blobs/getblobmetadata"}],"panels":[]}]},"httpPath":"/v1/blobs/{blobId}"},{"label":"Delete Binary Blob","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/reference/blob.v1/blobs/deleteblob","routeSlug":"/reference/blob.v1/blobs/deleteblob","metadata":{"seo":{"title":"Delete Binary Blob","description":"Deletes a previously uploaded binary blob in the user's account. This operation fails if the blobId does not match the ID of an existing blob."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"DeleteBlob","name":"Delete Binary Blob","isWebhook":false,"pointer":"/paths/~1v1~1blobs~1{blobId}/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Delete Binary Blob","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Deletes a previously uploaded binary blob in the user's account. This operation fails if the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"blobId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" does not match the ID of an existing blob."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"sessionToken","scopes":[],"type":"apiKey","in":"header","paramName":"X-Tidepool-Session-Token","description":"Tidepool Session Token"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"blobId","in":"path","schemaId":"schema_106","description":"Blob ID","required":true}],"pointer":"/paths/~1v1~1blobs~1{blobId}/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/v1/blobs/{blobId}","servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"parameters":{"path":[{"name":"blobId","in":"path","required":true,"example":"97a9fae8a19b4da58bb48dc90c9562c9","schemaId":"components/schemas/blob-id.v1"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"sessionToken","type":"apiKey","name":"X-Tidepool-Session-Token","in":"header"}],"scopes":[]}],"responseCodes":["204"],"pointer":"/v1/blobs/{blobId}","href":"blobs/deleteblob","openApiOperationId":"DeleteBlob","summary":"Delete Binary Blob"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"204","description":"204 No Content"}],"pointer":"/paths/~1v1~1blobs~1{blobId}/delete/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/blobs/deleteblob"}],"panels":[]}]},"httpPath":"/v1/blobs/{blobId}"},{"label":"Get Binary Blob Content","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/reference/blob.v1/blobs/getblobcontent","routeSlug":"/reference/blob.v1/blobs/getblobcontent","metadata":{"seo":{"title":"Get Binary Blob Content","description":"Retrieves the content of a binary blob in the user's account."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GetBlobContent","name":"Get Binary Blob Content","isWebhook":false,"pointer":"/paths/~1v1~1blobs~1{blobId}~1content/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get Binary Blob Content","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Retrieves the content of a binary blob in the user's account."},{"nodeType":"security","requirements":[{"schemes":[{"name":"sessionToken","scopes":[],"type":"apiKey","in":"header","paramName":"X-Tidepool-Session-Token","description":"Tidepool Session Token"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"blobId","in":"path","schemaId":"schema_106","description":"Blob ID","required":true}],"pointer":"/paths/~1v1~1blobs~1{blobId}~1content/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/blobs/{blobId}/content","servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"parameters":{"path":[{"name":"blobId","in":"path","required":true,"example":"97a9fae8a19b4da58bb48dc90c9562c9","schemaId":"components/schemas/blob-id.v1"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"sessionToken","type":"apiKey","name":"X-Tidepool-Session-Token","in":"header"}],"scopes":[]}],"responseCodes":["200"],"pointer":"/v1/blobs/{blobId}/content","href":"blobs/getblobcontent","openApiOperationId":"GetBlobContent","summary":"Get Binary Blob Content"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Binary blob content","mediaType":"*/*","mediaTypes":["*/*"],"mediaTypeContent":{"*/*":{"schemaId":"components/schemas/content.v1"}},"schemaId":"components/schemas/content.v1","headers":{"Digest":{"$ref":"#/components/headers/digestmd5.v1"}},"headerSchemaId":"schema_107"}],"pointer":"/paths/~1v1~1blobs~1{blobId}~1content/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/content.v1","mediaTypes":["*/*"],"mediaTypeContent":{"*/*":{"schemaId":"components/schemas/content.v1"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/blobs/getblobcontent"}],"panels":[]}]},"httpPath":"/v1/blobs/{blobId}/content"}],"content":{"contentType":"group","meta":{"name":"Blobs"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Blobs","showPageActions":true},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"List, create, and manage binary blobs."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The content format may be anything, because the blobs are treated as opaque data by the service. Each blob has a "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"status"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". If a blob is created without content, then its status is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"created"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". If the blob is created with content or has been updated to include content then its status is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"available"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v1/users/{userId}/blobs","summary":"List Binary Blobs","prefix":{"name":"get","color":"get"},"badges":[],"link":"/blobs/listblobs","deprecated":false},{"title":"/v1/users/{userId}/blobs","summary":"Create New Binary Blob","prefix":{"name":"post","color":"post"},"badges":[],"link":"/blobs/createblob","deprecated":false},{"title":"/v1/users/{userId}/blobs","summary":"Delete All Binary Blobs","prefix":{"name":"delete","color":"delete"},"badges":[],"link":"/blobs/deleteallblobs","deprecated":false},{"title":"/v1/blobs/{blobId}","summary":"Get Binary Blob Metadata","prefix":{"name":"get","color":"get"},"badges":[],"link":"/blobs/getblobmetadata","deprecated":false},{"title":"/v1/blobs/{blobId}","summary":"Delete Binary Blob","prefix":{"name":"delete","color":"delete"},"badges":[],"link":"/blobs/deleteblob","deprecated":false},{"title":"/v1/blobs/{blobId}/content","summary":"Get Binary Blob Content","prefix":{"name":"get","color":"get"},"badges":[],"link":"/blobs/getblobcontent","deprecated":false}]}]}]}]}},{"type":"group","label":"Device Logs","link":"/reference/blob.v1/device-logs","routeSlug":"/reference/blob.v1/device-logs","items":[{"label":"Upload new device logs as json","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/reference/blob.v1/device-logs/uploaddevicelogs","routeSlug":"/reference/blob.v1/device-logs/uploaddevicelogs","metadata":{"seo":{"title":"Upload new device logs as json","description":"Uploads a new device logs json to the user's account. The Digest header must represent the MD5 hash of the json data content."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"UploadDeviceLogs","name":"Upload new device logs as json","isWebhook":false,"pointer":"/paths/~1v1~1users~1{userId}~1device_logs/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Upload new device logs as json","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Uploads a new device logs json to the user's account. The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Digest"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" header must represent the MD5 hash of the json data content."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"sessionToken","scopes":[],"type":"apiKey","in":"header","paramName":"X-Tidepool-Session-Token","description":"Tidepool Session Token"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"userId","in":"path","schemaId":"schema_102","description":"Tidepool User ID","required":true}],"pointer":"/paths/~1v1~1users~1{userId}~1device_logs/post/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Digest","in":"header","schemaId":"schema_105","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Base64-encoded MD5 hash of the resource, per "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://www.ietf.org/rfc/rfc3230.txt"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"RFC 3230"},"children":[]}]}]}]}],"required":true,"example":"md5=HUXZLQLMuI/KZ5KDcJPcOA=="},{"name":"X-Logs-Start-At-Time","in":"header","schemaId":"schema_108","description":"Starting time of device logs inside the uploaded json log","required":true},{"name":"X-Logs-End-At-Time","in":"header","schemaId":"schema_108","description":"End time of device logs inside the uploaded json log","required":true}],"pointer":"/paths/~1v1~1users~1{userId}~1device_logs/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_109"}},"schemaId":"schema_109","pointer":"/paths/~1v1~1users~1{userId}~1device_logs/post/requestBody","description":"array of JSON data"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/users/{userId}/device_logs","servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"parameters":{"path":[{"name":"userId","in":"path","required":true,"schemaId":"components/schemas/tidepooluserid"}],"query":[],"querystring":[],"header":[{"name":"Digest","in":"header","required":true,"example":"md5=HUXZLQLMuI/KZ5KDcJPcOA==","schemaId":"schema_105"},{"name":"X-Logs-Start-At-Time","in":"header","required":true,"example":"2017-02-06T02:37:46Z","schemaId":"components/schemas/datetime.v1"},{"name":"X-Logs-End-At-Time","in":"header","required":true,"example":"2017-02-06T02:37:46Z","schemaId":"components/schemas/datetime.v1"}],"cookie":[]},"security":[{"schemes":[{"id":"sessionToken","type":"apiKey","name":"X-Tidepool-Session-Token","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_109"}},"responseCodes":["201","400","401","403","404"],"pointer":"/v1/users/{userId}/device_logs","href":"device-logs/uploaddevicelogs","openApiOperationId":"UploadDeviceLogs","summary":"Upload new device logs as json"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"schemaId":"schema_109","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_109"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"201","description":"Device logs metadata","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/device-logs-metadata.v1"}},"schemaId":"components/schemas/device-logs-metadata.v1"},{"code":"400","description":"400 Bad Request","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}},"schemaId":"components/schemas/error.v1"},{"code":"401","description":"401 Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}},"schemaId":"components/schemas/error.v1"},{"code":"403","description":"403 Forbidden","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}},"schemaId":"components/schemas/error.v1"},{"code":"404","description":"404 Not Found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}},"schemaId":"components/schemas/error.v1"}],"pointer":"/paths/~1v1~1users~1{userId}~1device_logs/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"201","schemaId":"components/schemas/device-logs-metadata.v1","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/device-logs-metadata.v1"}}},{"code":"400","schemaId":"components/schemas/error.v1","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}}},{"code":"401","schemaId":"components/schemas/error.v1","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}}},{"code":"403","schemaId":"components/schemas/error.v1","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}}},{"code":"404","schemaId":"components/schemas/error.v1","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/device-logs/uploaddevicelogs"}],"panels":[]}]},"httpPath":"/v1/users/{userId}/device_logs"},{"label":"List device logs metadata","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/reference/blob.v1/device-logs/listdevicelogs","routeSlug":"/reference/blob.v1/device-logs/listdevicelogs","metadata":{"seo":{"title":"List device logs metadata","description":"List previously uploaded device logs json data in the user's account. The list must be filtered with startAt and endAt parameters"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"ListDeviceLogs","name":"List device logs metadata","isWebhook":false,"pointer":"/paths/~1v1~1users~1{userId}~1device_logs/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List device logs metadata","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"List previously uploaded device logs json data in the user's account. The list must be filtered with startAt and endAt parameters"},{"nodeType":"security","requirements":[{"schemes":[{"name":"sessionToken","scopes":[],"type":"apiKey","in":"header","paramName":"X-Tidepool-Session-Token","description":"Tidepool Session Token"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"userId","in":"path","schemaId":"schema_102","description":"Tidepool User ID","required":true}],"pointer":"/paths/~1v1~1users~1{userId}~1device_logs/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"startAtTime","in":"query","schemaId":"schema_108","description":"Start At Datetime","required":true},{"name":"endAtTime","in":"query","schemaId":"schema_108","description":"End At Datetime","required":true}],"pointer":"/paths/~1v1~1users~1{userId}~1device_logs/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/users/{userId}/device_logs","servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"parameters":{"path":[{"name":"userId","in":"path","required":true,"schemaId":"components/schemas/tidepooluserid"}],"query":[{"name":"startAtTime","in":"query","required":true,"example":"2017-02-06T02:37:46Z","schemaId":"components/schemas/datetime.v1"},{"name":"endAtTime","in":"query","required":true,"example":"2017-02-06T02:37:46Z","schemaId":"components/schemas/datetime.v1"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"sessionToken","type":"apiKey","name":"X-Tidepool-Session-Token","in":"header"}],"scopes":[]}],"responseCodes":["200","400","401","403","404"],"pointer":"/v1/users/{userId}/device_logs","href":"device-logs/listdevicelogs","openApiOperationId":"ListDeviceLogs","summary":"List device logs metadata"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/reference/blob.v1","description":"Mock server","isMockServer":true},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"List of device logs metadata","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/device-logs-metadatalist.v1"}},"schemaId":"components/schemas/device-logs-metadatalist.v1"},{"code":"400","description":"400 Bad Request","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}},"schemaId":"components/schemas/error.v1"},{"code":"401","description":"401 Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}},"schemaId":"components/schemas/error.v1"},{"code":"403","description":"403 Forbidden","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}},"schemaId":"components/schemas/error.v1"},{"code":"404","description":"404 Not Found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}},"schemaId":"components/schemas/error.v1"}],"pointer":"/paths/~1v1~1users~1{userId}~1device_logs/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/device-logs-metadatalist.v1","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/device-logs-metadatalist.v1"}}},{"code":"400","schemaId":"components/schemas/error.v1","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}}},{"code":"401","schemaId":"components/schemas/error.v1","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}}},{"code":"403","schemaId":"components/schemas/error.v1","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}}},{"code":"404","schemaId":"components/schemas/error.v1","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/error.v1"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/device-logs/listdevicelogs"}],"panels":[]}]},"httpPath":"/v1/users/{userId}/device_logs"}],"content":{"contentType":"group","meta":{"name":"Device Logs"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Device Logs","showPageActions":true},{"nodeType":"markdoc","content":"Create and list device logs."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v1/users/{userId}/device_logs","summary":"Upload new device logs as json","prefix":{"name":"post","color":"post"},"badges":[],"link":"/device-logs/uploaddevicelogs","deprecated":false},{"title":"/v1/users/{userId}/device_logs","summary":"List device logs metadata","prefix":{"name":"get","color":"get"},"badges":[],"link":"/device-logs/listdevicelogs","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/tidepooluserid":{"id":"components/schemas/tidepooluserid","kind":"json-schema","title":"Tidepool User ID","data":{"type":"string","title":"Tidepool User ID","pattern":"^([0-9a-f]{10}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"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 "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"UUID v4"},"children":[]}]}]}]}],"readOnly":true,"x-go-type":"string"}},"components/schemas/datetime.v1":{"id":"components/schemas/datetime.v1","kind":"json-schema","title":"Date/Time","data":{"title":"Date/Time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://www.ietf.org/rfc/rfc3339.txt"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"RFC 3339"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" / "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://www.iso.org/iso-8601-date-and-time-format.html"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ISO 8601"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" timestamp "},"children":[]},{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"_"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"with"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" timezone information"},"children":[]}]}]}],"type":"string","format":"date-time","example":"2017-02-06T02:37:46Z","x-go-type":"string"}},"components/schemas/blob-id.v1":{"id":"components/schemas/blob-id.v1","kind":"json-schema","title":"Blob ID","data":{"title":"Blob ID","description":"Blob ID","type":"string","pattern":"^[0-9a-z]{32}$","readOnly":true,"example":"97a9fae8a19b4da58bb48dc90c9562c9"}},"components/schemas/digestmd5.v1":{"id":"components/schemas/digestmd5.v1","kind":"json-schema","title":"MD5 Digest","data":{"title":"MD5 Digest","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"MD5 digest of the content per "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://www.ietf.org/rfc/rfc1321.txt"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"RFC 1321"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", encoded as base64 ("},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://www.ietf.org/rfc/rfc4648.txt"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"RFC 4648"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}],"type":"string","pattern":"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","minLength":24,"maxLength":24,"example":"HUXZLQLMuI/KZ5KDcJPcOA==","x-go-type":"string"}},"components/schemas/size.v1":{"id":"components/schemas/size.v1","kind":"json-schema","title":"Blob Size","data":{"title":"Blob Size","description":"Size of the binary blob, in bytes","type":"integer","format":"int64","readOnly":true,"example":1024}},"components/schemas/device-logs-metadata.v1":{"id":"components/schemas/device-logs-metadata.v1","kind":"json-schema","title":"Device logs json metadata","data":{"title":"Device logs json metadata","type":"object","readOnly":true,"properties":{"id":{"$ref":"#/components/schemas/blob-id.v1"},"userId":{"$ref":"#/components/schemas/tidepooluserid"},"digestMD5":{"$ref":"#/components/schemas/digestmd5.v1"},"mediaType":{"type":"string","enum":["application/json"]},"size":{"$ref":"#/components/schemas/size.v1"},"createdTime":{"$ref":"#/components/schemas/datetime.v1"},"startAtTime":{"$ref":"#/components/schemas/datetime.v1"},"endAtTime":{"$ref":"#/components/schemas/datetime.v1"}},"required":["id","userId","digestMD5","mediaType","size","createdTime","startAtTime","endAtTime"],"example":{"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"}}},"components/schemas/device-logs-metadatalist.v1":{"id":"components/schemas/device-logs-metadatalist.v1","kind":"json-schema","title":"Device logs json list","data":{"title":"Device logs json list","type":"array","readOnly":true,"minItems":0,"items":{"$ref":"#/components/schemas/device-logs-metadata.v1"},"example":[{"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"}]}},"components/schemas/error.v1":{"id":"components/schemas/error.v1","kind":"json-schema","title":"Error","data":{"title":"Error","type":"object","properties":{"code":{"type":"integer","example":404},"message":{"type":"string","example":"Requested resources was not found"}},"required":["code","message"]}},"components/schemas/devicemodelname.v1":{"id":"components/schemas/devicemodelname.v1","kind":"json-schema","title":"Device Model Name","data":{"title":"Device Model Name","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A string identifying the model of the device."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"deviceModel"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is a non-empty string that encodes the model of device."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"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."},"children":[]}]}]}],"type":"string","minLength":1,"example":"Devicey McDeviceface","x-tags":["Data"]}},"components/schemas/deviceid.v1":{"id":"components/schemas/deviceid.v1","kind":"json-schema","title":"Device ID","data":{"title":"Device ID","description":"Globally unique to device and repeatable with each upload, e.g. device make and model with serial number","type":"string","minLength":1,"example":"MMT-1711:12345678","x-tags":["Data"]}},"components/schemas/device-log-content.v1":{"id":"components/schemas/device-log-content.v1","kind":"json-schema","title":"Device log content","data":{"title":"Device log content","description":"Device log entry.","type":"object","properties":{"type":{"type":"string","enum":["send","receive","error","delegate","delegateResponse","connection"]},"managerIdentifier":{"$ref":"#/components/schemas/devicemodelname.v1"},"deviceIdentifier":{"$ref":"#/components/schemas/deviceid.v1"},"timestamp":{"$ref":"#/components/schemas/datetime.v1"},"message":{"type":"string","minLength":1}},"required":["type","managerIdentifier","deviceIdentifier","timestamp","message"],"example":{"type":"send","managerIdentifier":"Devicey McDeviceface","deviceIdentifier":"MMT-1711:12345678","timestamp":"2017-02-06T02:37:46Z","message":"sent something ..."}}},"components/schemas/mediatype.v1":{"id":"components/schemas/mediatype.v1","kind":"json-schema","title":"MediaType","data":{"title":"MediaType","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Media type as defined in "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://www.ietf.org/rfc/rfc2045.txt"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"RFC 2045"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"type":"string","pattern":"^\\w+/[-+.\\w]+(;.+)?$","example":"application/octet-stream"}},"components/schemas/status.v1":{"id":"components/schemas/status.v1","kind":"json-schema","title":"Blob status","data":{"title":"Blob status","description":"Blob status","type":"string","enum":["created","available"],"readOnly":true,"example":"created"}},"components/schemas/revision.v1":{"id":"components/schemas/revision.v1","kind":"json-schema","title":"Blob Revision","data":{"title":"Blob Revision","description":"Revision number of the blob","type":"integer","format":"int32","minimum":0,"example":42}},"components/schemas/metadata.v1":{"id":"components/schemas/metadata.v1","kind":"json-schema","title":"Blob metadata","data":{"title":"Blob metadata","type":"object","readOnly":true,"properties":{"id":{"$ref":"#/components/schemas/blob-id.v1"},"userId":{"$ref":"#/components/schemas/tidepooluserid"},"digestMD5":{"$ref":"#/components/schemas/digestmd5.v1"},"mediaType":{"$ref":"#/components/schemas/mediatype.v1"},"size":{"$ref":"#/components/schemas/size.v1"},"status":{"$ref":"#/components/schemas/status.v1"},"createdTime":{"$ref":"#/components/schemas/datetime.v1"},"modifiedTime":{"$ref":"#/components/schemas/datetime.v1"},"deletedTime":{"$ref":"#/components/schemas/datetime.v1"},"revision":{"$ref":"#/components/schemas/revision.v1"}},"required":["id","userId","digestMD5","mediaType","size","status","createdTime","revision"]}},"components/schemas/metadatalist.v1":{"id":"components/schemas/metadatalist.v1","kind":"json-schema","title":"Blob list","data":{"title":"Blob list","type":"array","readOnly":true,"minItems":0,"items":{"$ref":"#/components/schemas/metadata.v1"}}},"components/schemas/content.v1":{"id":"components/schemas/content.v1","kind":"json-schema","title":"Blob content","data":{"title":"Blob content","description":"Binary data.","type":"string","format":"binary","readOnly":true}},"schema_102":{"kind":"json-schema","data":{"$ref":"#/components/schemas/tidepooluserid"},"id":"schema_102"},"schema_103":{"kind":"json-schema","data":{"$ref":"#/components/schemas/mediatype.v1"},"id":"schema_103"},"schema_104":{"kind":"json-schema","data":{"$ref":"#/components/schemas/status.v1"},"id":"schema_104"},"schema_105":{"kind":"json-schema","data":{"type":"string","pattern":"^md5=(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","minLength":28,"maxLength":28},"id":"schema_105"},"schema_106":{"kind":"json-schema","data":{"$ref":"#/components/schemas/blob-id.v1"},"id":"schema_106"},"schema_107":{"kind":"json-schema","data":{"type":"object","properties":{"Digest":{"type":"string","pattern":"^md5=(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","minLength":28,"maxLength":28,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Base64-encoded MD5 hash of the resource, per "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://www.ietf.org/rfc/rfc3230.txt"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"RFC 3230"},"children":[]}]}]}]}],"example":"md5=HUXZLQLMuI/KZ5KDcJPcOA=="}},"required":["Digest"]},"id":"schema_107"},"schema_108":{"kind":"json-schema","data":{"$ref":"#/components/schemas/datetime.v1"},"id":"schema_108"},"schema_109":{"kind":"json-schema","data":{"type":"array","items":{"$ref":"#/components/schemas/device-log-content.v1"}},"id":"schema_109"}},"exampleStore":{},"securitySchemeStore":{"sessionToken":{"id":"sessionToken","type":"apiKey","description":"Tidepool Session Token","in":"header","paramName":"X-Tidepool-Session-Token"}},"servers":[{"url":"/_mock/reference/blob.v1","isMockServer":true,"description":"Mock server"},{"url":"https://external.integration.tidepool.org","description":"integration"},{"url":"https://api.tidepool.org","description":"production"},{"url":"https://dev1.dev.tidepool.org","description":"dev1"},{"url":"https://qa1.development.tidepool.org","description":"qa1"},{"url":"https://qa2.development.tidepool.org","description":"qa2"}]},"options":{"hideInfoMetadata":true,"hideSidebar":true,"mockServer":{"url":"/_mock/reference/blob.v1","position":"first","description":"Mock server"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/reference/blob.v1.json?download"},{"url":"/_bundle/reference/blob.v1.yaml?download"}],"excludeFromSearch":false,"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Blob API","description":"The Tidepool API is an HTTP REST API used by Tidepool clients use to communicate with the Tidepool Platform.\n\nFor more information, see the [Getting Started](../docs/quick-start.md) section."}},"baseSlug":"/reference/blob.v1","routesMapping":{}}