v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1475719557.8 KB

Associates a knowledge base with an agent. If a knowledge base is associated and its <code>indexState</code> is set to <code>Enabled</code>, the agent queries the knowledge base for information to augment its response to the user.

put/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/

Path parameters

agentIdstring required

The unique identifier of the agent with which you want to associate the knowledge base.

agentVersionstring required

The version of the agent with which you want to associate the knowledge base.

Request body

knowledgeBaseIdstring required

The unique identifier of the knowledge base to associate with the agent.

descriptionstring required

A description of what the agent should use the knowledge base for.

knowledgeBaseState'ENABLED' | 'DISABLED'

Specifies whether to use the knowledge base or not when sending an <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html">InvokeAgent</a> request.

Response

Success