---
title: "POST /channels/{channelID}/bots"
method: POST
path: "/channels/{channelID}/bots"
tags: ["bot"]
deprecated: true
---

# POST /channels/{channelID}/bots

`POST /channels/{channelID}/bots`

> **Deprecated.**

チャンネルにBotを参加させます。

## Request body

- PostBotChannel
  - `code` string, required — ボットコード

## Response `200`

正常にBotが参加しました。

- BotIdObject
  - `botId` string, uuid — 参加したBotのID

## Other responses

- `400` — 参加させることができませんでした。リクエスト内容が不正です。
- `404` — 参加させることができませんでした。指定したチャンネルは存在しません。

## Changes

- **2020-03-18** `78d32137c921` — 1 info
  - endpoint deprecated
- **2019-09-09** `f291e1b35a23` — 1 breaking
  - request body became required
- **2019-07-24** `66a69a1387ed` — 1 info
  - api operation id `addChannelBot` was added
- **2019-07-05** `6956f2622a20` — 8 info
  - api operation id `addChannelBot` removed and replaced with ``
  - the endpoint scheme security `traqOAuth2` was added to the API
  - endpoint reactivated
  - added optional request body
  - …4 more

[Change history](https://skmtc.dev/traptitech/apis/traq-api/changes/channels/:channelID/bots/post.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)
