الانتقال إلى المحتوى الرئيسي
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
مطلوب

معرف الجهاز

الجسم

application/json
webhook_url
string
مطلوب

عنوان ويب هوك مخصص لاستخدامه لهذا الجهاز. تعيين إلى سلسلة فارغة لمسح.

مثال:

"https://example.com/webhook"

webhook_secret
string

السر الاختياري المستخدم لتوقيع الحمولات لهذا الجهاز.

مثال:

"super-secret-key"

webhook_events
string

قائمة الأحداث الاختيارية المنفصلة بفواصل بيضاء لهذا الجهاز. فارغة تعني جميع الأحداث.

مثال:

"message,message.ack"

webhook_insecure_skip_verify
boolean

اختياري. تخطي التحقق من شهادة TLS لهذا الجهاز webhook.

مثال:

false

الاستجابة

حسناً

status
integer
مثال:

200

code
string
مثال:

"SUCCESS"

message
string
مثال:

"Device webhook updated"

results
object