AI-generated Key Takeaways
-
The Apps Script API provides methods to manage script project deployments, including creating, listing, reading, modifying, and deleting them.
-
You can create a new deployment by specifying the code version, manifest file, and description.
-
The API allows you to list all deployments for a project, retrieve details of a specific deployment, and update existing deployments.
-
Deleting a deployment using the API can break applications that depend on it.
This section provides an overview of the Apps Script API methods you can use to create, list, read, modify, and delete a script project's deployments.
API method overview | |
---|---|
Create a deployment |
Results: Create a new deployment for a script project.
You specify the code version,
the manifest file, and
deployment description to use. Returns a
|
List a project's deployments |
Results: Returns an array of
|
Read a deployment |
Results: Returns a
|
Update a deployment |
Results: Changes a deployment's description, code version, or the manifest where the deployment is defined. |
Delete a deployment |
Results: Removes a deployment. Warning: Deleting a deployment causes any add-on, web app, or other application that makes use of that deployment to lose access to the Apps Script project, usually causing them to fail. Do not delete a deployment without first updating any apps that depend on it. |