Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
update chat message is not working
Hi Everyone,
We have a use case where we want to update attachments sent in the chat with new files. We tried using the updateMessage Endpoint. However, we are receiving the following error.
PATCH is not supported on specified properties
I tried updating a normal text message, but I was getting the same error.
Here is the body I have used,
"messageType": "message",
"subject": null,
"summary": null,
"importance": "normal",
"locale": "en-us",
"body": {},
"attachments": [
{
"id": "4bf3cbac-134d-4f8f-ba08-2927c0800f50",
"contentType": "application/vnd.microsoft.card.hero",
"contentUrl": "sharepoint url",
"name": null,
"thumbnailUrl": null
}
],
"mentions": [],
"reactions": [],
"messageHistory": []
}
We are using APIs with Application permissions.
Any help on solving this issue is greatly appreciated
Thanks!
Microsoft Teams | Development
Microsoft Security | Microsoft Graph
An API that connects multiple Microsoft services, enabling data access and automation across platforms
Microsoft Teams | Microsoft Teams for business | Other
Additional features, settings, or issues not covered by specific Microsoft Teams categories