Share via

update chat message is not working

Kalinga Somana 25 Reputation points
2023-12-16T12:21:43.5866667+00:00

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 Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.