Knowledge Bases

Retrieve a file upload URL

Creates a presigned upload policy for a file that will be attached to a knowledge-base datasource. Submit the returned form fields and file directly to the returned URL.

get/v2/knowledge/{knowledge_id}/upload-file

Path parameters

knowledge_idstring required

Query parameters

fileNamestring required

The name of the file to upload.

contentTypestring required

The media type of the file to upload.

datasourceIdstring required

The datasource identifier that will own the uploaded file.

Response

File upload url successfully retrieved

objectNamestring required
fileIdstring required

Identifier of the file record registered for this upload

Changes

Changed in 10 of the 257 revisions of this API.46

Of the 257 revisions, 71 have no diff computed.