We are using the below graph endpoint to get the metadata for the location where the files of a channel are stored.
GET /teams/{id}/channels/{id}/filesFolder
Sometimes for a newly created MS team/channel it is returning 404 not found.
GET
HTTP/1.1 404 Not Found
client-request-id: c5346ac2-b438-4852-84da-d8f9d257ed66
request-id: 299100d3-fb5e-41e2-a3a4-f04ec11d21b4
Cache-Control: private
Content-Type: application/json
Date: Fri, 26 Jun 2020 07:54:13 GMT
request-id: 299100d3-fb5e-41e2-a3a4-f04ec11d21b4
{
"error": {
"code": "NotFound",
"message": "SharePoint folder not found for this channel.",
"innerError": {
"date": "2020-06-26T07:54:13",
"request-id": "299100d3-fb5e-41e2-a3a4-f04ec11d21b4"
}
}
}
It looks like Ms teams is not creating a folder for a new channel. Previously this used to work.
Do we have any alternative API to create a folder for a MS team channel?