---
title: "Update Training Text"
method: PUT
path: "/chatbots/{chatbot_id}/training-texts/{id}"
tags: ["Chatbot Text Snippets"]
---

# Update Training Text

`PUT /chatbots/{chatbot_id}/training-texts/{id}`

## Request

- Base URL: `https://app.boei.help/api/v1`
- URL: `https://app.boei.help/api/v1/chatbots/{chatbot_id}/training-texts/{id}`
- Auth: HTTP bearer

Update a training text's title, content, or tags. If content changes, it is automatically re-chunked and re-embedded.

NOTE: tag_slugs replaces the full tag set; send the complete list.

## Request body

- object
  - `title` string: Short internal title.
  - `content` string: The training content.
  - `tag_slugs` string[]: Tag slugs to sync (replaces existing tags).
  - `tag_ids` string[]: Must be a valid UUID.
  - `sort_order` integer, nullable: Display order.

## Response `200`

- object
  - `training_text` object
    - `id` string
    - `title` string
    - `content` string
    - `char_count` integer
    - `status` string
    - `sort_order` integer
    - `tags` object[]
      - `id` string
      - `tag_slug` string
      - `label` string
    - `created_at` string
    - `updated_at` string
  - `usage` object
    - `text_chars_used` integer
    - `text_chars_limit` integer
    - `training_pages_used` integer
    - `training_pages_limit` integer
  - `message` string

## Other responses

- `403`

---

[API](https://skmtc.dev/boei/apis/boei-api.md) - [All operations](https://skmtc.dev/boei/apis/boei-api/llms.txt) - [OpenAPI document](https://skmtc.dev/boei/apis/boei-api/revisions/fc439667d2d4?raw)
