---
title: "Update a chatbot"
method: POST
path: "/update-chatbot-data"
tags: ["Chatbots"]
---

# Update a chatbot

`POST /update-chatbot-data`

Updates and retrains a chatbot with new content

## Request body

- object
  - `chatbotId` string, required — ID of the chatbot to update
  - `chatbotName` string, required — Updated name for the chatbot
  - `sourceText` string — New training text content

## Response `200`

Chatbot updated successfully

- object
  - `chatbotId` string

## Other responses

- `400` — Bad Request - Invalid input parameters
- `401` — Unauthorized - Invalid or missing API key
- `403` — Forbidden - Access denied or quota exceeded
- `404` — Not Found - Resource does not exist
- `500` — Internal Server Error

---

[API](https://skmtc.dev/chatbase/apis/chatbase-api-v1.md) · [All operations](https://skmtc.dev/chatbase/apis/chatbase-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chatbase/chatbase-api-v1/revisions/3a2187967746/schema)
