Ana içeriğe atla
POST
Yeni cihaz ekle

Yetkilendirmeler

Authorization
string
header
gerekli

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

Gövde

application/json
device_id
string

İsteğe bağlı özel cihaz kimliği. Belirtilmezse otomatik olarak oluşturulur.

Örnek:

"my-custom-device-id"

webhook_url
string

İsteğe bağlı, cihaza özel webhook URL’si. Ayarlanırsa bu cihaza ait olaylar genel webhook yerine buraya gönderilir.

Örnek:

"https://device-webhook.example.com/handler"

webhook_secret
string

Cihaza özel webhook yüklerini imzalamak için kullanılan isteğe bağlı gizli anahtar (HMAC).

Örnek:

"super-secret-key"

webhook_events
string

Cihaza özel webhook’a iletilecek olay adlarının virgülle ayrılmış isteğe bağlı listesi. Boş olması tüm olaylar anlamına gelir.

Örnek:

"message,message.ack"

webhook_insecure_skip_verify
boolean

İsteğe bağlı. Cihaza özel webhook’a teslim sırasında TLS sertifikası doğrulamasını atla.

Örnek:

false

Yanıt

Tamam

code
string
Örnek:

"SUCCESS"

message
string
Örnek:

"Device added"

status
integer
Örnek:

200

results
object