Langsung ke konten utama
PATCH
Setel konfigurasi webhook perangkat

Otorisasi

Authorization
string
header
wajib

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

Parameter Path

device_id
string
wajib

ID perangkat

Body

application/json
webhook_url
string
wajib

URL webhook kustom yang digunakan untuk perangkat ini. Setel ke string kosong untuk menghapusnya.

Contoh:

"https://example.com/webhook"

webhook_secret
string

Secret opsional yang digunakan untuk menandatangani payload webhook perangkat ini.

Contoh:

"super-secret-key"

webhook_events
string

Daftar event yang diizinkan, dipisahkan koma, yang opsional untuk webhook perangkat ini. Kosong berarti semua event.

Contoh:

"message,message.ack"

webhook_insecure_skip_verify
boolean

Opsional. Lewati verifikasi sertifikat TLS untuk webhook perangkat ini.

Contoh:

false

Respons

OK

status
integer
Contoh:

200

code
string
Contoh:

"SUCCESS"

message
string
Contoh:

"Device webhook updated"

results
object