files
Create a file
Create a file of a supported type. Currently, we support these file extensions: .csv; .html; .jmp, .jrn, .jrp (JMP); .jpeg, .jpg (JPEG); .png; .pdf; .zip; and .txt.
A successful file upload requires 3 calls in serial:
- Create a file, this endpoint, which returns an S3 PUT URL for the 2nd call and a file ID for the 3rd call
- Upload the file contents to S3. Add x-amz-server-side-encryption: AES256 to the request headers,
because we use server-side encryption. Here is a curl example:
curl -H "x-amz-server-side-encryption: AES256" -X PUT -T <LOCAL_FILE> -L <S3_PUT_URL> - Update the file, which marks the upload as SUCCEEDED
Note: URL is valid for 1 hour after being returned from this endpoint. It should not be stored persistently for later use.
Files up to 30MB are supported.
post/files
Request
- Base URLhttps://{tenant_name}.benchling.com/api/v2
- AuthHTTP bearer
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.