---
title: "Update Bot"
method: PUT
path: "/api/bot"
tags: ["Bot"]
---

# Update Bot

`PUT /api/bot`

Update bot.

## Request body

- BotUpdateSchema — Bot update.
  - `user_id` string, uuid, nullable
  - `bot_name` string, required
  - `case_study` string, required
  - `is_visibility` boolean, nullable
  - `domain` unknown[], nullable
    - unknown
  - `collect_customer_info` object, nullable
  - `rules` string[], nullable
  - `gpt_model_name` string, nullable
  - `temperature` number, nullable
  - `custom_prompt` string, nullable
  - `bot_tone_type` integer, nullable
  - `custom_error_message` string, nullable
  - `is_activate` boolean, nullable
  - `id` string, uuid, required

## Response `200`

Successful Response

- BotSchema — Bot Schema.
  - `user_id` string, uuid, nullable
  - `bot_name` string, required
  - `case_study` string, required
  - `is_visibility` boolean, nullable
  - `domain` unknown[], nullable
    - unknown
  - `collect_customer_info` object, nullable
  - `rules` string[], nullable
  - `gpt_model_name` string, nullable
  - `temperature` number, nullable
  - `custom_prompt` string, nullable
  - `bot_tone_type` integer, nullable
  - `custom_error_message` string, nullable
  - `is_activate` boolean, nullable
  - `id` string, uuid, required
  - `num_message_left` integer, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time

## Other responses

- `422` — Validation Error

## Changes

- **2023-11-13** `ac1f1ab68fcb` — 1 info
  - endpoint added
- **2023-11-08** `dbd91277da05` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/chat-fly/apis/chatfly-backend-application/changes/api/bot/put.md)

---

[API](https://skmtc.dev/chat-fly/apis/chatfly-backend-application.md) · [All operations](https://skmtc.dev/chat-fly/apis/chatfly-backend-application/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chat-fly/chatfly-backend-application/revisions/ac1f1ab68fcb/schema)
