cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1004
Views
0
Helpful
3
Replies

Not able to Delete message which is sent by Bot

sandiban
Cisco Employee
Cisco Employee

Hi, my app has been working for many months, now I am facing the problem with deleting the message that should be deleted by bot. I am tring to delete the message but receive 404 and "Unable to delete message". I have the correct message id as usual, message is still present in the room and I am able to get the message detail by API.

What could be a reason that I can GET the message but not able to DELETE it, while the message is created by the bot?

The problem is with one specific message.

3 Replies 3

sandiban
Cisco Employee
Cisco Employee

Hi @krzysztof Suwaj,

Since the message has been created by the Bot, then you would not be able to Delete the message.
You should use the Bot token to get the message deleted.
So, from the provided information - we believe currently the token is used which is yours, and that's why the Bot message deletion is throwing the error.
However, since you're active part of that room/space already, that's why you're able to read the messages via GET request though.

Let us know for any further queries on this or, share the details to devsupport@webex.com so that we can check on it further.
Thank you!
Sandip

Reply from @krzysztof Suwaj 

Yes, certainly, I use BOT token to delete the message as usual. The next message I create in the same way I can easily delete by this token.

So, basically the messages which are created by the Bot, those should be able to be deleted by the Bot token and the messages created by the individual users, those can be deleted by the Individual Users' token.
However the reverse is not possible in both cases.
If the message was created by the Bot, however if it's not getting deleted by the Bot token, then we need to look at it further.
In that case, kindly share the details to devsupoort@webex.com with Bot Name, Bot ID, current Bot Token, Bot messageId, API Request Payload for deletion that you're sending, and the trackingId with the Error
This would help us to investigate on this further.

Thank you!
Sandip