{"name":"script","version":"v1","revision":"20260927","title":"Apps Script API","rootUrl":"https://script.googleapis.com/","servicePath":"","basePath":"","batchPath":"batch","methods":[{"id":"processes.list","httpMethod":"GET","path":"v1/processes","flatPath":"v1/processes","description":"List information about processes made by or on behalf of a user, such as process type and current status.","scopes":["https://www.googleapis.com/auth/script.processes"],"required":[],"parameters":[{"name":"pageSize","type":"integer","required":false,"repeated":false,"location":"query","description":"The maximum number of returned processes per page of results. Defaults to 50.","enum":null},{"name":"pageToken","type":"string","required":false,"repeated":false,"location":"query","description":"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous response.","enum":null},{"name":"userProcessFilter.deploymentId","type":"string","required":false,"repeated":false,"location":"query","description":"Optional field used to limit returned processes to those originating from projects with a specific deployment ID.","enum":null},{"name":"userProcessFilter.endTime","type":"string","required":false,"repeated":false,"location":"query","description":"Optional field used to limit returned processes to those that completed on or before the given timestamp.","enum":null},{"name":"userProcessFilter.functionName","type":"string","required":false,"repeated":false,"location":"query","description":"Optional field used to limit returned processes to those originating from a script function with the given function name.","enum":null},{"name":"userProcessFilter.projectName","type":"string","required":false,"repeated":false,"location":"query","description":"Optional field used to limit returned processes to those originating from projects with project names containing a specific string.","enum":null},{"name":"userProcessFilter.scriptId","type":"string","required":false,"repeated":false,"location":"query","description":"Optional field used to limit returned processes to those originating from projects with a specific script ID.","enum":null},{"name":"userProcessFilter.startTime","type":"string","required":false,"repeated":false,"location":"query","description":"Optional field used to limit returned processes to those that were started on or after the given timestamp.","enum":null},{"name":"userProcessFilter.statuses","type":"string","required":false,"repeated":true,"location":"query","description":"Optional field used to limit returned processes to those having one of the specified process statuses.","enum":["PROCESS_STATUS_UNSPECIFIED","RUNNING","PAUSED","COMPLETED","CANCELED","FAILED","TIMED_OUT","UNKNOWN","DELAYED","EXECUTION_DISABLED"]},{"name":"userProcessFilter.types","type":"string","required":false,"repeated":true,"location":"query","description":"Optional field used to limit returned processes to those having one of the specified process types.","enum":["PROCESS_TYPE_UNSPECIFIED","ADD_ON","EXECUTION_API","TIME_DRIVEN","TRIGGER","WEBAPP","EDITOR","SIMPLE_TRIGGER","MENU","BATCH_TASK"]},{"name":"userProcessFilter.userAccessLevels","type":"string","required":false,"repeated":true,"location":"query","description":"Optional field used to limit returned processes to those having one of the specified user access levels.","enum":["USER_ACCESS_LEVEL_UNSPECIFIED","NONE","READ","WRITE","OWNER"]}]},{"id":"processes.listScriptProcesses","httpMethod":"GET","path":"v1/processes:listScriptProcesses","flatPath":"v1/processes:listScriptProcesses","description":"List information about a script's executed processes, such as process type and current status.","scopes":["https://www.googleapis.com/auth/script.processes"],"required":[],"parameters":[{"name":"pageSize","type":"integer","required":false,"repeated":false,"location":"query","description":"The maximum number of returned processes per page of results. Defaults to 50.","enum":null},{"name":"pageToken","type":"string","required":false,"repeated":false,"location":"query","description":"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous response.","enum":null},{"name":"scriptId","type":"string","required":false,"repeated":false,"location":"query","description":"The script ID of the project whose processes are listed.","enum":null},{"name":"scriptProcessFilter.deploymentId","type":"string","required":false,"repeated":false,"location":"query","description":"Optional field used to limit returned processes to those originating from projects with a specific deployment ID.","enum":null},{"name":"scriptProcessFilter.endTime","type":"string","required":false,"repeated":false,"location":"query","description":"Optional field used to limit returned processes to those that completed on or before the given timestamp.","enum":null},{"name":"scriptProcessFilter.functionName","type":"string","required":false,"repeated":false,"location":"query","description":"Optional field used to limit returned processes to those originating from a script function with the given function name.","enum":null},{"name":"scriptProcessFilter.startTime","type":"string","required":false,"repeated":false,"location":"query","description":"Optional field used to limit returned processes to those that were started on or after the given timestamp.","enum":null},{"name":"scriptProcessFilter.statuses","type":"string","required":false,"repeated":true,"location":"query","description":"Optional field used to limit returned processes to those having one of the specified process statuses.","enum":["PROCESS_STATUS_UNSPECIFIED","RUNNING","PAUSED","COMPLETED","CANCELED","FAILED","TIMED_OUT","UNKNOWN","DELAYED","EXECUTION_DISABLED"]},{"name":"scriptProcessFilter.types","type":"string","required":false,"repeated":true,"location":"query","description":"Optional field used to limit returned processes to those having one of the specified process types.","enum":["PROCESS_TYPE_UNSPECIFIED","ADD_ON","EXECUTION_API","TIME_DRIVEN","TRIGGER","WEBAPP","EDITOR","SIMPLE_TRIGGER","MENU","BATCH_TASK"]},{"name":"scriptProcessFilter.userAccessLevels","type":"string","required":false,"repeated":true,"location":"query","description":"Optional field used to limit returned processes to those having one of the specified user access levels.","enum":["USER_ACCESS_LEVEL_UNSPECIFIED","NONE","READ","WRITE","OWNER"]}]},{"id":"projects.create","httpMethod":"POST","path":"v1/projects","flatPath":"v1/projects","description":"Creates a new, empty script project with no script files and a base manifest file.","scopes":["https://www.googleapis.com/auth/script.projects"],"required":[],"parameters":[]},{"id":"projects.deployments.create","httpMethod":"POST","path":"v1/projects/{scriptId}/deployments","flatPath":"v1/projects/{scriptId}/deployments","description":"Creates a deployment of an Apps Script project.","scopes":["https://www.googleapis.com/auth/script.deployments"],"required":["scriptId"],"parameters":[{"name":"scriptId","type":"string","required":true,"repeated":false,"location":"path","description":"The script project's Drive ID.","enum":null}]},{"id":"projects.deployments.delete","httpMethod":"DELETE","path":"v1/projects/{scriptId}/deployments/{deploymentId}","flatPath":"v1/projects/{scriptId}/deployments/{deploymentId}","description":"Deletes a deployment of an Apps Script project.","scopes":["https://www.googleapis.com/auth/script.deployments"],"required":["scriptId","deploymentId"],"parameters":[{"name":"deploymentId","type":"string","required":true,"repeated":false,"location":"path","description":"The deployment ID to be undeployed.","enum":null},{"name":"scriptId","type":"string","required":true,"repeated":false,"location":"path","description":"The script project's Drive ID.","enum":null}]},{"id":"projects.deployments.get","httpMethod":"GET","path":"v1/projects/{scriptId}/deployments/{deploymentId}","flatPath":"v1/projects/{scriptId}/deployments/{deploymentId}","description":"Gets a deployment of an Apps Script project.","scopes":["https://www.googleapis.com/auth/script.deployments","https://www.googleapis.com/auth/script.deployments.readonly"],"required":["scriptId","deploymentId"],"parameters":[{"name":"deploymentId","type":"string","required":true,"repeated":false,"location":"path","description":"The deployment ID.","enum":null},{"name":"scriptId","type":"string","required":true,"repeated":false,"location":"path","description":"The script project's Drive ID.","enum":null}]},{"id":"projects.deployments.list","httpMethod":"GET","path":"v1/projects/{scriptId}/deployments","flatPath":"v1/projects/{scriptId}/deployments","description":"Lists the deployments of an Apps Script project.","scopes":["https://www.googleapis.com/auth/script.deployments","https://www.googleapis.com/auth/script.deployments.readonly"],"required":["scriptId"],"parameters":[{"name":"pageSize","type":"integer","required":false,"repeated":false,"location":"query","description":"The maximum number of deployments on each returned page. Defaults to 50.","enum":null},{"name":"pageToken","type":"string","required":false,"repeated":false,"location":"query","description":"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous response.","enum":null},{"name":"scriptId","type":"string","required":true,"repeated":false,"location":"path","description":"The script project's Drive ID.","enum":null}]},{"id":"projects.deployments.update","httpMethod":"PUT","path":"v1/projects/{scriptId}/deployments/{deploymentId}","flatPath":"v1/projects/{scriptId}/deployments/{deploymentId}","description":"Updates a deployment of an Apps Script project.","scopes":["https://www.googleapis.com/auth/script.deployments"],"required":["scriptId","deploymentId"],"parameters":[{"name":"deploymentId","type":"string","required":true,"repeated":false,"location":"path","description":"The deployment ID for this deployment.","enum":null},{"name":"scriptId","type":"string","required":true,"repeated":false,"location":"path","description":"The script project's Drive ID.","enum":null}]},{"id":"projects.get","httpMethod":"GET","path":"v1/projects/{scriptId}","flatPath":"v1/projects/{scriptId}","description":"Gets a script project's metadata.","scopes":["https://www.googleapis.com/auth/script.projects","https://www.googleapis.com/auth/script.projects.readonly"],"required":["scriptId"],"parameters":[{"name":"scriptId","type":"string","required":true,"repeated":false,"location":"path","description":"The script project's Drive ID.","enum":null}]},{"id":"projects.getContent","httpMethod":"GET","path":"v1/projects/{scriptId}/content","flatPath":"v1/projects/{scriptId}/content","description":"Gets the content of the script project, including the code source and metadata for each script file.","scopes":["https://www.googleapis.com/auth/script.projects","https://www.googleapis.com/auth/script.projects.readonly"],"required":["scriptId"],"parameters":[{"name":"scriptId","type":"string","required":true,"repeated":false,"location":"path","description":"The script project's Drive ID.","enum":null},{"name":"versionNumber","type":"integer","required":false,"repeated":false,"location":"query","description":"The version number of the project to retrieve. If not provided, the project's HEAD version is returned.","enum":null}]},{"id":"projects.getMetrics","httpMethod":"GET","path":"v1/projects/{scriptId}/metrics","flatPath":"v1/projects/{scriptId}/metrics","description":"Get metrics data for scripts, such as number of executions and active users.","scopes":["https://www.googleapis.com/auth/script.metrics"],"required":["scriptId"],"parameters":[{"name":"metricsFilter.deploymentId","type":"string","required":false,"repeated":false,"location":"query","description":"Optional field indicating a specific deployment to retrieve metrics from.","enum":null},{"name":"metricsGranularity","type":"string","required":false,"repeated":false,"location":"query","description":"Required field indicating what granularity of metrics are returned.","enum":["UNSPECIFIED_GRANULARITY","WEEKLY","DAILY"]},{"name":"scriptId","type":"string","required":true,"repeated":false,"location":"path","description":"Required field indicating the script to get metrics for.","enum":null}]},{"id":"projects.updateContent","httpMethod":"PUT","path":"v1/projects/{scriptId}/content","flatPath":"v1/projects/{scriptId}/content","description":"Updates 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 proje","scopes":["https://www.googleapis.com/auth/script.projects"],"required":["scriptId"],"parameters":[{"name":"scriptId","type":"string","required":true,"repeated":false,"location":"path","description":"The script project's Drive ID.","enum":null}]},{"id":"projects.versions.create","httpMethod":"POST","path":"v1/projects/{scriptId}/versions","flatPath":"v1/projects/{scriptId}/versions","description":"Creates a new immutable version using the current code, with a unique version number.","scopes":["https://www.googleapis.com/auth/script.projects"],"required":["scriptId"],"parameters":[{"name":"scriptId","type":"string","required":true,"repeated":false,"location":"path","description":"The script project's Drive ID.","enum":null}]},{"id":"projects.versions.get","httpMethod":"GET","path":"v1/projects/{scriptId}/versions/{versionNumber}","flatPath":"v1/projects/{scriptId}/versions/{versionNumber}","description":"Gets a version of a script project.","scopes":["https://www.googleapis.com/auth/script.projects","https://www.googleapis.com/auth/script.projects.readonly"],"required":["scriptId","versionNumber"],"parameters":[{"name":"scriptId","type":"string","required":true,"repeated":false,"location":"path","description":"The script project's Drive ID.","enum":null},{"name":"versionNumber","type":"integer","required":true,"repeated":false,"location":"path","description":"The version number.","enum":null}]},{"id":"projects.versions.list","httpMethod":"GET","path":"v1/projects/{scriptId}/versions","flatPath":"v1/projects/{scriptId}/versions","description":"List the versions of a script project.","scopes":["https://www.googleapis.com/auth/script.projects","https://www.googleapis.com/auth/script.projects.readonly"],"required":["scriptId"],"parameters":[{"name":"pageSize","type":"integer","required":false,"repeated":false,"location":"query","description":"The maximum number of versions on each returned page. Defaults to 50.","enum":null},{"name":"pageToken","type":"string","required":false,"repeated":false,"location":"query","description":"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous response.","enum":null},{"name":"scriptId","type":"string","required":true,"repeated":false,"location":"path","description":"The script project's Drive ID.","enum":null}]},{"id":"scripts.run","httpMethod":"POST","path":"v1/scripts/{scriptId}:run","flatPath":"v1/scripts/{scriptId}:run","description":"","scopes":["https://mail.google.com/","https://www.google.com/calendar/feeds","https://www.google.com/m8/feeds","https://www.googleapis.com/auth/admin.directory.group","https://www.googleapis.com/auth/admin.directory.user","https://www.googleapis.com/auth/documents","https://www.googleapis.com/auth/drive","https://www.googleapis.com/auth/forms","https://www.googleapis.com/auth/forms.currentonly","https://www.googleapis.com/auth/groups","https://www.googleapis.com/auth/spreadsheets","https://www.googleapis.com/auth/userinfo.email"],"required":["scriptId"],"parameters":[{"name":"scriptId","type":"string","required":true,"repeated":false,"location":"path","description":"The script ID of the script to be executed. Find the script ID on the **Project settings** page under \"IDs.\" As multiple executable APIs can be deployed in new ","enum":null}]}]}