Method: projects.deployments.create | Apps Script | Google for Developers (original) (raw)
Method: projects.deployments.create
Stay organized with collections Save and categorize content based on your preferences.
Creates a deployment of an Apps Script project.
HTTP request
POST https://script.googleapis.com/v1/projects/{scriptId}/deployments
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
scriptId | string 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 | integer The version number on which this deployment is based. |
manifestFileName | string The manifest file name for this deployment. |
description | string The description for this deployment. |
Response body
If successful, the response body contains a newly created instance of [Deployment](/apps-script/api/reference/rest/v1/projects.deployments#Deployment)
.
Requires the following OAuth scope:
https://www.googleapis.com/auth/script.deployments
For more information, see the OAuth 2.0 Overview.