---
title: "PUT /agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}/"
method: PUT
path: "/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}/"
---

# PUT /agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}/

`PUT /agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}/`

Updates the configuration for a knowledge base that has been associated with an agent.

## Path parameters

- `agentId` string, required
- `agentVersion` string, required
- `knowledgeBaseId` string, required

## Request body

- object
  - `description` string — Specifies a new description for the knowledge base associated with an agent.
  - `knowledgeBaseState` 'ENABLED' | 'DISABLED' — Specifies whether the agent uses 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 `200`

Success

- UpdateAgentKnowledgeBaseResponse
  - `agentKnowledgeBase` object, required — Contains details about the knowledge base that has been associated with an agent.
    - `agentId` string, required — The unique identifier of the agent with which the knowledge base is associated.
    - `agentVersion` string, required — The version of the agent with which the knowledge base is associated.
    - `knowledgeBaseId` string, required — The unique identifier of the association between the agent and the knowledge base.
    - `description` string, required — The description of the association between the agent and the knowledge base.
    - `createdAt` string, date-time, required — The time at which the association between the agent and the knowledge base was created.
    - `updatedAt` string, date-time, required — The time at which the association between the agent and the knowledge base was last updated.
    - `knowledgeBaseState` 'ENABLED' | 'DISABLED', required — 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.

## Other responses

- `480` — ThrottlingException
- `481` — AccessDeniedException
- `482` — ValidationException
- `483` — InternalServerException
- `484` — ResourceNotFoundException
- `485` — ConflictException

---

[API](https://skmtc.net/aws/apis/bedrock-agent.md) · [All operations](https://skmtc.net/aws/apis/bedrock-agent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/bedrock-agent/versions/a3b2356f17da/schema)
