projects

Creates a new immutable version using the current code, with a unique version number.

post/v1/projects/{scriptId}/versions

Request

  • Base URL: https://script.googleapis.com
  • URL: https://script.googleapis.com/v1/projects/{scriptId}/versions
  • Auth: 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)

Path parameters

scriptIdstring required

The script project's Drive ID.

Request body

createTimestring google-datetime

When the version was created.

descriptionstring

The description for this version.

scriptIdstring

The script project's Drive ID.

versionNumberinteger

The incremental ID that is created by Apps Script when a version is created. This is system assigned number and is immutable once created.

Response

Successful response

Changes

    • breaking

      removed the request body

    • breaking

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