修改 webhook
open_webhook_editUpdate existing webhook settings for push notification channels, specifying type, URL, and optional custom HTTP method, headers, or body.
Instructions
POST /open/webhook/edit - 修改 webhook 配置。 请求: id(编号,必填), webhookCode/Name/Type/Url(必填), httpMethod/headers/body(自定义类型可选)。 webhookType: webhook类型;1企业微信机器人,2钉钉,3飞书,4Server酱,50bark,6企业微信应用,7腾讯轻联,8IFTTT,9集简云,10Gotify,11WxPusher,12自定义。 统一响应: code(数字,200成功), msg(字符串), data(业务数据)。 data: 如「修改成功」。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | webhook编号 | |
| body | No | body内容(仅自定义类型需要) | |
| headers | No | 请求头(仅自定义类型需要) | |
| httpMethod | No | 请求方法(仅自定义类型需要) | |
| webhookUrl | Yes | 调用的url地址 | |
| webhookCode | Yes | webhook编码 | |
| webhookName | Yes | webhook名称 | |
| webhookType | Yes | webhook类型;1企业微信机器人,2钉钉,3飞书,4Server酱,50bark,6企业微信应用,7腾讯轻联,8IFTTT,9集简云,10Gotify,11WxPusher,12自定义 |