live-chat

PATCH /v1/chat/widgets/{widgetId}

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

Gbogbo àwọn live-chat endpoints

Gbogbo àwọn ìwé àṣẹ olùgbékalẹ̀ àgbékalẹ̀

Ìfàṣẹ́pọ̀

Fi bọ́ọ̀lù (bearer token) ranṣẹ gẹ́gẹ́ bí kọ́kọ́rọ́ API. Kọ́kọ́rọ́ náà gbọ́dọ̀ ní ìyọ̀ǹda livechat.manage; a ó kọ̀ ọ́ silẹ pẹlu 403, kii ṣe 404, ti kọ́kọ́rọ́ náà kò bá ní i.

Ojú abánisọ̀rọ̀ yìí kò gba id ajọ kankan. Kọ́kọ́rọ́ rẹ ti mọ ajọ ti o jẹ ti e, a o si fèsì nipa rẹ̀.

Gbiyanju rẹ

Rọ́pọ̀ èyíkéyìí nínú àwọn àmì ìtọ́ka < > pẹ̀lú iye tirẹ̀, àti àmì ìdánimọ̀ bọ́tìnnì náà pẹ̀lú bọ́tìnnì kan láti inú dásibọ̀ọ̀dù rẹ.

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

Ṣé o ti wọlé? Iwọ̀n api ní nú ìgbékalẹ̀ rẹ kún id àjọ gidi rẹ ati bọtini tirẹ, o si nṣiṣẹ ibeere na lòdì si api gidi ki o le rii esi gidi na. Ṣí ojú abáná yìí sílẹ̀ nínú kọnsólù API

Àwọn kúlẹ̀kúlẹ̀

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.

Àwọn ìpìlẹ̀

OrúkọIruTí a nílòKini o jẹ
widgetId (path)stringBẹẹni

Akoonu ibeere naa

OrúkọIruTí a nílòKini o jẹ
namestringBẹẹkọ
enabledbooleanBẹẹkọ
allowed_originsstring[]Bẹẹkọ
greetingstringBẹẹkọ
team_namestringBẹẹkọ
accent_colourstringBẹẹkọ
positionstring<left, right>Bẹẹkọ
hide_brandingbooleanBẹẹkọ
ai_enabledbooleanBẹẹkọ
offline_emailstringBẹẹkọ
business_hoursobjectBẹẹkọ

Idahun

OrúkọIruTí a nílòKini o jẹ
idstringBẹẹni
site_idstringBẹẹni
namestringBẹẹni
public_keystringBẹẹni
enabledbooleanBẹẹniWhether 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[]BẹẹniOrigins 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…
tierstringBẹẹniThe 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>BẹẹniWhy 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_tierstringBẹẹniThe tier actually PAID for, independent of any hosting inclusion.
greetingstringBẹẹni
team_namestringBẹẹni
accent_colourstringBẹẹni
positionstring<left, right>Bẹẹni
hide_brandingbooleanBẹẹni
ai_enabledbooleanBẹẹni
offline_emailstringBẹẹni
business_hoursobjectBẹẹkọ
open_nowbooleanBẹẹni
ai_allowanceChatAiAllowanceBẹẹni
limitsobjectBẹẹni
premium_extra_codestringBẹẹniThe catalogue code to buy for the premium tier.

Awọn aṣiṣe ti ibudo ipari yii le da pada

401 · 403 · 404 · 422