Ana içeriğe atla
PUT
Bir cihazın Chatwoot yapılandırmasını oluştur veya güncelle

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

Chatwoot yapılandırması hedeflenen cihaz kimliği (veya WhatsApp JID değeri)

Örnek:

"my-device-id"

Gövde

application/json
chatwoot_url
string
gerekli
Örnek:

"https://chatwoot.example.com"

account_id
integer
gerekli
Örnek:

1

inbox_id
integer
gerekli
Örnek:

5

api_token
string

Chatwoot temsilci/bot API token değeri. Oluştururken zorunludur; güncellemede boş (veya maskelenmiş) değer kayıtlı token değerini korur.

webhook_secret
string

Bu gelen kutusunun API kanalına ait webhook sırrı. Ayarlandığında CHATWOOT_WEBHOOK_SECRET yerine bu cihaza yönlendirilen tüm webhook isteklerini (/chatwoot/webhook/{device_id} ve paylaşılan /chatwoot/webhook üzerinde) korur. Kayıtlı değeri korumak için belirtmeyin; kaldırmak için boş bir dize gönderin. API tarafından asla döndürülmez.

enabled
boolean
varsayılan:true

Yanıt

Yapılandırma kaydedildi

code
string
Örnek:

"SUCCESS"

message
string
Örnek:

"Chatwoot device config saved"

results
object

Cihaza özel Chatwoot yönlendirme yapılandırması (API token değeri her okumada maskelenir)