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

Setting LockIssue and other site properties using api/site

(0) ShareShare
ReportReport
Posted on by 16

I am hopping someone out here in this wonderful community can help me with something.  I am trying to update/set some of the properties that are present under the api/site of a given site.  The goal is take a site and

  • change the ReadOnly property from false to true
  • change the WriteLocked property from false to true
  • set the LockIssue property from null to something like "Site has been archived and is read only."

I am able to see the current values for these properties and more using the HTTP Request to SharePoint action (example showing the WriteLocked property).

GET _api_site.jpg

I have then tried using the same HTTP Request to SharePoint to update these properties.  Below is what I have right now, but I have tried each of the three properties individually as well just trying to get something to bite.  I have also tried POST, PUT, and PATCH.  Additionally, I have also tried with various combinations of the headers.

POST Example.jpg

When run under the various set ups, the flow does run successfully, but the properties are not being updated.  

Success but not really.jpg

 

Am I missing something?  Or can we just no update these site level properties?  I have had success with other similar api calls  - like changing the name of the site title using PATCH with the api/web.

 

Any help or guidance would be greatly appreciated.

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 532 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 461 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 256

Last 30 days Overall leaderboard