Forum Discussion
block a message in Microsoft Teams
I don't have an answer but I'd love to know how these 3rd parties can modify an existing message, I need to something similar for a different reason.
Hilton GiesenowGraph Delegate permission + API(https://apac.msgapi.teams.microsoft.com/v1/users/ME/conversations//messages/******?behavior=softDelete)
- Hilton GiesenowNov 25, 2019Brass Contributor
NextLabs_Tiger sure but that's to delete - I want to know how to -modify- a message after it's typed, before it gets posted, like for instance to redact a word.
- NextLabs_TigerNov 28, 2019Copper Contributor
Hilton Giesenow I has consult a Teams PM, the office interface is disable in his document.
you can try and test below api that I never test, maybe it can work.
PUT "https://apac.ng.msg.teams.microsoft.com/v1/
users/ME/conversations/{conversation_id}@unq.gbl.spaces/messages/{message_id}"
"{""content"":""your-text"",""messagetype"":""Text"",""contenttype"":""text"",""amsreferences"":[],""clientmessageid"":""the_origin_id"",""imdisplayname"":""the_origin_name"",""properties"":{""importance"":"""",""subject"":null}}"- 0bs33Apr 03, 2020Copper Contributor
Thanks to share your findings. In order to call above API, how did you impersonate the user? I could see, we have to pass a skypeToken which associate with user, but how can we get it.