latestSwagger 2.0Apache 2.02026-08-21111141361.2 KB

e16ed11d991c

files

Upload a file to workspace

Uploads a file to the workspace with optional metadata

post/workspaces/{workspace_id}/files

Path parameters

workspace_idstring required

Workspace ID (UUID)

Response

File uploaded successfully

bytesinteger
created_atinteger

Unix timestamp

expires_atinteger

Nullable Unix timestamp

filenamestring
idstring
metadataobject

Always include, empty map if none

mime_typestring
objectstring

Always "file"

org_idstring
purpose'batch' | 'batch_output' | 'vision' | 'user_data' | 'evals'
statusstring
status_detailsstring

Always include, null if empty

user_idstring
workspace_idstring