Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

  • MengtingXie Profile Picture
    112 on at
    Re: Use API to restoreVersion - 401 Unauthorized error

    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492