更新 Webhook 端点
修改端点的名称、HTTPS 地址或启用状态。
认证
API Key:X-API-Key: <API Key> 或 Authorization: Bearer <API Key>。
示例中的凭证为占位值,请替换后在服务器端运行。
代码示例
curl -X PATCH 'https://shixux.com/api/v1/webhook-endpoints/endpoint_id_example' \ -H 'X-API-Key: yb_xxx_yyy' \ -H 'Content-Type: application/json' \ -d '{"name":"example","url":"https://example.com/resource","enabled":true}'{ "id": "example", "name": "example", "url": "https://example.com/resource", "enabled": true, "secret_version": 1, "created_at": "2026-10-06T10:00:00Z", "updated_at": "2026-10-06T10:00:00Z"}endpoint_id*stringapplication/json- body
字段
1 <= propertiesname?string长度
1 <= length <= 120url?string格式
uri长度
1 <= length <= 2083enabled?boolean请求成功
application/json- response
id*stringMatch
^whe_[a-f0-9]{32}$name*string长度
length <= 120url*string格式
uri长度
length <= 2083enabled*booleansecret_version*integer范围
1 <= valuelast_delivery_at?|nulllast_success_at?|nulllast_failure_at?|nullcreated_at*string格式
date-timeupdated_at*string格式
date-time