projects

Gets the content of the script project, including the code source and metadata for each script file.

get/v1/projects/{scriptId}/content

Request

  • Base URL: https://script.googleapis.com
  • URL: https://script.googleapis.com/v1/projects/{scriptId}/content
  • Auth: one of:
    • OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/script.projects) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/script.projects)
    • OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/script.projects.readonly) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/script.projects.readonly)

Path parameters

scriptIdstring required

The script project's Drive ID.

Query parameters

versionNumberinteger

The version number of the project to retrieve. If not provided, the project's HEAD version is returned.

Response

Successful response

Changes

    • breaking

      removed the media type */* for the response with the status

    • info

      the security scope https://www.googleapis.com/auth/script.projects was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/script.projects was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/script.projects.readonly was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/script.projects.readonly was removed from the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/script.projects was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/script.projects was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/script.projects.readonly was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/script.projects.readonly was removed from the endpoint's security scheme Oauth2c