developers.google.com uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more.
bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-04 UTC."],[[["This section explains how to manage Apps Script project versions using the Apps Script API."],["You can create new versions, which are immutable snapshots of your project's code."],["The API allows you to list all existing versions and retrieve details about a specific version."],["Version information is returned as `Version` objects, and you can access the code itself using `projects.getContent`."]]],[]]