AI-generated Key Takeaways
-
This documentation details the Apps Script API for managing script projects, including creating, retrieving, and updating projects and their content.
-
A script project is represented by properties like script ID, title, parent ID, creation and update timestamps, and creator/modifier user details.
-
User profiles associated with script projects contain domain, email, name, and photo URL information.
-
The API provides methods to manage script projects:
create
,get
,getContent
,getMetrics
, andupdateContent
.
Resource: Project
The script project resource.
JSON representation |
---|
{ "scriptId": string, "title": string, "parentId": string, "createTime": string, "updateTime": string, "creator": { object ( |
Fields | |
---|---|
scriptId |
The script project's Drive ID. |
title |
The title for the project. |
parentId |
The 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. |
createTime |
When the script was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
When the script was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
creator |
User who originally created the script. |
lastModifyUser |
User who last modified the script. |
User
A simple user profile resource.
JSON representation |
---|
{ "domain": string, "email": string, "name": string, "photoUrl": string } |
Fields | |
---|---|
domain |
The user's domain. |
email |
The user's identifying email address. |
name |
The user's display name. |
photoUrl |
The user's photo. |
Methods |
|
---|---|
|
Creates a new, empty script project with no script files and a base manifest file. |
|
Gets a script project's metadata. |
|
Gets the content of the script project, including the code source and metadata for each script file. |
|
Get metrics data for scripts, such as number of executions and active users. |
|
Updates the content of the specified script project. |