question

Hemil374-4673 avatar image
0 Votes"
Hemil374-4673 asked ShwetaChoudhary-8869 edited

Microsoft Graph API for Teams Chat Beta URL No Longer Working

Hi,

I have been using the MS Graph API to download files from a teams chat window. The same request url (seen below) has been working up until a few days ago.

Has there been any changes in the API or the request format?
Same url with version v1.0 also doesn't work. I'm getting an "Item not found" error.

Request URL:

https://graph.microsoft.com/beta/users/<id>/drive/items/<file_id>/content

office-teams-app-devmicrosoft-graph-teamwork
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

We were able to list the drive item using https://graph.microsoft.com/beta/groups/<groupid>/drive/list/items and able to see the item which we are trying to download. But same item is not able to download with https://graph.microsoft.com/beta/groups/<id>/drive/items/<file_id>/content. it returns following error message

{
"error": {
"code": "itemNotFound",
"message": "The resource could not be found.",
"innerError": {
"date": "2021-04-09T05:40:34",
"request-id": "-",
"client-request-id": "-"
}
}
}

0 Votes 0 ·

1 Answer

ShwetaChoudhary-8869 avatar image
0 Votes"
ShwetaChoudhary-8869 answered ShwetaChoudhary-8869 edited

As per the documentation here, only drive items with the ‘file’ property can be downloaded.

Could you please confirm once if ‘contentType’ you are trying to download is file.


If so, please share complete request response including request-id and client-request-id that I can look into.





5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.