Managing Versions

This section provides an overview of the Apps Script API methods you can use to create a new project code version, read version information, or list all existing versions.

API method overview
Create a version


Results: Create a new, immutable version of a script project's code. The project's current saved code is used for the version. This creates a code "snapshot" you can read later or use in a specific deployment. Returns a Version object, containing the version configuration details.

List a project's versions


Results: Returns an array of Version objects, each representing one of the versions of the script project.

Read a version


Results: Returns a Version that represents a specific version of a script project.