Can someone help me understand why I would get this error? My understanding is that I should be able to insert a new ContentDelivery by using similar code:
ContentDistribution cd = new ContentDistribution();
cd.name = 'test';
cd.ContentVersionId = '1234567891011AA'; - using real Id
cd.PreferencesAllowOriginalDownload = false;
cd.PreferencesAllowPDFDownload = false;
cd.PreferencesAllowViewInBrowser = true;
insert cd;
Deliveries are enabled and I am a system admin attempting to run this code from an Anonymous block in a Sandbox.