---
title: "PUT /bots/{botID}/state"
method: PUT
path: "/bots/{botID}/state"
tags: ["bot"]
deprecated: true
---

# PUT /bots/{botID}/state

`PUT /bots/{botID}/state`

> **Deprecated.**

Botの状態を変更します。

## Request body

- PutBotState
  - `state` string, required — activeまたはinactive

## Response `202`

Botのアクティベーションを受理しました。PINGリクエストが通り次第有効になります。

## Other responses

- `204` — 変更できました。
- `400` — リクエスト内容が不正です。
- `403` — 権限がありません。
- `404` — 指定したBotは存在しません。

## Changes

- **2020-03-25** `535e1f620613` — 1 info
  - endpoint deprecated
- **2019-09-09** `f291e1b35a23` — 1 breaking
  - request body became required
- **2019-07-24** `66a69a1387ed` — 1 info
  - api operation id `changeBotState` was added
- **2019-07-05** `6956f2622a20` — 10 info
  - api operation id `changeBotState` removed and replaced with ``
  - the endpoint scheme security `traqOAuth2` was added to the API
  - endpoint reactivated
  - added optional request body
  - …6 more

[Change history](https://skmtc.dev/traptitech/apis/traq-api/changes/bots/:botID/state/put.md)

---

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