cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AdamHelbing
Advocate II
Advocate II

Setting LockIssue and other site properties using api/site

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.

0 REPLIES 0

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (3,331)