**版本：202601**

# 更新 Webhook

**PUT** `/openapi/2026-01/webhooks/:id`

通过 Webhook ID 更新指定的 Webhook。

## 请求

**Path参数**

- `id` string (required)

  Webhook ID

**application/json**

**请求体 | 示例**

**请求体 (required)**

- `id` string (required)

  Webhook ID
- `webhook` object (required)

  Webhook 信息

  - `address` string

    Webhook 通知 URL，如 [https://example.com/webhook](https://example.com/webhook)
  - `topic` string

    Webhook 的主题

```json
{
  "id": "string",
  "webhook": {
    "address": "string",
    "topic": "string"
  }
}
```

## 响应

**200**

OK

**application/json**

**数据结构 | 示例**

**数据结构**

- `code` string

  错误码
- `message` string

  错误信息
- `data` object

  - `webhook` object

    Webhook 信息

    - `id` string

      Webhook 的Webhook ID
    - `address` string

      Webhook 通知 URL，如 [https://example.com/webhook](https://example.com/webhook)
    - `topic` string

      Webhook 的主题
    - `created_at` string

      Webhook 的创建时间
    - `updated_at` string

      Webhook 的更新时间
    - `format` string

      Webhook 的格式

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "webhook": {
      "id": "string",
      "address": "string",
      "topic": "string",
      "created_at": "string",
      "updated_at": "string",
      "format": "string"
    }
  }
}
```
