create_version
Freeze the current code of an Apps Script project into a new immutable version for deployment. Use to create a snapshot that can be pinned to a deployment.
Instructions
Create a new immutable version snapshot of an Apps Script project.
Side effects: freezes the current code into a new versionNumber. Versions cannot be edited or deleted. A deployment can then be pinned to this version via manage_deployment. To list versions use list_versions. Requires the full script.projects OAuth scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | The user's Google email address (authenticated account). | |
| script_id | Yes | Target project ID. | |
| description | No | Optional version note (e.g. release notes, ticket number). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |