Method: projects.versions.get

  • This page details how to get a specific version of an Apps Script project using a REST API request.

  • The request requires the script project's Drive ID (scriptId) and the desiredversionNumber as path parameters.

  • The request body must be empty, and a successful response returns aVersion object.

  • Accessing this functionality requires specific OAuth scopes related to script projects.

Gets a version of a script project.

HTTP request

GET https://script.googleapis.com/v1/projects/{scriptId}/versions/{versionNumber}

The URL usesgRPC Transcoding syntax.

Path parameters

Parameters
scriptId

string

The script project's Drive ID.

versionNumber

integer

The version number.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance ofVersion.

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 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.