Hi Team,
I’m facing an inconsistent issue with the Microsoft Graph Copy DriveItem API when replacing SharePoint files. The request to:
POST /sites/{site-id}/drive/items/{item-id}/copy?@microsoft.graph.conflictBehavior=replace
now returns:
{"error":{"code":"unauthenticated","message":"Unauthenticated"}}
even though the file sometimes does get updated. Other times the update fails completely. Token, scopes, itemId, and siteId are all valid, and other Graph endpoints work. Graph Explorer also returns 401.
Are there any known issues, changes, or alternative recommended APIs for reliable file replacement?

Report
All responses (
Answers (