Knowledge Bases

Retrieve a file upload URL

Changed on

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

Request

  • Base URL
    https://my.orq.ai
  • URL
    https://my.orq.ai/v2/knowledge/{knowledge_id}/upload-file
  • Auth
    HTTP bearer

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