blobs

Upload single-part blob

This endpoint uploads a blob in a single API call.

Blobs larger than 10MB should be uploaded in multiple parts. The data64 parameter is the base64-encoded part contents, and the md5 parameter is the hex-encoded MD5 hash of the part contents. For example, given the string hello, data64 is aGVsbG8= and md5 is 5d41402abc4b2a76b9719d911017c592.

post/blobs

Request

  • Base URL
    https://{tenant_name}.benchling.com/api/v2
  • Auth
    HTTP bearer

Request body

data64string byte required

base64 encoded file contents

md5string required

The MD5 hash of the blob part. Note: this should be the hash of the raw data of the blob part, not the hash of the base64 encoding.

mimeTypestring

eg. application/jpeg

namestring required

Name of the blob

type'RAW_FILE' | 'VISUALIZATION' required

One of RAW_FILE or VISUALIZATION. If VISUALIZATION, the blob may be displayed as an image preview.

Response

Created

idstring uuid

The universally unique identifier (UUID) for the blob.

mimeTypestring

eg. application/jpeg

namestring

Name of the blob

type'RAW_FILE' | 'VISUALIZATION'

One of RAW_FILE or VISUALIZATION. If VISUALIZATION, the blob may be displayed as an image preview.

uploadStatus'IN_PROGRESS' | 'COMPLETE' | 'ABORTED'

Changes

No recorded changes to this operation across all 1 revision of this API.