We are currently working on a site provisioning application for use in our company (internal) . We are leveraging the PNP engine in our application which we have deployed to Azure.
There is a requirement to apply deletion and data retention policies to the sites when they are created. We are using SharePoint Online on the Office 365 Platform. As such, our data retention policie sare defined in the Data Governance section of the Security & Compliance center (https://protection.office.com).
How can we add newly provisioned sites to a Retention policy via C#. Is there a library/API we can use?