How to programmatically create a Published Range link with Allow Interaction enabled?

How to programmatically create a Published Range link with Allow Interaction enabled?

I have a very complicated data entry use case for which, (unfortunately) a spreadsheet is the best solution.

I have a Named Range in a "master" workbook that needs to be Published to the external world with "Allow Interaction" enabled.

I copy the workbook, per-Deal, to an appropriate Workdrive folder.

How can I programmatically create the necessary Published Range link?

I'm willing to use an "alpha" release of the bits of the unpublished Sheets API which supports this.