web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Graph Copy API returni...
Power Automate
Unanswered

Graph Copy API returning “Unauthenticated” (401) but file still gets replaced in SharePoint

(0) ShareShare
ReportReport
Posted on by

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?

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard