06-20-2022 09:56 AM
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.
Solved! Go to Solution.
06-20-2022 10:56 PM
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).
06-20-2022 10:56 PM
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).
12-21-2024 09:18 AM
Any updates on this? Did the feature that "hides" the 1:1 / direct room in the UI get implemented?
12-28-2024 09:30 AM
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
06-20-2022 11:25 PM
Thanks @hazeena farook
12-28-2024 10:07 AM
@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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide