# Create New Binary Blob Creates a new binary blob in the user's account. The and the headers must represent the media type and MD5 hash of the binary blob content, respectively. Endpoint: POST /v1/users/{userId}/blobs Version: 1.0 Security: sessionToken ## Path parameters: - `userId` (string, required) Tidepool User ID ## Header parameters: - `Content-Type` (string, required) Content type of the resource Example: "application/octet-stream" - `Digest` (string, required) Base64-encoded MD5 hash of the resource, per RFC 3230 Example: "md5=HUXZLQLMuI/KZ5KDcJPcOA==" ## Response 201 fields (application/json): - `id` (string, required) Blob ID Example: "97a9fae8a19b4da58bb48dc90c9562c9" - `userId` (string, required) 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](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) - `digestMD5` (string, required) MD5 digest of the content per [RFC 1321](https://www.ietf.org/rfc/rfc1321.txt), encoded as base64 ([RFC 4648](https://www.ietf.org/rfc/rfc4648.txt)). Example: "HUXZLQLMuI/KZ5KDcJPcOA==" - `mediaType` (string, required) Media type as defined in [RFC 2045](https://www.ietf.org/rfc/rfc2045.txt). Example: "application/octet-stream" - `size` (integer, required) Size of the binary blob, in bytes Example: 1024 - `status` (string, required) Blob status Enum: "created", "available" - `createdTime` (string, required) [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) / [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp _with_ timezone information Example: "2017-02-06T02:37:46Z" - `modifiedTime` (string) [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) / [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp _with_ timezone information Example: "2017-02-06T02:37:46Z" - `deletedTime` (string) [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) / [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp _with_ timezone information Example: "2017-02-06T02:37:46Z" - `revision` (integer, required) Revision number of the blob Example: 42