cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1285
Views
10
Helpful
5
Replies

How to leave a 1-1 / direct room via API

BBETTE
Cisco Employee
Cisco Employee

Hello community,


I have started experimenting with Webex API, and I have run into a few problems, if anyone can shed some light that would be appreciated.

 

1. Is there an API that I can use to leave a room rather than delete a room?

2. Is there an API where I can leave or delete a direct or 1-to-1 room, currently using the room DELETE API I am getting the following return:

 

{"message":"Can't leave a 1-to-1 room.","errors":[{"description":"Can't leave a 1-to-1 room."}]

 

Thank you.

 

 

1 Accepted Solution

hazeena farook
Cisco Employee
Cisco Employee

Unfortunately, there is no way to delete the room or membership for a 1:1 room. When you leave a 1:1 room from the client, it is simply hiding the 1:1 room but the membership is still there.
This currently can't be done via the API, though there is an open feature request to allow you to update the membership to hide the 1:1 room so the user doesn't see it in the client. Unfortunately, we do not have an ETA yet on when this will be released. Once it is release, it will be posted to the change log (https://developer.webex.com/docs/api/changelog).

View solution in original post

5 Replies 5

hazeena farook
Cisco Employee
Cisco Employee

Unfortunately, there is no way to delete the room or membership for a 1:1 room. When you leave a 1:1 room from the client, it is simply hiding the 1:1 room but the membership is still there.
This currently can't be done via the API, though there is an open feature request to allow you to update the membership to hide the 1:1 room so the user doesn't see it in the client. Unfortunately, we do not have an ETA yet on when this will be released. Once it is release, it will be posted to the change log (https://developer.webex.com/docs/api/changelog).

Any updates on this? Did the feature that "hides" the 1:1 / direct room in the UI get implemented?

Hi @kgameste,
When you say in the UI, do you mean in the Webex App/Client?
If yes, then Webex App already hides a 1:1 or, a Direct chat room once you "Leave" that chat, but that doesn't mean that 1:1 room is deleted. It just hides that chat window, that's all!
It'd remain like this only.

But from the API, this feature is still not available. You can't make a /DELETE request to leave/hide a 1:1 or, direct chat room.
And I don't think we've anyone engaged from Engg. to work on this feature actually, at least at this point of time.

Regards!
Sandip

Thanks @hazeena farook 

@BBETTE , 

if the problem is that you are trying to hide what was what said on the 1:1 room for privacy reasons or you don’t want to keep a trail of what happened on the 1:1 room:

 

 I would suggest to simply delete the messages on that room, you can get  the whole list of messages on the 1:1 room via API instead forcing the user to leave the 1:1 room (which is not possible based on previous posts) , you can also notify on the 1:1 room that the messages were deleted for privacy reasons.

 

Just an idea, sometimes we have to dance around technical limitations with a different user journey (user story).

 

HTH