---
title: "PATCH /bots/{botID}"
method: PATCH
path: "/bots/{botID}"
tags: ["bot"]
---

# PATCH /bots/{botID}

`PATCH /bots/{botID}`

Bot情報を変更します。

## Request body

- PatchBot
  - `displayName` string — Bot表示名
  - `description` string — Bot説明
  - `privileged` boolean — privileged属性
  - `webhookUrl` string, url — BotのPOSTエンドポイント
  - `creatorId` string, uuid — 移譲先のユーザーUUID

## Response `204`

正常に変更できました。

## Other responses

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

## Changes

- **2019-08-18** `5f0b7cca2de8` — 1 info
  - added the new optional request property `creatorId`
- **2019-07-24** `66a69a1387ed` — 1 info
  - api operation id `editBot` was added
- **2019-07-05** `6956f2622a20` — 9 info
  - api operation id `editBot` removed and replaced with ``
  - the endpoint scheme security `traqOAuth2` was added to the API
  - endpoint reactivated
  - added optional request body
  - …5 more

[Change history](https://skmtc.dev/traptitech/apis/traq-api/changes/bots/:botID/patch.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/84d2b25db3ba/schema)
