---
title: "Updates a bot in the database with form data"
method: PATCH
path: "/v1/bots/{id}"
tags: ["bots"]
---

# Updates a bot in the database with form data

`PATCH /v1/bots/{id}`

Update language, notifier_interval, reminder_repeat_max and reminder_time of the bot

## Path parameters

- `id` integer, required

## Request body

- Bot
  - `id` integer
  - `team_id` string
  - `team_name` string
  - `language` 'ru_RU' | 'en_US' — bot language
  - `notifier_interval` integer
  - `reminder_repeat_max` integer
  - `reminder_time` integer
  - `reporting_channel` string
  - `reporting_time` string
  - `individual_reports_on` boolean

## Response `200`

successful operation

- Bot
  - `id` integer
  - `team_id` string
  - `team_name` string
  - `language` 'ru_RU' | 'en_US' — bot language
  - `notifier_interval` integer
  - `reminder_repeat_max` integer
  - `reminder_time` integer
  - `reporting_channel` string
  - `reporting_time` string
  - `individual_reports_on` boolean

## Other responses

- `400` — Incorrect value for bot id, must be integer or incorrect payload for bot entity
- `401` — Missing/incorrect Bot Access Token or trying to access resource from another workspace
- `404` — Entity does not yet exist

## Changes

- **2026-07-17** `1ccd9e49d97b` — 3 info
  - added the non-success response with the status `404`
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `500`
- **2019-07-19** `05bb1dbe028d` — 2 info
  - the endpoint scheme security `Auth` was added to the API
  - the endpoint scheme security `JWT` was removed from the API
- **2019-04-09** `5363057b67b0` — 1 info
  - endpoint added
- **2019-03-13** `ea0deca478db` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/maddevsio/apis/mad-devs-comedian/changes/v1/bots/:id/patch.md)

---

[API](https://skmtc.dev/maddevsio/apis/mad-devs-comedian.md) · [All operations](https://skmtc.dev/maddevsio/apis/mad-devs-comedian/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/maddevsio/mad-devs-comedian/revisions/1ccd9e49d97b/schema)
