This section provides an overview of the Apps Script API methods you can use to create, read, modify, and monitor your Apps Script projects. The Project Management samples page shows examples of API management requests. The reference documentation for each method provides implementation details.
|API method overview|
Results: Create a basic, empty project with no project files and a default project manifest.
Options: You can provide a project title. You can also create a bound script by providing the Google Drive ID of a Google Doc, Sheet, Form, or Slides file to act as the script's parent.
|Read project metadata||
Results: Retrieves a
|Read project content||
Results: Returns an array of
Options: You can specify which version of the content to retrieve with a query parameter.
|Update project content||
Results: Changes the file content in a script project.
You provide the new content as an array of
Note: When updating script project content, common
practice is to first issue a
request to retrieve an array of the existing
Warning: The new content replaces all existing files in the script project. Files not updated by the request are removed.
|Read project metrics||
Results: Read certain metrics about a project. These metrics include the number of users, the total number of executions, the total number of execution errors, and other details. Use a MetricType to specify the information you are requesting.