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.
Headers
EARLY-ACCESS
Set to true to access beta operations via /api/v3.
Request
This endpoint expects an object.
contents
filename
s3Location
Response
OK
__typename
createdAt
creator
downloadUrl
errorMessage
externalFileId
file
filename
id
mimeType
modifiedAt
name
originAutomationStepData
The automation step data that produced this file.
size
uploadStatus
Allowed values:
uploadUrl
originPipelineStepDataDeprecated
Use originAutomationStepData instead.
Errors
400
Scratch File Create and Upload Request Bad Request Error
403
Scratch File Create and Upload Request Forbidden Error
404
Scratch File Create and Upload Request Not Found Error
409
Scratch File Create and Upload Request Conflict Error
429
Scratch File Create and Upload Request Too Many Requests Error
500
Scratch File Create and Upload Request Internal Server Error