EdgeCron API Docs
API 参考回调端点

更新端点

PATCH /endpoints/{id}

更新端点

调用 `PATCH /endpoints/{id}`,更新端点。

PATCH
https://api.edgecron.com/v1/endpoints/{id}

需要认证

每个请求都需要携带 `X-Key-ID`、`X-Timestamp` 和 `X-Signature`。签名为 `timestamp + "\n" + payload` 的 HMAC-SHA256 小写十六进制结果。

参数

参数位置类型必填说明
idpathinteger资源 ID。

请求体

参数类型必填说明
namestring-
urlstring-
methodGET / POST / PUT / PATCH / DELETE可选值:GET, POST, PUT, PATCH, DELETE。
headersstring-
secretstring-
clear_secretbooleanSet true to remove the endpoint signing secret. Future deliveries will not include X-EdgeCron-Signature.
timeout_msinteger (int32)-
retry_policy_idinteger (int64)-
filter_eventsstring-
{
  "name": "billing-webhook",
  "url": "https://example.com/webhooks/edgecron",
  "method": "GET",
  "headers": {
    "X-Service": "billing"
  },
  "secret": "whsec_example",
  "clear_secret": true,
  "timeout_ms": 5000,
  "retry_policy_id": 101,
  "filter_events": "invoice.*"
}

响应

所有成功响应都使用 EdgeCron API 统一信封。

{
  "code": 0,
  "message": "success",
  "request_id": "req_abc123",
  "data": {
    "id": 101,
    "app_id": "app_123",
    "name": "billing-webhook",
    "url": "https://example.com/webhooks/edgecron",
    "method": "POST",
    "headers": {},
    "secret": "whsec_example",
    "timeout_ms": 5000,
    "retry_policy_id": 101,
    "filter_events": "invoice.*",
    "status": "enabled",
    "created_at": "2026-07-01T12:00:00Z",
    "updated_at": "2026-07-01T12:00:00Z"
  }
}

结构

参数类型必填说明
idinteger资源 ID。
app_idstring应用 ID。
namestring-
urlstring (uri)-
methodPOST / PUT / PATCH可选值:POST, PUT, PATCH。
headersobject-
secretstring-
timeout_msinteger-
retry_policy_idinteger-
filter_eventsstring-
statusenabled / disabled可选值:enabled, disabled。
created_atstring (date-time)创建时间。
updated_atstring (date-time)最后更新时间。