通用能力接口参考Webhook更新 Webhook 端点

更新 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*string

请求体

application/json
  1. body
字段1 <= properties
name?string
长度1 <= length <= 120
url?string
格式uri
长度1 <= length <= 2083
enabled?boolean

响应体

请求成功

application/json
  1. response
id*string
Match^whe_[a-f0-9]{32}$
name*string
长度length <= 120
url*string
格式uri
长度length <= 2083
enabled*boolean
secret_version*integer
范围1 <= value
last_delivery_at?|null
last_success_at?|null
last_failure_at?|null
created_at*string
格式date-time
updated_at*string
格式date-time

本页目录