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

Community site session details

Session Id : yQCuoJPfVzAeH1yq6Jb8+6
Power Automate - Building Flows
Unanswered

Use API to restoreVersion - 401 Unauthorized error

Like (2) ShareShare
ReportReport
Posted on 22 Feb 2022 19:00:12 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 06 Oct 2022 at 13:29:57
    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete