Upload File

View as Markdown

Upload a job artifact file.

Intended for use by jobs running in sandboxes. Accepts a multipart/form-data file upload, stores it in GCS, and returns the created file record. When a job_execution_id is provided, records provenance linking the file to that execution.

Authentication

AuthorizationBearer

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

Request

This endpoint expects a multipart form containing a file.
filefileRequired
job_execution_idstring or nullOptionalformat: "uuid"

Response

OK
file_idstring
The ID of the uploaded file.
file_namestring
The original file name.
size_kilobytesinteger or null
File size in kilobytes.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error