Skip to navigation

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).

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
contentsstringOptional
filenamestringOptional
s3LocationstringOptional

Response

OK
__typenamestringOptional
createdAtstring or nullOptionalformat: "datetime"
creatorobjectOptional
downloadUrlstring or nullOptional
errorMessagestring or nullOptional
externalFileIdstring or nullOptional
fileobject or nullOptional
filenamestringOptional
idstringOptional
mimeTypestring or nullOptional
modifiedAtstring or nullOptionalformat: "datetime"
namestringOptional
originAutomationStepDataobject or nullOptional
The automation step data that produced this file.
sizeinteger or nullOptional
uploadStatusenumOptional
Allowed values:
uploadUrlstring or nullOptional
originPipelineStepDataobject or nullOptionalDeprecated
Use originAutomationStepData instead.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error