メインコンテンツへスキップ
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

任意。 このデバイス Webhook の TLS 証明書検証をスキップします。

例:

false

レスポンス

OK

status
integer
例:

200

code
string
例:

"SUCCESS"

message
string
例:

"Device webhook updated"

results
object