I'm struggling within my app to enable and set sync on a document library. Is it possible using CSOM? Any help is appreciated:)
These two links should help you in your issues:
Let us know if this helps !