Skip to main content

projects

Overview

Nameprojects
TypeResource
Idgoogleworkspace.script.projects

Fields

NameDatatypeDescription
parentIdstringThe parent's Drive ID that the script will be attached to. This is usually the ID of a Google Document or Google Sheet. This filed is optional, and if not set, a stand-alone script will be created.
scriptIdstringThe script project's Drive ID.
titlestringThe title for the project.
updateTimestringWhen the script was last updated.
createTimestringWhen the script was created.
creatorobjectA simple user profile resource.
lastModifyUserobjectA simple user profile resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTscriptIdGets a script project's metadata.
createINSERTCreates a new, empty script project with no script files and a base manifest file.
updateContentEXECscriptIdUpdates the content of the specified script project. This content is stored as the HEAD version, and is used when the script is executed as a trigger, in the script editor, in add-on preview mode, or as a web app or Apps Script API in development mode. This clears all the existing files in the project.