Upload File

Upload a file to the Spitch server.

Args: file: The file to upload from the request identity: Authentication identity containing org_id and user_id db: Database session

Returns: FileMetaResponse: Metadata for the uploaded file

Raises: HTTPException: 500 if upload fails

post/v1/files

Response

Successful Response

file_idstring uuid required
status'uploading' | 'ready' required
original_namestring nullable required
size_bytesinteger nullable required
content_typestring nullable required
categorystring nullable required
created_atstring date-time required
uploaded_bystring nullable

Changes