Microsoft 365 Archive is a great new feature that allows organisations to archive inactive files directly in SharePoint document libraries – moving them to a lower-cost cold storage tier without losing discoverability or compliance coverage. Until recently, M365 Archive only supported archiving at the site level – meaning you had to archive an entire site or nothing at all. The file-level archiving public preview changes that, allowing you to archive individual files within an active site – a much more practical option for most organisations. I’ve been exploring it in my lab tenant and was very impressed with how well it integrates with the SharePoint experience. Today I will demonstrate how to automate SharePoint file archive operations – covering both Archive and UnArchive using the SharePoint REST API with Power Automate and PnP PowerShell. BIG WARNING – the REST endpoints I’m using are undocumented and unsupported, so treat this as a proof of concept rather than production-ready guidance. I’ll cover this in full detail in the API section below.