---
title: "Update knowledge base topic"
method: PATCH
path: "/v1/agents/{agentId}/branches/{branchId}/knowledge-base/topics/{topicId}"
tags: ["Knowledge Base"]
---

# Update knowledge base topic

`PATCH /v1/agents/{agentId}/branches/{branchId}/knowledge-base/topics/{topicId}`

## Request body

- UpdateKnowledgeBaseTopicBody
  - `name` string
  - `content` string
  - `actions` string
  - `exampleQueries` object
    - `queries` string[], required
  - `isActive` boolean

## Response `204`

Topic updated

## Other responses

- `404` — Topic not found

---

[API](https://skmtc.dev/poly/apis/polyai-agents-api.md) · [All operations](https://skmtc.dev/poly/apis/polyai-agents-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/poly/polyai-agents-api/revisions/76f3c606e395/schema)
