Microsoft Graph API to add a shared folder to local folder fails

cst_zf 11 Reputation points
2025-10-30T19:42:44.66+00:00

I follow the article to add a shared folder to local folder.

https://learn.microsoft.com/en-us/onedrive/developer/rest-api/concepts/using-sharing-links?view=odsp-graph-online#add-a-shared-folder-to-the-users-drive

My code worked well last year but reports a 503 error today.

This is the post data I post to the api,

{"name":"PCS_iCloud","remoteItem":{"id":"599982FB2FB79EF3!sf9fedf7ef7a144f4a70a7f3ecfe533c8","parentReference":{"driveType":"personal","driveId":"599982FB2FB79EF3"}}}

API: POST /drive/root/children

PHP SDK: microsoft/microsoft-graph 1.110.0

Error Message:

{"error":{"code":"UnknownError","message":"503 SERVICE UNAVAILABLE","innerError":{"date":"2025-10-30T19:22:33","request-id":"37abe62a-4328-4bdc-b5a9-90c1359090bc","client-request-id":"37abe62a-4328-4bdc-b5a9-90c1359090bc"}}}

.

why does it go wrong?

Microsoft Security | Microsoft Graph
0 comments No comments

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.