live-chat

PATCH /v1/chat/widgets/{widgetId}

Change a chat's settings, or switch it on.

ټول live-chat پای ټکي

تصدیق‌هویت

یو API کی د بیئرر ټوکن (bearer token) په توګه ولیکئ. کی باید د livechat.manage اجازه ولري؛ له دې اجازې پرته کی د 404 پرځای د 403 په واسطه رد کیږي.

دا پای نقطه د سازمان هېڅ آی ډي نه اخلي. ستاسو کیلي مخکې تر مخکې هغه سازمان په ګوته کوي چې پورې اړه لري، او ځواب ورته محدود دی.

هڅه وکړئ

د انګلیسي په زاوي پنسونو کې هرڅه د خپلو ارزښتونو سره بدل کړئ، او د کلي ځای لرونکی ستاسو د ډشبورډ د کلي سره.

curl -X PATCH https://api.zinndigital.com/v1/chat/widgets/{widgetId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

ننوتي یاست؟ ستاسو په ډشبورډ کې د API کنسول ستاسو د اصلي سازمان ID او ستاسو خپله کیلي ډکوي، او غوښتنه د ژوندی API په وړاندې پرمخ وړي ترڅو تاسو وکولی شئ اصلي ځواب وګورئ. دا پای ټکی (endpoint) د API په کنسول کې پرانیزئ

تفصیلات

Requires `livechat.manage`. Switching a widget on with no `allowedOrigins` is refused with `422` rather than accepted: the widget only answers pages on origins the customer listed, so an empty list would leave the chat live, looking configured, and invisible on every page with nothing saying why.

پارامترونه

نومډولاړیندا څه شی دی
widgetId (path)stringهو

د غوښتنې بدن

نومډولاړیندا څه شی دی
namestringنه
enabledbooleanنه
allowed_originsstring[]نه
greetingstringنه
team_namestringنه
accent_colourstringنه
positionstring<left, right>نه
hide_brandingbooleanنه
ai_enabledbooleanنه
offline_emailstringنه
business_hoursobjectنه

ځواب

نومډولاړیندا څه شی دی
idstringهو
site_idstringهو
namestringهو
public_keystringهو
enabledbooleanهوWhether the chat renders. Created FALSE always: the plugin ships in the deploy footprint of every WordPress site we host, so a widget may exist for a customer who never asked fo…
allowed_originsstring[]هوOrigins the widget may be embedded on. An EMPTY list refuses every page rather than allowing any — this is the only control stopping somebody else's site opening conversations a…
tierstringهو
greetingstringهو
team_namestringهو
accent_colourstringهو
positionstring<left, right>هو
hide_brandingbooleanهو
ai_enabledbooleanهو
offline_emailstringهو
business_hoursobjectنه
open_nowbooleanهو
ai_allowanceChatAiAllowanceهو
limitsobjectهو
premium_extra_codestringهوThe catalogue code to buy for the premium tier.

تېروتنې چې دا پای ټکی یې بیرته راګرځولی شي

401 · 403 · 404 · 422