Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2019-02-04 14:57:07

jfoust
Member
Registered: 2019-02-04
Posts: 3

Transfer using REST API

Hi folks. I'm wondering if it is possible to transfer a chat back to the department queue with the API? I'm thinking maybe it is by using updatechatattributes, but I am struggling to figure out how to use that call. Most of the data I sent ends up being part of "additional_data" on the chat object. Thanks!

Offline

#2 2019-02-04 14:58:52

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Transfer using REST API

Hi jfoust ,
welcome on the live helper chat forum!

I am sorry but i cannot help with this request. I will try to inform the chat owner about this question but a reply is not garanted.
If you need there are commercial support, more info on my forum signature.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#3 2019-02-04 15:00:49

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Transfer using REST API

Hi,

You can use this call smile set status as pending just smile
https://api.livehelperchat.com/#/api/po … chatstatus

Offline

#4 2019-02-04 15:57:11

jfoust
Member
Registered: 2019-02-04
Posts: 3

Re: Transfer using REST API

Hi team. Thanks for the quick responses. I have used the setchatstatus call and it now shows as pending, however the user object on the chat still shows the agent info and the user_id is also still set to the agent's user_id. Can these be reset as well?

Offline

#5 2019-02-04 16:01:10

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Transfer using REST API

Hi,
Yes, just checked seems we do not have API for updating other chat attributes. But if there is a need you wan not hardly write it smile Or create github issue for that or just sponsor it if you want it faster smile

Offline

#6 2019-02-04 17:03:27

jfoust
Member
Registered: 2019-02-04
Posts: 3

Re: Transfer using REST API

Looking at this -> https://github.com/LiveHelperChat/liveh … w.php#L234 Can it be used to update the user_id to 0?

Offline

#7 2019-02-05 07:44:16

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Transfer using REST API

Hi,

No this one updates internal chat_variable single attribute smile

Offline

Board footer