'How to Publish/Deploy Google Sheet script as API executable programmatically?

I have a google sheet containing script, I want to perform following operations programmatically.

  1. Make this Google spreadsheet public programmatically.
  2. I want to execute the script associated with the above spreadsheet programmatically for any user (public).

Can I perform "Publish>Deploy as API executable" programmatically?



Solution 1:[1]

You may want to check the recent updates in Release Notes and see if it will help. It's stated:

  • You can now deploy a script project directly from the project manifest.
  • We've updated the Publish script editor menu item to more accurately represent the various kinds of deployments a project can have, such as add-on, web app, or API executable deployments.

For more information, you may want to check these references:

Then, for features not currently supported, you may check or file a feature request here.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Teyam