Update Script Content
update_script_contentUpdate or create files in a Google Apps Script project. Optionally merge files into the existing project or replace the entire project, deleting omitted files.
Instructions
Update or create files in a script project.
By default this merges the supplied files into the existing project by file
name, leaving other files untouched. Set merge=False to replace the entire
project: any existing file omitted from files is permanently deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | File objects with name, type, and source to create or update | |
| merge | No | When True (default), overlay these files onto the current project. When False, replace the full project file set; omitted files are deleted. | |
| script_id | Yes | The script project ID | |
| user_google_email | Yes | User's email address |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |