Scratch File

Create and upload a ScratchFile

Create a ScratchFile from either uploaded contents or an existing S3 location. Provide exactly one of contents (with a filename, up to 10 MiB of UTF-8 sent as an application/json body) or s3Location (the filename is derived from the location when omitted).

post/api/v3/scratch-file:create-and-upload

Request

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

Request body

contentsstring
filenamestring
s3Locationstring

Response

OK

__typenamestring
createdAtstring datetime nullable
downloadUrlstring nullable
errorMessagestring nullable
externalFileIdstring nullable
filenamestring
idstring
mimeTypestring nullable
modifiedAtstring datetime nullable
namestring
sizeinteger nullable
uploadStatus'SUCCEEDED' | 'FAILED_VALIDATION' | 'IN_PROGRESS' | 'NOT_UPLOADED'
uploadUrlstring nullable

Changes

No recorded changes to this operation across all 3 revisions of this API.