live-chat

PATCH /v1/chat/widgets/{widgetId}

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

அனைத்து live-chat இறுதிப்புள்ளிகளும்

அங்கீகாரம்

பியரர் டோக்கனாக (bearer token) ஒரு API விசையை அனுப்பவும். அந்த விசை livechat.manage அனுமதியைக் கொண்டிருக்க வேண்டும்; அது இல்லாத விசை 404 அல்ல, 403 குறியீட்டுடன் மறுக்கப்படும்.

இந்த எண்ட்பாயிண்டிற்கு எந்த அமைப்பு ஐடியும் (organisation id) தேவையில்லை. உங்கள் விசை (key) அது எந்த அமைப்புக்குரியது என்பதை ஏற்கனவே அடையாளம் காட்டுகிறது, மேலும் பதிலானது அதற்கேற்ப வரம்பிடப்பட்டுள்ளது.

முயன்று பார்

கோண அடைப்புக்குறிகளில் உள்ள எதையும் உங்கள் சொந்த மதிப்புகளுடன் மாற்றவும், மேலும் விசை பிளேஸ்ஹோல்டரை உங்கள் டாஷ்போர்டில் உள்ள விசையுடன் மாற்றவும்.

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