I've been looking for a way to unpublish a SharePoint page using Power Automate, but so far, I haven't found any out-of-the-box actions that seem to do the job.
I came across some posts suggesting the /unpublish HTTP request, but in my case, it throws this error:
"Cannot find resource for the request unpublish."
Has anyone successfully automated unpublishing pages via Power Automate? Any insights or workarounds would be greatly appreciated!
#SharePoint #PowerAutomate #Automation #Microsoft365
Method: POST
Uri: _api/Web/Lists/GetByTitle('Site Pages')/Items(@{variables('varID')})
Headers - accept - application/json;odata=verbose
Headers - content-type - application/json;odata=verbose
Headers - If Match - *
Headers - X-HTTP-Method - MERGE
Body - { '__metadata':{'type':'SP.Data.SitePagesItem'},'PromotedState':0 }
Rob
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2