更新 webhook
更新现有 webhook 端点的配置。
参数
路径参数
id
string
必填
Webhook 端点 ID
请求体
name
string
webhook 的新名称
url
string
新的端点 URL
event_types
array
新的订阅事件列表(替换现有列表)
is_active
boolean
启用或禁用该 webhook
retry_attempts
integer
重试次数(0-10)
timeout
integer
请求超时时间,单位为秒(5-60)
auth_type
string (none | basic | bearer | custom)
auth_config
object
custom_headers
object
返回
200
Webhook 更新成功
400
校验错误
401
需要身份验证
404
未找到 webhook
相关
Webhooks
PATCH/api/v1/webhooks/[id]