---
title: "PATCH /webhooks/{webhookID}"
method: PATCH
path: "/webhooks/{webhookID}"
tags: ["webhook"]
---

# PATCH /webhooks/{webhookID}

`PATCH /webhooks/{webhookID}`

webhookを修正します。

## Request body

- object
  - `name` string — webhookユーザーの表示名(32文字まで)
  - `description` string — webhookの説明
  - `channelId` string, uuid — デフォルトの投稿先チャンネル(パブリックチャンネルのみ)
  - `secret` string — webhookシークレット

## Response `204`

正常に修正できました。

## Other responses

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

## Changes

- **2019-07-05** `6956f2622a20` — 9 info
  - api operation id `editWebhook` 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/webhooks/:webhookID/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/6956f2622a20/schema)
