Private Files

Create a file upload

Creates a file record and returns a pre-signed upload URL. The file content should then be uploaded to the returned URL.

post/api/w/{wId}/files

Path parameters

wIdstring required

ID of the workspace

Request body

contentTypestring required
fileNamestring required
fileSizenumber required
useCase'conversation' | 'folders_document' | 'avatar' | 'upsert_document' | 'upsert_table' | 'project_context' | 'skill_attachment' | 'workspace_branding' required
useCaseMetadataobject

Response

File record created with upload URL

Changes

Changed in 2 of the 80 revisions of this API.11

    • added the new workspace_branding enum value to the request property useCase

      request-property-enum-value-added

    • removed the enum value workspace_branding of the request property useCase

      request-property-enum-value-removed

    This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog