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 null
The type of the file
created_atstringformat: "date-time"
updated_atstring or nullformat: "date-time"
is_archivedboolean or null
filesizeintegerDefaults to 0
The size of the file in bytes
locationstring or null

Errors

422
Unprocessable Entity Error