---
title: "POST /v2/{+name}:commitFunctionUpgradeAsGen2"
method: POST
path: "/v2/{+name}:commitFunctionUpgradeAsGen2"
tags: ["projects"]
---

# POST /v2/{+name}:commitFunctionUpgradeAsGen2

`POST /v2/{+name}:commitFunctionUpgradeAsGen2`

Commits a function upgrade from GCF Gen1 to GCF Gen2. This action deletes the Gen1 function, leaving the Gen2 function active and manageable by the GCFv2 API.

## Path parameters

- `name` string, required

## Request body

- CommitFunctionUpgradeAsGen2Request — Request for the `CommitFunctionUpgradeAsGen2` method.

## Response `200`

Successful response

---

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