---
title: "POST /v1/projects/{scriptId}/versions"
method: POST
path: "/v1/projects/{scriptId}/versions"
tags: ["projects"]
---

# POST /v1/projects/{scriptId}/versions

`POST /v1/projects/{scriptId}/versions`

Creates a new immutable version using the current code, with a unique version number.

## Path parameters

- `scriptId` string, required

## Request body

- Version — A resource representing a script project version. A version is a "snapshot" of a script project and is similar to a read-only branched release. When creating deployments, the version to use must be specified.
  - `scriptId` string — The script project's Drive ID.
  - `description` string — The description for this version.
  - `createTime` string, google-datetime — When the version was created.
  - `versionNumber` integer — The incremental ID that is created by Apps Script when a version is created. This is system assigned number and is immutable once created.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/script.md) · [All operations](https://skmtc.dev/google/apis/script/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/script/revisions/b83e197f53e2/schema)
