v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1494674591.3 KB

Get a URL to upload content to a knowledge base. To upload content, first make a PUT request to the returned URL with your file, making sure to include the required headers. Then use <a href="https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_CreateContent.html">CreateContent</a> to finalize the content creation process or <a href="https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_UpdateContent.html">UpdateContent</a> to modify an existing resource. You can only upload content to a knowledge base of type CUSTOM.

post/knowledgeBases/{knowledgeBaseId}/upload

Path parameters

knowledgeBaseIdstring required

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

Request body

contentTypestring required

The type of content to upload.

presignedUrlTimeToLiveinteger

Expiration time in minutes

Response

Success

uploadIdstring required

The identifier of the upload.

urlstring password required

The URL of the upload.

urlExpirystring date-time required

The expiration time of the URL as an epoch timestamp.

headersToIncludeobject required

The headers to include in the upload.