---
title: "PATCH /v1/me/webhooks/{id}"
method: PATCH
path: "/v1/me/webhooks/{id}"
tags: ["WebhookService"]
---

# PATCH /v1/me/webhooks/{id}

`PATCH /v1/me/webhooks/{id}`

UpdateSubscription 更新 Webhook 订阅。

## Path parameters

- `id` string, required

## Request body

- WebhookV1UpdateSubscriptionRequest — UpdateSubscriptionRequest 更新 Webhook 订阅请求。
  - `enabled` boolean — 是否启用（可选，不传则不更新）
  - `eventTypes` string[] — 订阅的事件类型列表（可选，不传则不更新）
  - `id` string — 订阅 ID
  - `secret` string — 签名密钥（可选，不传则不更新）
  - `url` string — Webhook 回调 URL（可选，不传则不更新）

## Response `200`

OK

- WebhookV1UpdateSubscriptionReply — UpdateSubscriptionReply 更新 Webhook 订阅响应。
  - `subscription` WebhookV1SubscriptionInfo — SubscriptionInfo Webhook 订阅信息。
    - `createdAt` string, date-time — 创建时间
    - `enabled` boolean — 是否启用
    - `eventTypes` string[] — 订阅的事件类型列表
    - `id` string — 订阅 ID
    - `updatedAt` string, date-time — 更新时间
    - `url` string — Webhook 回调 URL
    - `userId` string — 用户 ID

---

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