curl --request PATCH \
--url 'https://api.scanova.io/lead/L9c2f4a1e/webhook/7/' \
--header 'Authorization: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{ "url": "https://example.com/new-lead-webhook" }'
{ "id": 7, "url": "https://example.com/new-lead-webhook", "created": "2026-09-08T10:00:00+05:30", "modified": "2026-09-08T11:00:00+05:30" }
潜在客户 Webhook
更新潜在客户列表 webhook
PATCH /lead//webhook//
PATCH
/
lead
/
{lead_id}
/
webhook
/
{pk}
/
curl --request PATCH \
--url 'https://api.scanova.io/lead/L9c2f4a1e/webhook/7/' \
--header 'Authorization: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{ "url": "https://example.com/new-lead-webhook" }'
{ "id": 7, "url": "https://example.com/new-lead-webhook", "created": "2026-09-08T10:00:00+05:30", "modified": "2026-09-08T11:00:00+05:30" }
更新潜在客户列表 webhook 的 URL。
同时支持
需要具有
MANAGEMENT_API(或 MANAGEMENT_API_SANDBOX)配额和 LEAD_GENERATION_WEBHOOK_CAN_EDIT 权限的管理 API 密钥,作为原始 Authorization 标头值发送 —— 参见管理 API 概述。PUT https://api.scanova.io/lead/{lead_id}/webhook/{pk}/
PATCH https://api.scanova.io/lead/{lead_id}/webhook/{pk}/
string
必填
潜在客户列表的
lead_id。integer
必填
webhook 的
id。string
必填
webhook 的新目标 URL。
curl --request PATCH \
--url 'https://api.scanova.io/lead/L9c2f4a1e/webhook/7/' \
--header 'Authorization: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{ "url": "https://example.com/new-lead-webhook" }'
{ "id": 7, "url": "https://example.com/new-lead-webhook", "created": "2026-09-08T10:00:00+05:30", "modified": "2026-09-08T11:00:00+05:30" }
PUT 和 PATCH。如果 lead_id 不属于此账户,或 pk 不是此潜在客户列表的 webhook,则返回 404。
相关内容
- 获取潜在客户列表 webhook —— 更新前查看。
- 删除潜在客户列表 webhook —— 将其彻底移除。
- 管理 API 概述 —— 此端点所属的身份验证方案和配额体系。
授权
Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.
响应
200
Webhook updated.
此页面对您有帮助吗?