Chatbot Text Snippets

Update Training Text

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.

put/chatbots/{chatbot_id}/training-texts/{id}

Request

  • Base URL
    https://app.boei.help/api/v1
  • Auth
    HTTP bearer

Request body

titlestring

Short internal title.

contentstring

The training content.

tag_slugsstring[]

Tag slugs to sync (replaces existing tags).

tag_idsstring[]

Must be a valid UUID.

sort_orderinteger nullable

Display order.

Example request

{
  "title": "Bus Schedule Updated",
  "content": "The bus departs every 15 minutes from the main entrance.",
  "tag_slugs": [
    "event-2026"
  ],
  "tag_ids": [
    "6b72fe4a-5b40-307c-bc24-f79acf9a1bb9"
  ],
  "sort_order": 1
}

Response

messagestring

Example response

{
  "training_text": {
    "id": "794d9b3b-d68f-498a-bb25-de9689722603",
    "title": "Bus Schedule Updated",
    "content": "The bus departs every 15 minutes...",
    "char_count": 50,
    "status": "processing",
    "sort_order": 1,
    "tags": [
      {
        "id": "uuid",
        "tag_slug": "event-2026",
        "label": "Event 2026"
      }
    ],
    "created_at": "2026-03-13T10:00:00.000000Z",
    "updated_at": "2026-03-13T10:05:00.000000Z"
  },
  "usage": {
    "text_chars_used": 50,
    "text_chars_limit": 1000000,
    "training_pages_used": 5,
    "training_pages_limit": 1000
  },
  "message": "Training text updated successfully"
}

Changes

No recorded changes to this operation across all 1 revision of this API.