跳转到主要内容
PATCH
设置设备webhook 配置

授权

Authorization
string
header
必填

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

路径参数

device_id
string
必填

设备ID

请求体

application/json
webhook_url
string
必填

为此设备自定义Webhook URL。 设置为清空字符串。

示例:

"https://example.com/webhook"

webhook_secret
string

用于签名此设备的 webhook 有效载荷的可选秘密。

示例:

"super-secret-key"

webhook_events
string

可选的 webhook逗号分隔的事件白名单。 空意味着所有事件。

示例:

"message,message.ack"

webhook_insecure_skip_verify
boolean

可选的。 跳过 Web 钩子的 TLS 证书验证。

示例:

false

响应

好的

status
integer
示例:

200

code
string
示例:

"SUCCESS"

message
string
示例:

"Device webhook updated"

results
object