I have created a new sitepolicy. I know that I can apply this policy programatically (ProjectPolicy.ApplyProjectPolicy) but is it possible to apply site policies using javascript? I failed to find any examples thought this should be possible since SCOM API exists.
SharePoint 365 does not support server side code and sandboxed solutions are deprecated.