Ana içeriğe atla
PATCH
Cihaz webhook yapılandırmasını ayarla

Yetkilendirmeler

Authorization
string
header
gerekli

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

Yol Parametreleri

device_id
string
gerekli

Cihaz kimliği

Gövde

application/json
webhook_url
string
gerekli

Bu cihaz için kullanılacak özel webhook URL’si. Temizlemek için boş dize olarak ayarlayın.

Örnek:

"https://example.com/webhook"

webhook_secret
string

Bu cihazın webhook yüklerini imzalamak için kullanılan isteğe bağlı gizli anahtar.

Örnek:

"super-secret-key"

webhook_events
string

Bu cihazın webhook’u için virgülle ayrılmış isteğe bağlı izin verilen olaylar listesi. Boş olması tüm olaylar anlamına gelir.

Örnek:

"message,message.ack"

webhook_insecure_skip_verify
boolean

İsteğe bağlı. Bu cihazın webhook’u için TLS sertifikası doğrulamasını atla.

Örnek:

false

Yanıt

Tamam

status
integer
Örnek:

200

code
string
Örnek:

"SUCCESS"

message
string
Örnek:

"Device webhook updated"

results
object