live-chat

PATCH /v1/chat/widgets/{widgetId}

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

Të gjitha pikat e skajshme live-chat

Autentifikimi

Drgoni një çelës API si një token mbajtës. Çelësi duhet të ketë lejen livechat.manage; një çelës pa të refuzohet me 403, jo 404.

Ky pikëndalim nuk pranon id të organizatës. Çelësi juaj tashmë identifikon organizatën së cilës i përket dhe përgjigjja kufizohet vetëm për atë.

Provoje

Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.

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

Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së

Detajet

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.

Parametrat

EmriLlojiKërkohetÇfarë është kjo
widgetId (path)stringPo

Trupi i kërkesës

EmriLlojiKërkohetÇfarë është kjo
namestringJo
enabledbooleanJo
allowed_originsstring[]Jo
greetingstringJo
team_namestringJo
accent_colourstringJo
positionstring<left, right>Jo
hide_brandingbooleanJo
ai_enabledbooleanJo
offline_emailstringJo
business_hoursobjectJo

Përgjigja

EmriLlojiKërkohetÇfarë është kjo
idstringPo
site_idstringPo
namestringPo
public_keystringPo
enabledbooleanPoWhether 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[]PoOrigins 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…
tierstringPo
greetingstringPo
team_namestringPo
accent_colourstringPo
positionstring<left, right>Po
hide_brandingbooleanPo
ai_enabledbooleanPo
offline_emailstringPo
business_hoursobjectJo
open_nowbooleanPo
ai_allowanceChatAiAllowancePo
limitsobjectPo
premium_extra_codestringPoThe catalogue code to buy for the premium tier.

Gabimet që ky pikëndalim mund të kthejë

401 · 403 · 404 · 422