Enable Modern Audience Targeting programmatically

%3CLINGO-SUB%20id%3D%22lingo-sub-1453368%22%20slang%3D%22en-US%22%3EEnable%20Modern%20Audience%20Targeting%20programmatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1453368%22%20slang%3D%22en-US%22%3E%3CP%3EHi.%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20programmatically%20enable%20modern%20audience%20targeting%20on%20SitePages%20library%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi. 

Is there a way to programmatically enable modern audience targeting on SitePages library? 

1 Reply

@Daniel Gustafsson I have this same need, anyone?