Send feedback
Managing Versions
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.
Note: These methods return one or more
Version
objects which contain the version configuration information such as the
version number and description. You can read the code attached to a specific
version using a
projects.getContent
request.
API method overview
Create a version
projects.versions.create
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
projects.versions.list
Results : Returns an array of
Version
objects, each representing one of the
versions of the script project.
Read a version
projects.versions.get
Results : Returns a
Version
that represents a specific version
of a script project.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-29 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-08-29 UTC."}
[[["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 2024-08-29 UTC."]]