live-chat

PATCH /v1/chat/widgets/{widgetId}

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

ຈຸດສິ້ນສຸດ live-chat ທັງໝົດ

ການພິສູດຕົວຕົນ

ສົ່ງລະຫັດ API ເປັນ bearer token. ລະຫັດຕ້ອງມີສິດ livechat.manage; ລະຫັດທີ່ບໍ່ມີສິດດັ່ງກ່າວຈະຖືກປະຕິເສດດ້ວຍລະຫັດ 403, ບໍ່ແມ່ນ 404.

ຈຸດເຊື່ອມຕໍ່ນີ້ບໍ່ໄດ້ຮັບ ID ອົງກອນ. ລະຫັດຂອງທ່ານໄດ້ລະບຸອົງກອນທີ່ມັນຂຶ້ນກັບແລ້ວ, ແລະ ຄໍາຕອບແມ່ນຖືກຈໍາກັດຂອບເຂດໄວ້ສໍາລັບອົງກອນນັ້ນ.

ລອງໃຊ້ເບິ່ງ

ປ່ຽນແທນທຸກຢ່າງທີ່ຢູ່ໃນວົງເລັບມຸມດ້ວຍຄ່າຂອງທ່ານເອງ, ແລະ ປ່ຽນແທນຕົວແທນບ່ອນວ່າງຄີດ້ວຍຄີຈາກແຜງຄວບຄຸມຂອງທ່ານ.

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

ເຂົ້າສູ່ລະບົບແລ້ວບໍ? ໂຄງສົນທະນາ API ໃນໜ້າັດສະຫຼອງຂອງທ່ານຈະຕື່ມຂໍ້ມູນລະຫັດອົງກອນຕົວຈິງ ແລະ ລະຫັດລັບສ່ວນຕົວຂອງທ່ານໂດຍອັດຕະໂນມັດ, ແລະ ປະຕິບັດການຮ້ອງຂໍຜ່ານ API ຕົວຈິງ ເພື່ອໃຫ້ທ່ານສາມາດເຫັນຜົນຕອບຮັບທີ່ແທ້ຈິງໄດ້. ເປີດຈຸດສິ້ນສຸດນີ້ໃນຄອນໂສລ 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