Method: projects.versions.list Stay organized with collections Save and categorize content based on your preferences.
Page Summary
You can list the versions of a script project using a GET request to the specified URL.
The only required path parameter is
scriptId, which is the script project's Drive ID.Optional query parameters include
pageTokenfor pagination andpageSizeto limit the number of versions per page.The request body should be empty.
The response body contains a list of
versionsand an optionalnextPageTokenfor further pagination.
List the versions of a script project.
HTTP request
GET https://script.googleapis.com/v1/projects/{scriptId}/versions
The URL usesgRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
scriptId |
The script project's Drive ID. |
Query parameters
| Parameters | |
|---|---|
pageToken |
The token for continuing a previous list request on the next page. This should be set to the value of |
pageSize |
The maximum number of versions on each returned page. Defaults to 50. |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
Response with the list of the versions for the specified script project.
| JSON representation |
|---|
{"versions":[{object ( |
| Fields | |
|---|---|
versions[] |
The list of versions. |
nextPageToken |
The token use to fetch the next page of records. if not exist in the response, that means no more versions to list. |
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/script.projectshttps://www.googleapis.com/auth/script.projects.readonly
For more information, see theOAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.