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 / Use API to restoreVers...
Power Automate
Unanswered

Use API to restoreVersion - 401 Unauthorized error

(2) ShareShare
ReportReport
Posted on by 152

Hi,

 

I am trying to use Flow to restore previous version of all items on a list.

 

The documentation about this API is below: 

https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/listitemversion_restore?view=odsp-graph-online

 

I believe this step is constructed properly. 

dchan1_0-1645555944254.png

 

But, as I run it, I got the below error: 

dchan1_1-1645556079560.png

 

How/Where should permission be set?  Is it about the user (i.e. myself)? or the list?  

 

Thanks.

 

Dchan

Categories:
I have the same question (0)
  • MengtingXie Profile Picture
    112 on at

    Please check if you have a space in front of the Uri. I got the same problem and I fixed the issue by deleting a "hard-to-see" space at the beginning of the Uri.

    MengtingXie_0-1665062871667.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard