v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1441225191.1 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/wisdom/latest/APIReference/API_CreateContent.html">CreateContent</a> to finalize the content creation process or <a href="https://docs.aws.amazon.com/wisdom/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. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. 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

headersToIncludeobject required

The headers to include in the upload.

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.