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 / Setting LockIssue and ...
Power Automate
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.

Categories:
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard