প্রমাণীকরণ

একটি বিয়ারার টোকেন হিসেবে একটি এপিআই কি পাঠান। কি-টির অবশ্যই livechat.manage অনুমতি থাকতে হবে; এটি ছাড়া কোনো কি ৪০৪ নয়, বরং ৪০৩ ত্রুটি দিয়ে প্রত্যাখ্যাত হবে।

এই এন্ডপয়েন্টটি কোনো অর্গানাইজেশন আইডি নেয় না। আপনার কীটি ইতিমধ্যে এটি যে অর্গানাইজেশনের অন্তর্গত তা শনাক্ত করে এবং প্রতিক্রিয়াটি সেই অনুযায়ী নির্ধারিত হয়।

চেষ্টা করুন

কোণ বন্ধনীতে থাকা যেকোনো কিছু আপনার নিজস্ব মান দিয়ে এবং কী প্লেসহোল্ডারটি আপনার ড্যাশবোর্ডের একটি কী দিয়ে প্রতিস্থাপন করুন।

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

লগ ইন করা আছে? আপনার ড্যাশবোর্ডের এপিআই কনসোল আপনার আসল অর্গানাইজেশন আইডি এবং আপনার নিজের কি পূরণ করে দেয়, এবং লাইভ এপিআই-এর বিপরীতে অনুরোধটি চালায় যাতে আপনি প্রকৃত প্রতিক্রিয়া দেখতে পান। এই এন্ডপয়েন্টটি এপিআই কনসোলে খুলুন

বিবরণ

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 for…
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…
tierstringহ্যাঁThe tier this widget is EFFECTIVELY on. Premium is included free with Zinn® hosting, so this may read premium on a widget nobody has paid for — read purchased_tier for what…
tier_sourcestring<free, purchase, hosting>হ্যাঁWhy the widget is on that tier. hosting means it is included with the customer's Zinn® hosting and there is nothing to buy; purchase means the Premium extra was bought for…
purchased_tierstringহ্যাঁThe tier actually PAID for, independent of any hosting inclusion.
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