Home

MS Teams Graph API : Is there a way to edit messages/replies via API?

%3CLINGO-SUB%20id%3D%22lingo-sub-822446%22%20slang%3D%22en-US%22%3EMS%20Teams%20Graph%20API%20%3A%20Is%20there%20a%20way%20to%20edit%20messages%2Freplies%20via%20API%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-822446%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIm%20trying%20to%20edit%20messages%2Freplies%20via%20Api%20in%20Teams%20but%20i%20can%20not%20find%20any%20documentation%20about%20it.%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20found%20other%20documentation%20for%20the%20same%20purpose%20with%20mail%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fsv-se%2Fgraph%2Fapi%2Fmessage-update%3Fview%3Dgraph-rest-beta%26amp%3Btabs%3Dhttp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fsv-se%2Fgraph%2Fapi%2Fmessage-update%3Fview%3Dgraph-rest-beta%26amp%3Btabs%3Dhttp%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EPATCH%20%2Fme%2Fmessages%2F%7Bid%7D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Eso%20i%20was%20trying%20the%20same%20logic%20in%20graph%20explorer%20for%20messages%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EPATCH%20%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fteams%2F%7BteamId%7D%2Fchannels%2F%7BchannelId%7D%2Fmessages%2F%7BmessageId%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fteams%2F%7BteamId%7D%2Fchannels%2F%7BchannelId%7D%2Fmessages%2F%7BmessageId%3C%2FA%3E%7D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7B%3CBR%20%2F%3E%22body%22%3A%20%7B%3CBR%20%2F%3E%22content%22%3A%20%22Trying%20to%20update%20messages!%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20i%20just%20get%26nbsp%3BUnknownError%20back.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20how%20to%20do%20this%3F%20is%20it%20possible%20in%20any%20way%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-822446%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Egraph%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
jaimeirala
New Contributor

Hi,

 

Im trying to edit messages/replies via Api in Teams but i can not find any documentation about it. 

I've found other documentation for the same purpose with mail:

 

https://docs.microsoft.com/sv-se/graph/api/message-update?view=graph-rest-beta&tabs=http

 

PATCH /me/messages/{id}

 

so i was trying the same logic in graph explorer for messages:

PATCH https://graph.microsoft.com/beta/teams/{teamId}/channels/{channelId}/messages/{messageId}

{
"body": {
"content": "Trying to update messages!"
}
}

 

but i just get UnknownError back.

 

Does anyone know how to do this? is it possible in any way?

 

Thanks in advance!

Related Conversations
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
2 Replies
*Updated 9/3* Syncing in Microsoft Edge Preview Channels
Elliot Kirk in Articles on
202 Replies
Early preview of Microsoft Edge group policies
Sean Lyndersay in Discussions on
65 Replies