Hi. I just have a quick question about webchat.
I followed this sample, https://developer.mypurecloud.com/api/webchat/
and seems to work fine on customer side.
And then I wanted
Agent connect to the alerting webchat through API, so
I tried to change the state of interacting agent from "alerting" to "connected" through Purecloud API
when notification of v2.users.{agentid}.conversations.chats is received.
I used [PATCH /api/v2/conversations/chats/{conversationId}/participants/{participantId}]
with body containing "state" : "connected", and I got 202 response.
However, it doesn't seem agent is connected to the chat.
Can you confirm this if this is the right approach?
Thanks,
Yohan