Method: projects.deployments.create Stay organized with collections Save and categorize content based on your preferences.
Page Summary
This content describes how to create a deployment of an Apps Script project using an HTTP POST request to the specified URL.
The request requires a
scriptIdas a path parameter, which is the Drive ID of the script project.The request body is a JSON object containing optional fields for
versionNumber,manifestFileName, anddescription.A successful request returns a
Deploymentobject in the response body.Creating a deployment requires the
https://www.googleapis.com/auth/script.deploymentsOAuth scope for authorization.
Creates a deployment of an Apps Script project.
HTTP request
POST https://script.googleapis.com/v1/projects/{scriptId}/deployments
The URL usesgRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
scriptId |
The script project's Drive ID. |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{"versionNumber":integer,"manifestFileName":string,"description":string} |
| Fields | |
|---|---|
versionNumber |
The version number on which this deployment is based. |
manifestFileName |
The manifest file name for this deployment. |
description |
The description for this deployment. |
Response body
If successful, the response body contains a newly created instance ofDeployment.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/script.deployments
For more information, see theOAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.