メインコンテンツへスキップ
PUT
デバイスのChatwoot設定を作成または更新

承認

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
必須

Chatwoot設定のデバイス ID (または WhatsApp JID)

例:

"my-device-id"

ボディ

application/json
chatwoot_url
string
必須
例:

"https://chatwoot.example.com"

account_id
integer
必須
例:

1

inbox_id
integer
必須
例:

5

api_token
string

Chatwoot agent/bot API トークン。 作成時に必要です。empty (またはマスクされた値) は、更新時に保存されたトークンを保持します。

webhook_secret
string

この受信トレイの API チャンネルの Webhook シークレット。 このデバイスにルーティングされたすべての Webhookを保護するように設定されている場合 (/chatwoot/webhook/{device_id} と

CHATWOOT_WEBHOOK_SECRETの代わりに、共有された/chatwoot/webhook) 。 保存されている値を保持するために省略します。空の 文字列を送信して削除します。 APIが返すことはありません。

enabled
boolean
デフォルト:true

レスポンス

設定を保存しました

code
string
例:

"SUCCESS"

message
string
例:

"Chatwoot device config saved"

results
object

デバイス毎のChatwootルーティング設定 (読み込みごとにAPIトークンがマスクされます)