Upload User File

Upload a user file directly (multipart). Max 50MB. Creates the DB row and uploads bytes to GCS.

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
The file to upload
namestringRequired1-2048 characters
Name of the file including extension
typeenumRequired

Type/category of the file

Response

Successful Response
namestring

The human-readable name of the file

idinteger
user_idinteger
typeenum or nullOptional
The type of the file
created_atstringOptionalformat: "date-time"
updated_atstring or nullOptionalformat: "date-time"
is_archivedboolean or nullOptional
filesizeintegerOptionalDefaults to 0
The size of the file in bytes
locationstring or nullOptional

Errors

422
Unprocessable Entity Error