benchling_api_client.api.blobs.create_blob_part module¶
- async asyncio(*, client: Client, blob_id: str, json_body: BlobPartCreate) Optional[Union[BlobPart, BadRequestError]] ¶
Upload a part of the blob. This part must be at least 5MB, unless it’s the last or only part. It’s recommended to keep the part size around 10MB.
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.
## Multipart Upload
If a blob is larger than 10MB, it should be uploaded in multiple parts using the following endpoints: - [Start a multi-part blob upload](#/Blobs/createMultipartBlob) - [Upload a blob part](#/Blobs/createBlobPart) - [Complete a blob upload](#/Blobs/completeMultipartBlob)
Each part has a partNumber and an eTag. The part number can be any number between 1 to 10,000, inclusive - this number should be unique and identifies the order of the part in the final blob. The eTag of a part is returned in the API response - this eTag must be specified when completing the upload in order to ensure the server has received all the expected parts.
- async asyncio_detailed(*, client: Client, blob_id: str, json_body: BlobPartCreate) Response[Union[BlobPart, BadRequestError]] ¶
- sync(*, client: Client, blob_id: str, json_body: BlobPartCreate) Optional[Union[BlobPart, BadRequestError]] ¶
Upload a part of the blob. This part must be at least 5MB, unless it’s the last or only part. It’s recommended to keep the part size around 10MB.
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.
## Multipart Upload
If a blob is larger than 10MB, it should be uploaded in multiple parts using the following endpoints: - [Start a multi-part blob upload](#/Blobs/createMultipartBlob) - [Upload a blob part](#/Blobs/createBlobPart) - [Complete a blob upload](#/Blobs/completeMultipartBlob)
Each part has a partNumber and an eTag. The part number can be any number between 1 to 10,000, inclusive - this number should be unique and identifies the order of the part in the final blob. The eTag of a part is returned in the API response - this eTag must be specified when completing the upload in order to ensure the server has received all the expected parts.
- sync_detailed(*, client: Client, blob_id: str, json_body: BlobPartCreate) Response[Union[BlobPart, BadRequestError]] ¶