The call (get the site default document library), usually "Shared Documents" started failing today for some reason.
https://graph.microsoft.com/v1.0/sites/{siteid}/drive
Documentation: Get the document library for a site
Error:
{
"error": {
"code": "itemNotFound",
"message": "The resource could not be found.",
"innerError": {
"date": "2025-05-09T22:47:42",
"request-id": "bd33264a-0d66-4694-95f2-c0acfd565ed5",
"client-request-id": "bd33264a-0d66-4694-95f2-c0acfd565ed5"
}
}
}
This call fails the same manner:
https://graph.microsoft.com/v1.0/sites/{tenant}:/sites/{sitename}:/drive
Started failing randomly. Sometimes it works (for the same site), sometimes it fails. For some sites, it seems to work all the time, for others it always fails. The problem started very recently (today or yesterday, most probably). It was working for years before. Similar call (note drives not drive) still always succeeds:
https://graph.microsoft.com/v1.0/sites/{tenant}:/sites/{sitename}:/drives
Looks like some update is rolled out on Microsoft side. Is there some change in the Graph API? Maybe it is a bug? Or was it an intended change somehow. How do I fix or work around this?
/v1.0/sites/{siteid}/drivesworks fine, but it doesn't support filtering by name.drivesit does not give the "default" document library, and the name of that can be different in different locales.