v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1475719557.8 KB

Ingests documents directly into the knowledge base that is connected to the data source. The <code>dataSourceType</code> specified in the content for each document must match the type of the data source that you specify in the header. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-direct-ingestion.html">Ingest changes directly into a knowledge base</a> in the Amazon Bedrock User Guide.

put/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/documents

Path parameters

knowledgeBaseIdstring required

The unique identifier of the knowledge base to ingest the documents into.

dataSourceIdstring required

The unique identifier of the data source connected to the knowledge base that you're adding documents to.

Request body

clientTokenstring

A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.

Response

Success