AI-generated Key Takeaways
-
Retrieves a specific version of a Google Apps Script project using its Drive ID and version number.
-
Requires authorization with specific scopes for project access (read or read/write).
-
The request body should be empty, and a successful response returns a 'Version' object containing project version details.
-
Utilizes gRPC Transcoding syntax in its URL structure for efficient communication.
Gets a version of a script project.
HTTP request
GET https://script.googleapis.com/v1/projects/{scriptId}/versions/{versionNumber}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
scriptId |
The script project's Drive ID. |
versionNumber |
The version number. |
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Version
.
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/script.projects
https://www.googleapis.com/auth/script.projects.readonly
For more information, see the OAuth 2.0 Overview.