Create a script project
create_projectCreate an Apps Script project, standalone or attached to a Google Doc, Sheet, Slide, or Form, and obtain its scriptId to start adding code.
Instructions
Creates an Apps Script project and returns it (scriptId, title, createTime). Without parent_id the project is standalone (its scriptId doubles as its Drive file id); with parent_id — the Drive id of a Google Doc, Sheet, Slides or Form — the project is created bound to that container and can use its container-specific APIs (e.g. SpreadsheetApp.getActive()). A new project holds only a default manifest and an empty Code file: add real code with update_project_content next. IMPORTANT: the API cannot list or delete projects — keep the returned scriptId, it is the only handle. Requires the script.projects scope, the Apps Script API toggle at script.google.com/home/usersettings, and — for bound projects — access to the parent file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | The project title shown in the Apps Script editor. | |
| parent_id | No | Drive file id of a Google Doc, Sheet, Slides or Form to bind the project to; omit for a standalone project. |